-
Notifications
You must be signed in to change notification settings - Fork 16
Variables
Thomas Nipen edited this page Nov 26, 2017
·
13 revisions
Gridpp processes fields based on their variable names in the NetCDF files. The variable is not required to exist in the output file. Gridpp will simply write a new variable. Gridpp will write attributes (such as standard_name and units) into the output file if it knows what they are. There are determined in this order:
- Attributes are provided on the command-line
- Attributes are already present in the output file (i.e. when a variable is being overwritten).
gridpp <input_file> <output_file> -vi precip -v precip_acc -c accumulate
By default, -v assumes that the name of the variable in the input file is the same as in the output file. There are two cases where this might not be desired:
- You are processing a variable and want it to have a different name
- The names are different in the two files
Use the -vi
option to specify a different variable name from the input file. The following creates accumulates the precip variable and names it precip_acc in the output file:
gridpp <input_file> <output_file> -vi precip -v precip_acc -c accumulate