Skip to content

Commit

Permalink
set defaults for ALTITUDE, AZIMUTH when running flat generation code
Browse files Browse the repository at this point in the history
  • Loading branch information
jchiang87 committed May 15, 2024
1 parent f799e06 commit 72d5839
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imsim/ccd.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ def parse(item, type, default):
image.header['AMSTART'] = airmass
image.header['AMEND'] = airmass # wrong, does anyone care?
image.header['FOCUSZ'] = parse('focusZ', float, 0.0)
image.header['ALTITUDE'] = parse('altitude', float, None)
image.header['AZIMUTH'] = parse('azimuth', float, None)
image.header['ALTITUDE'] = parse('altitude', float, 'N/A')
image.header['AZIMUTH'] = parse('azimuth', float, 'N/A')

# If there's anything left in header_vals, add it to the header.
for k in header_vals:
Expand Down

0 comments on commit 72d5839

Please sign in to comment.