Skip to content

Commit

Permalink
Bugfix #2161 develop PCPCombine additional field arguments in -subtra…
Browse files Browse the repository at this point in the history
…ct mode (#2162)
  • Loading branch information
georgemccabe committed May 3, 2023
1 parent cb4d23a commit 918f5cf
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit 918f5cf

Please sign in to comment.