- Timestamp:
- 12/26/11 12:09:26 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapgrid.py
r2375 r2387 79 79 80 80 def get( self ): 81 self.tablein = scantable( self.infile, average=False )82 if self.ifno < 0:83 ifno = self.tablein.getif(0)84 print 'ifno=',ifno85 else:86 ifno = self.ifno87 sel = selector()88 sel.set_ifs( ifno )89 self.tablein.set_selection( sel )90 self.nchan = len(self.tablein._getspectrum(0))91 self.nrow = self.tablein.nrow()92 del sel93 94 81 s = scantable( self.outfile, average=False ) 82 self.nchan = len(s._getspectrum(0)) 95 83 nrow = s.nrow() 96 84 pols = numpy.ones( nrow, dtype=int ) … … 150 138 # plot observed position 151 139 if plotobs: 140 self.createTableIn() 152 141 irow = 0 153 142 while ( irow < self.nrow ): … … 168 157 pl.title( title ) 169 158 159 def createTableIn( self ): 160 self.tablein = scantable( self.infile, average=False ) 161 if self.ifno < 0: 162 ifno = self.tablein.getif(0) 163 print 'ifno=',ifno 164 else: 165 ifno = self.ifno 166 sel = selector() 167 sel.set_ifs( ifno ) 168 self.tablein.set_selection( sel ) 169 self.nchan = len(self.tablein._getspectrum(0)) 170 self.nrow = self.tablein.nrow() 171 del sel 172 173 170 174 def getPointingChunk( self, irow ): 171 175 numchunk = 1000
Note:
See TracChangeset
for help on using the changeset viewer.