Skip to content

Roman-Supernova-PIT/simulate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simulate

Simulation Helper

Caution

The code in this repository is under heavy development and not currently intended for widespread use.

Example useage:

Create a new environment using the requirements file: conda env create -f requirements.yaml

Look at the config file

sim2.config -> edit for things you want

Run basic sim included with main

This will make a few level 2 images python simulate.py --plot --input_config_file sim2.config --level 2

You should see as output these files:


With the default star, gaia, and galaxy catalogs

You should get images that look something like the following: r0003201001001001007_0003_wfi01_f106_cal

r0003201001001001006_0003_wfi01_f106_cal

You can create a PNG from any of the images using the imagelib.py:

import imagelib
imagelib.mkfigure('myfile.asdf',plotname='myfile.png')

You can also create the same image with sources identified

import imagelib
# with all the stars and galaxies identified
imagelib.plot_image('r0003201001001001004_0001_wfi01_f106_example_cal.asdf',
                     catname='parametric_catalog_example.csv')
# with just the stars identified
imagelib.plot_image('r0003201001001001004_0001_wfi01_f106_example_cal.asdf',
                     catname='parametric_stars_example.ecsv')
r0003201001001001004_0001_wfi01_f106_example_cal_cat

Note

F129 is giving very low flux in the objects

I haven't gotten L1 images to run through romancal yet at the versions installed in the requirements file

If you think the output is looking weird, try a different MA Table or Filter

About

Simulation Helper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages