MET Practical Sessions, January 2012
PCP-Combine Tool: General
PCP-Combine Functionality
The PCP-Combine tool is used (if needed) to add, subtract, or sum accumulated precipitation from several GRIB files into a single NetCDF file containing the desired accumulation period. It's NetCDF output may be used as input to the Point-Stat, Grid-Stat, Wavelet-Stat, Ensemble-Stat, and MODE tools. PCP-Combine may be used to sum any GRIB code you like by using the -gc command line option. The GRIB files being combined must have already been placed on a common grid on which the user would like to verify. The copygb utility is recommended for re-gridding GRIB files. In addition, the PCP-Combine tool will only sum model files with the same initialization time unless it is indicated to ignore the initialization time.
PCP-Combine Usage
View the usage statement for PCP-Combine by simply typing the following:
-
bin/pcp_combine
| Usage: pcp_combine | ||
| [[-sum] sum_args] | [-add add_args] | [-subtract subtract_args] (Note: "|" means "or") | ||
| [[-sum] sum_args] | Accumulations from multiple files should be summed up using the arguments provided. | |
| [-add add_args] | Accumulations from two files should be added together using the arguments provided. | |
| [-subtract subtract_args] | Accumulations from two files should be subtracted using the arguments provided. | |
| [-gc code] | Overrides the default GRIB code (61) to be used (optional). | |
| [-ptv number] | Overrides the default GRIB parameter table version number (2) to be used (optional). | |
| [-log file] | Outputs log messages to the specified file | |
| [-v level] | Level of logging | |
Use the -sum, -add, or -subtract command line option to indicate the operation to be performed. Each operation has its own set of required arguments.

