Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix #2161 develop PCPCombine additional field arguments in -subtract mode #2162

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions metplus/wrappers/pcp_combine_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ def setup_subtract_method(self, time_info, accum, data_src):
if self.c_dict.get(f"{data_src}_LEVELS"):
field_args['level'] = self.c_dict[f"{data_src}_LEVELS"][0]

if self.c_dict.get(f"{data_src}_OPTIONS"):
field_args['extra'] = self.c_dict[f"{data_src}_OPTIONS"][0]

# if data is GRIB and second lead is 0, then
# run PCPCombine in -add mode with just the first file
if lead2 == 0 and not self.c_dict[f'{data_src}_USE_ZERO_ACCUM']:
Expand Down