Skip to content

Commit

Permalink
Pass specs file name to gribdata.fieldData (#248)
Browse files Browse the repository at this point in the history
Allows users to specify which UPP fields are used when making various
plots by creating their own default_specs.yml that can be passed to
pygraf using the --specs option.
  • Loading branch information
ShawnMurdzek-NOAA authored Jan 31, 2025
1 parent f4ca05f commit 9c48e73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adb_graphics/figure_builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def parallel_maps(cla, fhr, ds, level, model, spec, variable, workdir,
member=mem,
model=model,
short_name=variable,
config=cla.specs['file']
)

try:
Expand All @@ -135,6 +136,7 @@ def parallel_maps(cla, fhr, ds, level, model, spec, variable, workdir,
member=mem,
model=model,
short_name=variable,
config=cla.specs['file']
)

try:
Expand Down
2 changes: 2 additions & 0 deletions adb_graphics/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ def load_specs(arg):
with open(spec_file, 'r') as fn:
specs = yaml.load(fn, Loader=yaml.Loader)

specs['file'] = spec_file

return specs

def old_enough(age, file_path):
Expand Down

0 comments on commit 9c48e73

Please # to comment.