Skip to content

Commit

Permalink
Merge pull request #6 from cyriltasse/issue#5
Browse files Browse the repository at this point in the history
Compute freqs differently
  • Loading branch information
cyriltasse authored Oct 2, 2018
2 parents 4eb6c95 + 95c511b commit 222f0c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ClassSaveResults.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,11 @@ def PlotSpecSingleDir(self, iDir=0):
ra, dec = np.degrees(self.DynSpecMS.PosArray.ra[iDir]), np.degrees(self.DynSpecMS.PosArray.dec[iDir])
strRA = rad2hmsdms(self.DynSpecMS.PosArray.ra[iDir], Type="ra").replace(" ", ":")
strDEC = rad2hmsdms(self.DynSpecMS.PosArray.dec[iDir], Type="dec").replace(" ", ":")
freqs = self.DynSpecMS.FreqsAll.ravel() * 1.e-6 # in MHz
#freqs = self.DynSpecMS.FreqsAll.ravel() * 1.e-6 # in MHz
t0 = Time(self.DynSpecMS.times[0]/(24*3600.), format='mjd', scale='utc')
t1 = Time(self.DynSpecMS.times[-1]/(24*3600.), format='mjd', scale='utc')
times = np.linspace(0, (t1-t0).sec/60., num=self.DynSpecMS.GOut[0, :, :, 0].shape[1], endpoint=True)
freqs = np.linspace(self.DynSpecMS.fMin,self.DynSpecMS.fMax,num=self.DynSpecMS.GOut[0, :, :, 0].shape[0], endpoint=True)*1e-6
image = self.DynSpecMS.Image

if (image is None) | (not os.path.isfile(image)):
Expand Down

0 comments on commit 222f0c4

Please sign in to comment.