Changeset 2373 for trunk


Ignore:
Timestamp:
12/16/11 19:44:40 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2816

Ready for Test: No

Interface Changes: Yes/No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Several bug fix.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapgrid.py

    r2372 r2373  
    5757       
    5858class _SDGridPlotter:
    59     def __init__( self, infile, outfile=None, ifno=0 ):
     59    def __init__( self, infile, outfile=None, ifno=-1 ):
    6060        self.infile = infile
    6161        self.outfile = outfile
     
    8080    def get( self ):
    8181        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
    8287        sel = selector()
    83         sel.set_ifs( self.ifno )
     88        sel.set_ifs( ifno )
    8489        self.tablein.set_selection( sel )
    8590        self.nchan = len(self.tablein._getspectrum(0))
     
    135140        #print 'len(x)=',len(x)
    136141        #print 'x=',x
    137         ybase = numpy.ones(self.ny,dtype=float)*self.blc[1]
     142        ybase = numpy.ones(self.nx,dtype=float)*self.blc[1]
    138143        #print 'len(ybase)=',len(ybase)
    139144        incr = self.celly
Note: See TracChangeset for help on using the changeset viewer.