Skip to content

Commit

Permalink
Modifications to enable using the roman prism bandpass in the roman m…
Browse files Browse the repository at this point in the history
…odule

Co-authored-by: Michael Troxel <[email protected]>
  • Loading branch information
2 people authored and arunkannawadi committed Jul 18, 2024
1 parent 0ad82fd commit ebb7687
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion galsim/roman/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
# F184, K213
longwave_bands = ['F184', 'K213']
# R062, Z087, Y106, J129, H158, W146
shortwave_bands = ['R062', 'Z087', 'Y106', 'J129', 'H158', 'W146']
shortwave_bands = ['R062', 'Z087', 'Y106', 'J129', 'H158', 'W146','SNPrism']

stray_light_fraction = 0.1

Expand Down
9 changes: 5 additions & 4 deletions galsim/roman/roman_bandpass.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def getBandpasses(AB_zeropoint=True, default_thin_trunc=True, **kwargs):
# Loop over the bands.
for index, bp_name in enumerate(data.dtype.names[1:]):
# Need to skip the prism and grism (not used for weak lensing imaging).
if bp_name=='SNPrism' or bp_name=='Grism_1stOrder' or bp_name=='Grism_0thOrder':
if bp_name=='Grism_1stOrder' or bp_name=='Grism_0thOrder':
continue

# Initialize the bandpass object.
Expand All @@ -154,9 +154,10 @@ def getBandpasses(AB_zeropoint=True, default_thin_trunc=True, **kwargs):
bp = bp.withZeropoint('AB')

# Store the sky level information as an attribute.
bp._ecliptic_lat = ecliptic_lat
bp._ecliptic_lon = ecliptic_lon
bp._sky_level = sky_data[2+index, :]
if bp_name!='SNPrism':
bp._ecliptic_lat = ecliptic_lat
bp._ecliptic_lon = ecliptic_lon
bp._sky_level = sky_data[2+index, :]

# Add it to the dictionary.
bp.name = bp_name if bp_name != 'W149' else 'W146'
Expand Down

0 comments on commit ebb7687

Please sign in to comment.