Changeset 2420


Ignore:
Timestamp:
03/03/12 20:25:18 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2816

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

DEC correction for plot panel


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapgrid.py

    r2419 r2420  
    325325                self.blc[1]-0.5*self.celly,
    326326                self.trc[1]+0.5*self.celly]
     327        deccorr = 1.0/numpy.cos(0.5*(self.blc[1]+self.trc[1]))
    327328        pl.imshow(data,extent=extent,origin='lower',interpolation='nearest')
    328329        pl.colorbar()
    329330        pl.xlabel('R.A. [rad]')
    330331        pl.ylabel('Dec. [rad]')
     332        ax = pl.axes()
     333        ax.set_aspect(deccorr)
    331334        pl.title( title )
    332335
Note: See TracChangeset for help on using the changeset viewer.