Skip to content

Commit

Permalink
Merge pull request #63 from SNflows/add_RATIR
Browse files Browse the repository at this point in the history
add ratir to load_image
  • Loading branch information
emirkmo authored Apr 30, 2022
2 parents 8ae3b05 + b8bde28 commit e547d13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flows/load_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,10 @@ def load_image(FILENAME, target_coord=None):
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
image.photfilter = hdr['FILTER']

elif telescope == "OAN/SPM Harold L. Johnson 1.5-meter":
image.site = api.get_site(23) # Hard-coded the siteid for Harold L. Johnson 1.5-meter
image.obstime = Time(hdr['DATE-OBS'], format='isot', scale='utc', location=image.site['EarthLocation'])
image.photfilter = hdr['FILTER']
else:
raise RuntimeError("Could not determine origin of image")

Expand Down

0 comments on commit e547d13

Please sign in to comment.