PCP-Combine Tool: Run Sum Command
PCP-Combine Tool: Run Sum Command admin Mon, 06/24/2019 - 16:13Since PCP-Combine performs a simple operation and reformatting step, no configuration file is needed.
- Start by making an output directory for PCP-Combine and changing directories:
cd ${METPLUS_TUTORIAL_DIR}/output/met_output/pcp_combine
- Now let's run PCP-Combine twice using some sample data that's included with the MET tarball:
-sum 20050807_000000 3 20050807_120000 12 \
sample_fcst_12L_2005080712V_12A.nc \
-pcpdir ${METPLUS_DATA}/met_test/data/sample_fcst/2005080700
-sum 00000000_000000 1 20050807_120000 12 \
sample_obs_12L_2005080712V_12A.nc \
-pcpdir ${METPLUS_DATA}/met_test/data/sample_obs/ST2ml
The "\" symbols in the commands above are used for ease of reading. They are line continuation markers enabling us to spread a long command line across multiple lines. They should be followed immediately by "Enter". You may copy and paste the command line OR type in the entire line with or without the "\".
Both commands run the sum command which searches the contents of the -pcpdir directory for the data required to create the requested accmululation interval.
In the first command, PCP-Combine summed up 4 3-hourly accumulation forecast files into a single 12-hour accumulation forecast. In the second command, PCP-Combine summed up 12 1-hourly accumulation observation files into a single 12-hour accumulation observation. PCP-Combine performs these tasks very quickly.
We'll use these PCP-Combine output files as input for Grid-Stat. So make sure that these commands have run successfully!