Re: vertical time series

From: Mary Haley (haley AT XXXXXX)
Date: Mon Mar 08 2004 - 16:35:21 MST

  • Next message: David B. Reusch: "ngcm output fails"

    >
    > All,
    >
    > The usual disclaimer...I am new to NCL (first day). I have a 2-D
    > array of temperature for a location. The "vertical" axis is on pressure
    > levels and the "horizontal"-axis is time. I would like to plot (contour)
    > this with the vertical plotted on the reverse log of pressure.
    >
    > Using some examples I can plot the data and the axis is labeled correctly
    > but it looks like the values on the axis and the actual plotted data have no
    > correlation...e.g. the value of the 500 mb temp at time 0 does not match up
    > with the image that is generated. It looks like the data is being contoured
    > as if it was equally spaced in the vertical not the log of p.
    >
    > John C. Ertl

    This is just an FYI, since John and I have been corresponding
    privately on this question. If you have data that has an irregular Y
    axis, then NCL needs to know about it because otherwise it will
    default to a linear Y axis (and ditto for the X axis).

    In the case of an irregular Y axis, you can indicate this by setting
    the "sfYArray" resource to the 1D array that represents the Y axis
    values. With John's data, the Y axis is represented by pressure
    values. So, for example, if "p" is the variable that holds the 1D
    array of pressure values, he would set the resource as follows:

         res@sfYArray = p

    --Mary

    > Fleet Numerical Meteorology & Oceanography Center
    > 7 Grace Hopper Ave
    > Monterey, CA 93943
    > phone: (831) 656-5704
    > fax: (831) 656-4363
    >
    > _______________________________________________
    > ncl-talk mailing list
    > ncl-talk AT ucar.edu
    > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
    >
    _______________________________________________
    ncl-talk mailing list
    ncl-talk AT ucar.edu
    http://mailman.ucar.edu/mailman/listinfo/ncl-talk



    This archive was generated by hypermail 2b29 : Mon Mar 08 2004 - 16:37:32 MST