Skip to content

Commit

Permalink
Updated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHuwe committed Aug 30, 2024
1 parent 0b691cc commit ef3322c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions romanisim/wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,22 +416,24 @@ def convert_wcs_to_gwcs(wcs):

def get_mosaic_wcs(mosaic, shape=None, xpos=None, ypos=None, coord=None):
"""Get a WCS object for a given sca or set of CRDS parameters.
- if xpos, ypos, and coords are provided, then a GWCS compatible object will be created (and meta updated with it)
- if not, a functional CelestialWCS is created [useful for quick computation,
but GWCS needed for validation of a final simulation]
Parameters
----------
mosaic : roman_datamodels.datamodels.MosaicModel or dict
Mosaic model or dictionary containing WCS parameters.
shape: list
Length of dimensions of mosaic
xpos, ypos : array_like (float)
x, y positions of each source in objlist
coord : array_like (float)
ra, dec positions of each source in objlist
Returns
-------
galsim.CelestialWCS for the mosaic
Comment block needs updating:
- if xpos, ypos, and coords are provided, then a GWCS compatible object will be created (and meta updated with it)
- if not, a functional CelestialWCS is created [useful for quick computation,
but GWCS needed for validation of a final simulation]
"""

# If sent a dictionary, create a temporary model for data interface
Expand Down

0 comments on commit ef3322c

Please sign in to comment.