Changeset 2669 for trunk/python


Ignore:
Timestamp:
10/17/12 17:20:35 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-4429

Ready for Test: Yes

Interface Changes: 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...

Use DirectionCoordinate for conversion between world and pixel.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapgrid.py

    r2594 r2669  
    448448        #print 'nrow=',nrow
    449449
    450         idx = 0
    451         d0 = s.get_direction( 0 ).split()[-1]
    452         while ( s.get_direction(self.npol*idx) is not None \
    453                 and s.get_direction(self.npol*idx).split()[-1] == d0 ):
     450        idx = 1
     451        d0 = s.get_direction( 0 ).split()[-2]
     452        d = s.get_direction(self.npol*idx)
     453        while( d is not None \
     454               and d.split()[-2] != d0):
    454455            idx += 1
     456            d = s.get_direction(self.npol*idx)
    455457       
    456458        self.nx = idx
     
    484486            opt += ', channel %s'%(chan)
    485487        data = self.getData( chan, pol )
    486         data = numpy.fliplr( data )
     488        #data = numpy.fliplr( data )
    487489        title = 'Gridded Image (%s)'%(opt)
    488490        pl.figure(10)
     
    530532        if self.ifno < 0:
    531533            ifno = self.tablein.getif(0)
    532             print 'ifno=',ifno
     534            #print 'ifno=',ifno
    533535        else:
    534536            ifno = self.ifno
Note: See TracChangeset for help on using the changeset viewer.