Changeset 2358


Ignore:
Timestamp:
12/02/11 19:42:37 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2816

Ready for Test: No

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...

Updated plotter class.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapgrid.py

    r2356 r2358  
    2525        self.outfile = self.gridder._save( outfile )
    2626
    27     def plot( self ):
     27    def plot( self, plotchan=-1 ):
    2828        plotter = _SDGridPlotter( self.infile, self.outfile )
    29         plotter.plot()
     29        plotter.plot( chan=plotchan )
    3030       
    3131class _SDGridPlotter:
     
    5858
    5959        idx = spectra.nonzero()[1]
    60         self.nonzero = self.pointing.take( idx, axis=1 )
     60        #self.nonzero = self.pointing.take( idx, axis=1 )
    6161       
    6262        s = scantable( self.outfile, average=False )
     
    8585        if chan < 0:
    8686            data = self.data.mean(axis=0)
     87            title = 'Gridded Image (averaged over channel)'
    8788        else:
    8889            data = self.data[chan]
     90            title = 'Gridded Image (channel %s)'%(chan)
    8991        pl.figure(10)
    9092        pl.clf()
    9193        pl.plot(self.grid[0],self.grid[1],'.',color='blue')
    9294        pl.plot(self.pointing[0],self.pointing[1],'.',color='red')
    93         pl.plot(self.nonzero[0],self.nonzero[1],'o',color='green')
     95        #pl.plot(self.nonzero[0],self.nonzero[1],'o',color='green')
    9496        extent=[self.grid[0].min()-0.5*self.cellx,
    9597                self.grid[0].max()+0.5*self.cellx,
     
    100102        pl.xlabel('R.A. [rad]')
    101103        pl.ylabel('Dec. [rad]')
     104        pl.title( title )
Note: See TracChangeset for help on using the changeset viewer.