[ncl-talk] Fwd: Plot grid values
haley at ucar.edu
Thu Jul 24 14:27:39 MDT 2014
Did you see our wind barb page:
This should work for gridded data which is either on a rectilinear grid,
and hence has coordinate arrays attached to the U and V variables, or on a
curvilinear grid, in which you have two-dimensional coordinate arrays for
the X and Y (or lat/lon) dimensions.
If you have a curvilinear grid that's over a map, then you will need to
attach the 2D lat/lon arrays to your u and v variables via the special
lat2d and lon2d attributes before you plot:
u at lat2d = f->lat
u at lon2d = f->lon
v at lat2d = f->lat
v at lon2d = f->lon
The above code snippet will have to be changed, of course, to match
whatever the lat/lon variables are called on your file.
If you are not drawing wind barbs over a map, then you need to provide the
2D coordinates via the vfXArray and vfYArrays. See the "meteo_1.ncl"
You will have to add the text strings yourself, though, probably via calls
On Thu, Jul 24, 2014 at 12:46 PM, Rabah Hachelaf <hachelaf at sca.uqam.ca>
> Examples in the link are for plot station data, but in may case i have
> gridded data (gfs data).
> Does plot station data work for gridded data also.
> Can you suggest me a simple script to plot a variable values.
> 2014-07-24 11:32 GMT-04:00 Mary Haley <haley at ucar.edu>:
> Please see this page of examples:
>> On Wed, Jul 23, 2014 at 4:43 PM, Rabah Hachelaf <hachelaf at sca.uqam.ca>
>>> Hi All,
>>> I need an example ncl script how i can plot grid data values
>>> (temperature for example) like the map attached.
>>> Best regards,
>>> Rabah Hachelaf
>>> ncl-talk mailing list
>>> List instructions, subscriber options, unsubscribe:
> Best regards,
> Rabah Hachelaf
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ncl-talk