[Thread Prev][Thread Next][Index]

Re: Using data as axis values



Hi Francisco,
Take a look at the topic "DEFINE AXIS/FROM_DATA", in the
Commands Reference section, and also see the regridding sections
in Chapter 4.  You would do something like this:

(read your data, say the variables are xcoords, a, b)

!   Define your axis from the first variable.  (You will also want to set
!   the axis units with /UNITS)
DEFINE AXIS/X/FROM_DATA/NAME=xax  xcoords

!    Now put your other variables on this axis, using "blind association"
!    regridding, @ASN.
LET ax = a[gx=xax@ASN]
LET bx = b[gx=xax@ASN]

And you are ready to use AX and BX.

Note the xcoords need to be monotonic; you might use sorting if it is not.


Ansley Manke

Francisco Pastor wrote:

>     Hi
>
>     I am trying to plot data from an ASCII file with three columns,
> being the first one the x coordinate of the values from the following
> two columns. I am searching through the examples and the users manual
> but can't find the point. Have you done this once? Maybe it's a very
> easy one but I don't know how to do it.
>
>     Thanks
>
>     Paco
>
> --
> Francisco Pastor (Sysadmin)
> Meteorology Department
> Fundacion CEAM, Spain
> paco@ceam.es
> http://www.gva.es/ceam
> Tel: 96 131 82 27
> Fax: 96 131 81 90
> **********************************************************
> * Las opiniones aqui expresadas son exclusivas del autor *
> *  La Fundacion CEAM declina cualquier responsabilidad   *
> *--------------------------------------------------------*
> * Opinions expressed here are only those from the author *
> *       Fundacion CEAM rejects any responsability        *
> **********************************************************

--
Ansley Manke  Pacific Marine Environmental Laboratory  Seattle WA  (206)526-6246




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement