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

WRF

Mercator Projection

The WRF variables in these examples are on a native mercator projection. By default, when data are placed onto a map, NCL performs a transformation to the specified projection. This transformation is not needed for native grids. To turn off this default behavior, set tfDoNDCOverlay = True

The gsm_csm_map* suite of interfaces expect global data. To turn off this default mode, set gsnAddCyclic = False.

The WRF netCDF file contains the information needed to properly plot the grid, specifically: (i) the global attributes TRUELAT1, TRUELAT2 and CEN_LON and (ii) the grid latitudes (XLAT) and longitudes (XLONG). The required approach to plotting the data upon a native projection is to specify mpLimitMode = "Corners".

This suite of examples includes showing how to span multiple files.
WRF_me_1.ncl:
WRF_me_2.ncl
WRF_me_3.ncl: A panel plot.
WRF_me_4.ncl: Reads a variable from across multiple files. Uses addfiles to create an array of points to the files and addfiles_GetVar to read in the variable.
WRF_me_5.ncl: Cross sections along user specified latitudes and longitudes of the Mercator grid. The eta [ZNU] vertical coordinate is scaled such that it simulates pressure levels. This allows gsn_csm_pres_hgt to be used.