Changeset 1083 for trunk/monitor
- Timestamp:
- 07/27/06 14:24:17 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/monitor/cgi-bin/asapmon.py
r990 r1083 137 137 s = asap.scantable(files) 138 138 outscans = None 139 self.fields['nif'] = range(s cans[-1].nif())139 self.fields['nif'] = range(s.nif()) 140 140 for i in self.fields['nif']: 141 141 name = "rest%d" % i … … 170 170 #self.fields['debug'] = "DEBUG" 171 171 self.fields['csource'] = s.get_sourcename()[-1] 172 if self.fields['cunit'] == 1: 173 srest = s._getrestfreqs() 174 if isinstance(srest,tuple) and len(srest) != s.nif(): 175 s.set_restfreqs(restfs,unit="GHz") 176 s.set_unit(self.fields['units'][self.fields['cunit']]) 177 s.set_freqframe(self.form.getfirst("frame","LSRK")) 178 s.set_doppler(self.form.getfirst("doppler","RADIO")) 179 172 180 # baseline 173 181 if self.form.has_key('baseline'): … … 180 188 if len(brange): 181 189 self.fields['brangewindow'] = brstr 182 if self.fields['cunit'] == 1:183 srest = s._getrestfreqs()184 if isinstance(srest,tuple) and len(srest) != s.nif():185 s.set_restfreqs(restfs,unit="GHz")186 s.set_unit(self.fields['units'][self.fields['cunit']])187 s.set_freqframe(self.form.getfirst("frame","LSRK"))188 s.set_doppler(self.form.getfirst("doppler","RADIO"))189 190 m = s.create_mask(brange) 190 191 s.poly_baseline(mask=m,order=order) … … 206 207 asap.rcParams['plotter.ganged'] = False 207 208 from matplotlib import rcParams as rcp 208 rcp['tick.labelsize'] = 6 209 rcp['xtick.labelsize'] = 8 210 rcp['ytick.labelsize'] = 8 209 211 rcp['axes.labelsize'] = 8 210 rcp['axes.titlesize'] = 8212 rcp['axes.titlesize'] = 12 211 213 rcp['figure.subplot.wspace'] = 0.3 212 214 rcp['figure.subplot.hspace'] = 0.3 … … 214 216 # plotter without GUI 215 217 asap.plotter = asap.asapplotter(False) 216 if s.nif() > 1:218 if outscans.nif() > 1: 217 219 asap.plotter.set_mode("p","i") 218 220 else: 219 if s.npol() > 2:221 if outscans.npol() > 2: 220 222 asap.plotter.set_mode("t","p") 221 223 else:
Note:
See TracChangeset
for help on using the changeset viewer.