Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion romanisim/bandpass.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def etomjysr(bandpass, sca):
Returns
-------
float
the factor F such that MJy / sr = F * DN/s
the factor F such that MJy / sr = F * e/s
"""

abflux = get_abflux(bandpass, sca) # e/s corresponding to 3631 Jy
Expand Down
10 changes: 8 additions & 2 deletions romanisim/wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,15 @@ def convert_wcs_to_gwcs(wcs):
"""
if isinstance(wcs, GWCS):
return wcs.wcs
elif isinstance(wcs, gwcs.WCS):
return wcs
else:
# make a gwcs WCS from a galsim.roman WCS
return wcs_from_fits_header(wcs.header.header)
if hasattr(wcs, 'header'):
# get fits header from galsim.roman WCS
header = wcs.header.header
else:
header = wcs
return wcs_from_fits_header(header)


def get_mosaic_wcs(mosaic, shape=None, xpos=None, ypos=None, coord=None):
Expand Down
Loading