Skip to content

Commit

Permalink
Fix for IRAF modified TJO images
Browse files Browse the repository at this point in the history
  • Loading branch information
rhandberg committed Jul 21, 2021
1 parent ebfa55e commit e0a72e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
master-v0.7.10
master-v0.7.11
2 changes: 1 addition & 1 deletion flows/load_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def load_image(FILENAME):
# Mask out "halo" of pixels with zero value along edge of image:
image.mask |= edge_mask(image.image, value=0)

elif origin == 'OAdM' and telescope == 'TJO' and instrument == 'MEIA3':
elif (origin == 'OAdM' or origin.startswith('NOAO-IRAF')) and telescope == 'TJO' and instrument == 'MEIA3':
image.site = api.get_site(22) # Hard-coded the siteid for Telescopi Joan Oró (TJO) at Observatori Astronòmic del Montsec
image.obstime = Time(hdr['JD'], format='jd', scale='utc', location=image.site['EarthLocation'])
image.obstime += 0.5*image.exptime * u.second # Make time centre of exposure
Expand Down

0 comments on commit e0a72e8

Please sign in to comment.