Skip to content

roman-grs-pit/star_fields

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Produce a simulated field of stars, with approximately correct density, k-band luminosity function, and spectral type distributions.

After a git clone, some data needs to be downloaded and environoment variables need to be defined:

export star_fields=/star_fields

export star_data=$star_fields/data

export PYTHONPATH=$PYTHONPATH:$star_fields/py

Download extinction maps: https://www.dropbox.com/scl/fi/ivq5qi5cjhv7tahxiqdl8/NICERmaps.tar?rlkey=s0ymcsilvt3wvnpr8ehpdzd65&dl=0

unpack (e.g., tar xvf NICERmaps.tar)

export allskyext=/NICERmaps

Then, the basic code should work, e.g.:

python

import insertstars_new as insert

insert.insertstars(0,0) #creates a text file with distribution of stars centered at ra,dec=0,0 within area of one Roman field of view

About

get prediction for distribution of different stellar types at given location, put in format needed for grism sims. Original code from James Colbert

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors