NCL Home> Application examples> Non-uniform grids || Data files for some examples

Example pages containing: tips | resources | functions/procedures

Adaptive Grids

non-Uniform Grids and Triangular Mesh Conversion

The adaptive grid used in the examples on this page is a non-uniform grid. It is better to convert this grid to a triangular mesh (available since NCL version 4.2.0.a032) rather than interpolate it to a uniform grid before contouring.

For more information on non-uniform grids that NCL can handle, see the document "Non-uniform grids that NCL can contour."

If the input array to a gsn_csm graphical interface is one- dimensional, and also has one-dimensional lat/lon arrays of the same length, NCL automatically uses triangular mesh conversion. The lat/lon information must be provided by setting sfXArray and sfYArray.

adapt_1.ncl: This script illustrates how to create contours of an adaptive grid, given to us by Christiane Jablonowski. The adaptive mesh refinement (AMR) strategy utilizes a block-data structure on the sphere.

The input data, and the lat/lon arrays are all one dimensional which means the triangular mesh conversion occurs automatically. sfXArray and sfYArray are both set.