- Timestamp:
- 12/16/11 19:44:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapgrid.py
r2372 r2373 57 57 58 58 class _SDGridPlotter: 59 def __init__( self, infile, outfile=None, ifno= 0):59 def __init__( self, infile, outfile=None, ifno=-1 ): 60 60 self.infile = infile 61 61 self.outfile = outfile … … 80 80 def get( self ): 81 81 self.tablein = scantable( self.infile, average=False ) 82 if self.ifno < 0: 83 ifno = self.tablein.getif(0) 84 print 'ifno=',ifno 85 else: 86 ifno = self.ifno 82 87 sel = selector() 83 sel.set_ifs( self.ifno )88 sel.set_ifs( ifno ) 84 89 self.tablein.set_selection( sel ) 85 90 self.nchan = len(self.tablein._getspectrum(0)) … … 135 140 #print 'len(x)=',len(x) 136 141 #print 'x=',x 137 ybase = numpy.ones(self.n y,dtype=float)*self.blc[1]142 ybase = numpy.ones(self.nx,dtype=float)*self.blc[1] 138 143 #print 'len(ybase)=',len(ybase) 139 144 incr = self.celly
Note:
See TracChangeset
for help on using the changeset viewer.