From 311db65f599548a55424108b5447484ad8c42c1f Mon Sep 17 00:00:00 2001 From: Cees Bassa Date: Sun, 4 Mar 2018 10:16:38 +0100 Subject: [PATCH] Fix astropy issue --- python/extract_tracks.py | 3 ++- python/stio.py | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/python/extract_tracks.py b/python/extract_tracks.py index f456123..3793722 100644 --- a/python/extract_tracks.py +++ b/python/extract_tracks.py @@ -158,9 +158,10 @@ if __name__ == '__main__': # extract_tracks("2018-02-26T05:26:15.801.fits",trkrmin,drdtmin,trksig,ntrkmin) - files=sorted(glob.glob("2*.fits")) + files=sorted(glob.glob("2018-03-04T02*.fits")) for file in files: + print(file) extract_tracks(file,trkrmin,drdtmin,trksig,ntrkmin) diff --git a/python/stio.py b/python/stio.py index e5067ac..2eaecc8 100644 --- a/python/stio.py +++ b/python/stio.py @@ -33,8 +33,12 @@ class observation: self.ymax=self.y0+self.dydt*(self.tmax-self.tmid) # Correct for rotation - hobs=Time(ff.mjd+0.5*ff.texp/86400.0,format='mjd',scale='utc').sidereal_time("mean",longitude=0.0).degree - hmid=Time(self.mjd,format='mjd',scale='utc').sidereal_time("mean",longitude=0.0).degree + tobs=Time(ff.mjd+0.5*ff.texp/86400.0,format='mjd',scale='utc') + tobs.delta_ut1_utc=0 + hobs=tobs.sidereal_time("mean",longitude=0.0).degree + tmid=Time(self.mjd,format='mjd',scale='utc') + tmid.delta_ut1_utc=0 + hmid=tmid.sidereal_time("mean",longitude=0.0).degree # Compute ra/dec world=ff.w.wcs_pix2world(np.array([[self.x0,self.y0]]),1)