[Thread Prev][Thread Next][Index]

Re: Axis..



Hi Lorenzo,
You can define the new Y axis, and regrid the data to it. If you define the new axis with the same number of grid points, with each value of Y in km corresponding to the value of hPa, then use the @ASN regridding transformation. Say your existing Y axis, with the units of hPa is called yax. Do you have a functional relation between km and pressure units hPa? If so, then you can use the pressure values from the Y axis to create the km axis. If the pressure axis is called yax, then this would go something like this:

yes? let yhpa = y[gy=yax]
yes? let ykm = function(yhpa) ! whatever the correct functional relation is, say, 3*yhpa + 12
! (I am must making that up)

yes? define axis/y/units=km yax_km = ykm

yes? let newvar = oldvar[gy=ykax_km@asn]
yes? plot newvar

Or, you can define the new axis from a list of km values:

yes? let ykm = {1, 5, 15.2, 19, 30, 45}
yes? define axis/y/units=km yax_km = ykm

yes? let newvar = oldvar[gy=ykax_km@asn]
yes? plot newvar


Lorenzo Labrador wrote:


Hi everybody:
I'm doing some simple plots from a dataset whose main y-axis units are hPa. I would like to make the same plots but using km instead for the y axis.
Any ideas?

Thanks in advance,

Lorenzo.

******************************************************************************
Lorenzo Labrador
Max Planck Institute for Chemistry Tel: ++49/6131/305332
Department of Airchemistry / NWG FAX: ++49/6131/305577
J.J. Becherweg 27 email: lorenzo@mpch-mainz.mpg.de
D-55128 Mainz

******************************************************************************







[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement