shell scripts: |
slice.shExample: Temperature slice at 300m from overturning experimentThe figure below was made by issuing the command: slice.sh 4dmap hycom_008c15_h.nc hycom_008c15_TS.nc thknss temp 300 10 ![]() slice.sh: syntaxslice.sh --help slice.sh / ncl-metno 1.2 >>> >>> >>> NOTE: This script assumes that the variable to depict has been >>> stored with dimensions in the order x -y -layer(-time) >>> or lon-lat-layer(-time) >>> (w/ Fortran style sequence of dimensions). >>> >>> Syntax: >>> ======= >>> >>> slice.sh (layer) <option> <hfile> <varfile> <hname> <varname>\ >>> <depth> (<time>) >>> where >>> (layer) include an initial argument 'layer' if you want isopleths >>> to be drawn for layer interfaces, ignore otherwise >>> <option> specifies dimensions and geo- or nongeo-grid >>> implemented: >>> [34]d - [34]D fields >>> [34]dmap - [34]D fields, dims. are lon & lat >>> [34]dMap - [34]D fields, lon & lat are 2d fields >>> ...[34]d[mM]ap will be displayed on a geogr. map >>> <hfile> name of netCDF file w/thickness results >>> <varfile> name of netCDF file w/requested variable >>> you may use '.' if both variables are on the same file >>> <hname> name of thickness variable >>> <varname> name of variable to depict >>> NOTE! This script requires the existence of an >>> attribute 'missing_value' to <varname> >>> <depth> depth for which the contour plot is to be drawn >>> (positive integer, 1-4 digits) >>> <time> time step no. to depict >>> a negative <time> value is interpreted as a flag that >>> stops the ncl script from being deleted >>> >>> Special case: >>> If <option> is one of [34]dMap, the name of the 2d longitude and >>> latitude variable may be specified on the command line: >>> slice.sh (layer) <option> <lonname> <latname> <hfile> <varfile> <hname> <varname> <depth> (<time>) >>> (Alternatively, if these names are not 'lon' or 'lat', 'userdef.ncl' may >>> be edited when option is one of [34]dMap.) >>> >>> The script will produce an eps-file and a png-file. >>> >>> >>> User specifications: >>> ==================== >>> >>> By copying the default spec.s from |