Skip to content
Thomas Nipen edited this page Nov 26, 2017 · 13 revisions

Variable names

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:

  1. Attributes are provided on the command-line
  2. 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

Different input and output variable names

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:

  1. You are processing a variable and want it to have a different name
  2. 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
Clone this wiki locally