printvar [ parameter=value ... ] [ inputfile ... ]
Parameters are: line_per_elem, list_dims, bad_string, printout.
printvar prints data for one or more variables. Output can be sorted by dimensions, in which case all variables must have the same dimensions. Output can also be sorted by leading dimension, in which case all variables must have the same leading dimension.
Data for a variable is scaled before it is output, using its scale and offset attributes. Bad (missing) data is output as *** unless a different value for the bad_string parameter has been specified. Data for variables with units of std_date is converted to yyyymmdd before printing.
Specifies the list of variables to print. If the list is preceded by a minus sign, all variables except those listed will be printed. Wildcards * and ? are allowed. The default is to print all variables.
Specifies that all variables have the same dimensions and that output is to be sorted by dimensions. Valid responses are [yes, no]. The default is yes.
Specifies whether or not dimension indexes for each output line are to be printed. If output is sorted by leading dimension only, only the leading dimension index is printed. Dimension indexes are 1-relative.
Valid responses are [yes, no]. The default is yes.
OPTIONAL. Specifies the string used for bad (missing) data output. Valid responses are strings no longer than 31 characters. The default is ***.
Specifies whether or not output is to be directed to the printer, as opposed to the screen. Valid responses are [yes, no]. The default is no.
[10] % printvar xx include_vars : char(255) ? [] -dcs* line_per_elem : char( 3) ? [yes] list_dims : char( 3) ? [yes] printout : char( 3) ? [yes] Printvar xx Page 1 date time platform_id 1 920209 151335.34 7192 2 920209 151335.46 1685 3 920209 151336.98 3474 4 920209 151337.28 8677 5 920209 151339.09 12512 6 920209 151340.12 9767 7 920209 151341.21 16078 :
printvar will not print if output lines exceed 256 characters.
The output of printvar can be redirected to a file, using the normal UNIX shell conventions. However, expasc is recommended for this purpose.
Last Update: $Date: 1998/09/10 21:29:06 $