Download NCO User's Guide
Transcript
52 nco 2.8.4 User’s Guide There should be no empty space between these five consecutive arguments. The description of these arguments follows in their order of appearance. The value of att nm is the name of the attribute you want to edit. This meaning of this should be clear to all users of the ncatted operator. If att nm is omitted (i.e., left blank) and Delete mode is selected, then all attributes associated with the specified variable will be deleted. The value of var nm is the name of the variable containing the attribute (named att nm) that you want to edit. There are two very important and useful exceptions to this rule. The value of var nm can also be used to direct ncatted to edit global attributes, or to repeat the editing operation for every variable in a file. A value of var nm of “global” indicates that att nm refers to a global attribute, rather than a particular variable’s attribute. This is the method ncatted supports for editing global attributes. If var nm is left blank, on the other hand, then ncatted attempts to perform the editing operation on every variable in the file. This option may be convenient to use if you decide to change the conventions you use for describing the data. The value of mode is a single character abbreviation (a, c, d, m, or o) standing for one of five editing modes: a Append. Append value att val to current var nm attribute att nm value att val, if any. If var nm does not have an attribute att nm, there is no effect. c Create. Create variable var nm attribute att nm with att val if att nm does not yet exist. If var nm already has an attribute att nm, there is no effect. d Delete. Delete current var nm attribute att nm. If var nm does not have an attribute att nm, there is no effect. If att nm is omitted (left blank), then all attributes associated with the specified variable are automatically deleted. When Delete mode is selected, the att type and att val arguments are superfluous and may be left blank. m Modify. Change value of current var nm attribute att nm to value att val. If var nm does not have an attribute att nm, there is no effect. o Overwrite. Write attribute att nm with value att val to variable var nm, overwriting existing attribute att nm, if any. This is the default mode. The value of att type is a single character abbreviation (f, d, l, i, s, c, or b) standing for one of the seven primitive netCDF data types: f Float. Value(s) specified in att val will be stored as netCDF intrinsic type NC FLOAT. d Double. Value(s) specified in att val will be stored as netCDF intrinsic type NC DOUBLE. i Integer. Value(s) specified in att val will be stored as netCDF intrinsic type NC INT.