NCL Home> Application examples> Data Analysis || Data files for some examples

Example pages containing: tidbits | resources | functions/procedures

Regridding

There are numerous regridding functions available in NCL. Try following our new regridding decision tree to help you choose.
regrid_1.ncl: An example of using linint2, which interpolates from one grid to another using bilinear interpolation.
regrid_2.ncl: An example of using g2gsh, which interpolates from one gaussian grid to another using spherical harmonics.

example, the actual interpolation is conducted using g2gsh_Wrap, a wrapper function that will assign all the appropriate meta data, including the gaussian latitudes, to resulting output.
regrid_3.ncl: An example of using g2fsh, which interpolates from one gaussian grid to a fixed grid using spherical harmonics.
regrid_4.ncl: An example of using f2fsh, which interpolates from one fixed grid to another using spherical harmonics.
regrid_5.ncl: An example of using f2gsh, which interpolates from a fixed grid to a gaussian grid using spherical harmonics.

Even though this example uses f2gsh_Wrap the coordinate variables could be created manually. See example one for the creation of the longitude array. The resulting gaussian latitude array can be created using latGau.