Skip to content

Commit

Permalink
per #2161, fix setting of additional field arguments when running -su…
Browse files Browse the repository at this point in the history
…btract mode
  • Loading branch information
georgemccabe committed May 3, 2023
1 parent d23c8c2 commit b387c74
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 b387c74

Please sign in to comment.