Utilities
The simulator utility module consists of miscellaneous utility routines intended to be of broad use. Present examples include:
turning astropy coordinates into galsim coordinates and vice-versa
making an RGB image from image slices
generating points at random in a region on the sky
romanisim.util Module
Miscellaneous utility routines.
Functions
|
Turn a CelestialCoord into a SkyCoord. |
|
Turn a SkyCoord into a CelestialCoord. |
|
Scales three flux images into an RGB image for displaying. |
|
Choose locations at random within radius of coord. |
|
Sample points from a King distribution |
|
Choose locations at random at given radii from coord. |
|
Fill out the metadata dictionary, modifying it in place. |
Update pointing and wcsinfo keywords to use the aperture for this SCA. |
|
|
Compute the King profile. |
|
Sample distances from a King profile. |
|
Get 0-based indices of input images that contributed to (resampled) output pixel with coordinates |
|
Return some simple default metadata for input to image.simulate |
|
Add photometry calibration keywords to image metadata. |
|
Merge two dictionaries, replacing values in a with values in b. |
|
Calculate velocity aberration scale factor |