NCL Home> Application examples> Models || Data files for examples

WRF

Static

The file used in the 'static' examples is different from the WRF 'wrfout_' used in several other examples. For example the 'wrfout_' files use the file attribute MAP_PROJ to indicate the map projection (1 = LambertConformal, 2 = Stereographic, 3 = Mercator) while this 'static' file uses a character variable "grid_type" to indicate the map projection. The easist way to determine the grid type is to use the ncdump utility which is distributed with netCDF.
ncdump -v grid_type file_name.nc
The grid_type may entered into the plot script. If the grid_type is listed as "secant (or tangent) Lambert Conformal" one should use mpProjection = "LambertConformal".

The variables on this file are stored as four dimensional (record, z, y, x). However, both the "record" and "z" dimensions are of size 1. All the examples read the variables to be plotted as x = f->X(0,0,:,:). In this case, x will be a 2D variable z(y,x).
WRF_static_1.ncl: Sample read of the average height. Uses mask to set all ocean values to the _FillValue. This is not necessary It is done only to make a nicer looking plot.
WRF_static_2.ncl: A panel plot