
symMinMaxPlt
Calculates the minimum/maximum values for a variable and uses nice_mnmxintvl to calculate the symmetric contour interval.
Prototype
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" ; This library is automatically loaded ; from NCL V6.2.0 onward. ; No need for user to explicitly load. procedure symMinMaxPlt ( x : numeric, ncontours : integer, outside : logical, res : logical )
Arguments
xA numeric array of any dimensionality.
ncontoursAn integer scalar value indicating the number of contours desired.
outsideA logical value indicating whether the contour values fall just outside or just inside the calculated min and max values. Set to True if outside, and False otherwise.
resThe resource variable containing all the plot modifications. For example:
res = True res@tiMainString = "title"
Description
This procedure automatically calculates the minimum and maximum values for a variable and then uses nice_mnmxintvl to calculate the symmetric contour interval and sets the resources for the user. This procedure should be used with white-in-the-middle color tables.
The contour intervals contained within the resource variable res will be modified.
See Also
Examples
For an application example, see: