Skip to content

Difference between pcp_combine -sum and -add #1803

Discussion options

You must be logged in to vote

@BinbinZhou-NOAA, my answer to your question is kind of, but let me explain. While its true that running -add for two input files will produce the exact same numeric results as running -sum to locate and add them, the command line arguments are very different.

The -sum option uses:

	SUM_ARGS:
		init_time
		in_accum
		valid_time
		out_accum

While the -add option uses:

	INPUT_FILES:
		file_1 config_str_1 ... file_n config_str_n

For some background, the -sum option was written first many years ago. It only works with input data with a consistent accumulation interval, such as 3-hour accumulations of precipitation. It uses the command line arguments to decide what data to look for... dividi…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@BinbinZhou-NOAA
Comment options

@JohnHalleyGotway
Comment options

Answer selected by JohnHalleyGotway
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment