shell scripts: |
addlayers.shSyntaxExample: Depth of interface between layers 15 and 16In order to calculate and display the depth of the interface between layers 15 and 16 at time step no. 120, the following command was issued: addlayers.sh 4dmap hycom_031_h.nc thknss 1 15 120 addlayers.sh: syntaxaddlayers.sh --help addlayers.sh / ncl-metno 1.2 >>> >>> >>> Syntax: >>> ======= >>> >>> addlayers.sh <option> <file> <variable> <firstlevel> <lastlevel> (<d4node>) >>> where >>> <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 >>> <file> name of the netcdf file >>> <variable> name of requested variable on the netcdf file >>> (case sensitive) >>> <firstlevel> this is the first vertical level no. in the addition >>> <lastlevel> this is the last vertical level no. in the addition >>> <d4node> node no. of fourth dimension (usually time) >>> >>> 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: >>> addlayers.sh <option> <lonname> <latname> <file> <variable> (<d4node>) >>> (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 >>> /home/arnem/lib/ncl-metno/userdef.ncl >>> to the directory where the command 'addlayers.sh' is given, >>> the user may specify >>> * title >>> * font >>> * zooming >>> * color map (palette) >>> * no. of colors >>> * plot size limits >>> for geographical maps: >>> * names of longitude & latitude variables >>> * map projection >>> * coastline detail level >>> (look up, or copy, this file to edit your own 'userdef' file). >>> >>> >>> Example: >>> ======== >>> >>> addlayers.sh 4dmap hydrography.nc thknss 1 5 10 >>> will produce a depiction on a lon-lat grid w/ a map, >>> of the sum of values for the variable 'thknss' for >>> layers 1-5 from the tenth time step, provided that >>> the third and fourth dimensions are layer no. and >>> time, respectively. Values will be read from the >>> file 'hydrography.nc' >>> >>> >>> Terminating. |