Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhandberg committed Jun 17, 2021
2 parents 7d0c6de + cbae378 commit 15c33b0
Show file tree
Hide file tree
Showing 2 changed files with 13 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.4
master-v0.7.5
13 changes: 12 additions & 1 deletion flows/load_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,19 @@ def load_image(FILENAME):
image.obstime += 0.5*image.exptime * u.second # Make time centre of exposure
image.photfilter = hdr['CCDFLTID']

elif telescope == '1.3m PAIRITEL' and instrument == '2MASS Survey cam':
image.site = api.get_site(21) # Hard-coded the siteid for Peters Automated InfraRed Imaging TELescope
time_start = Time(hdr['STRT_CPU'], format='iso', scale='utc', location=image.site['EarthLocation'])
time_stop = Time(hdr['STOP_CPU'], format='iso', scale='utc', location=image.site['EarthLocation'])
image.obstime = time_start + 0.5*(time_stop - time_start)
image.photfilter = {
'j': 'J',
'h': 'H',
'k': 'K',
}.get(hdr['FILTER'], hdr['FILTER'])

else:
raise Exception("Could not determine origin of image")
raise RuntimeError("Could not determine origin of image")

# Create masked version of image:
image.image[image.mask] = np.NaN
Expand Down

0 comments on commit 15c33b0

Please sign in to comment.