Re: Plotting station data

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed Jun 26 2013 - 08:51:01 MDT

On Jun 25, 2013, at 4:10 PM, zilore mumba wrote:

> I am plotting station data from a synop or metar code using ncl. I have the literature and cannot find how to define missing values, eg if I have other data values but no pressure or temperature for example.

You can set the missing value for your data using the "_FillValue" attribute:

   x@_FillValue = -999

You will need to use whatever value is appropriate for your data. "-999" is just an example.

> If I leave it out completely, the plotting is wrong.

I don't have enough information here. What kind of plot are you creating, and what do you mean by "the plotting is wrong"? Please be more specific, and include a script and/or image if this shows the problem.

> Is it obligatory that all the values in a station message must be present?

Without knowing what kind of plot you're creating, I can't really answer this. Most of our plotting functions automatically handle missing data, if the data variable has a _FillValue attribute.

You may want to look at example "station_4.ncl" at:

http://www.ncl.ucar.edu/Applications/station.shtml

This plots METAR data over the state of Colorado.

--Mary

> Thanks for any assistance.
> Zilore

> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Jun 26 08:51:08 2013

This archive was generated by hypermail 2.1.8 : Mon Jul 01 2013 - 12:35:42 MDT