GrADS Tips and Tricks

Return to the GrADS Overview

Contents:


Reverse the vertical coordinate

set yflip on

    This is useful when making crossections with the new Genesis files in which the vertical levels are ordered 1 (.005 ) to 18 (.993).

Vint function

Please be aware the documentation for the vint function is not correct. The order of the arguments is given as:

    vint(expr,psexpr,const)

    and should be:

    vint(psexpr,expr,const)

    The explanation for these arguments in the documentation is still valid. Using the arguments in the improper order may give reasonable-looking results, so if you are using the vint function, please verify you are using it correctly.

    Example:
    Say we have a netCDF data file with specific humidity (q) at the 1000, 900, 850, 700, 500, 400, 300, and 200 mb levels and a surface pressure field (ps) in mb. We can calculate the vertically integrated water vapor:

    d vint(ps,q,200)

    This NCL script allows you to convert sigma level data to pressure level data and also gives the surface pressure field necessary for the vint function.

Make title font smaller

Use  \  before title and after.


More questions? See the online GrADS manual.