Skip to content

Commit

Permalink
Fix product name for plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasmarke committed Oct 22, 2024
1 parent 9202816 commit 484ebd3
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions mwrpy/process_mwrpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,22 @@ def plot_product(prod: str, date, site: str):
"ko_index",
]
)
generate_figure(
filename,
f_names,
ele_range=elevation,
save_path=output_dir,
image_name=str(PRODUCT_NAME[prod]),
title=False,
)
else:
f_names = list(str([PRODUCT_NAME[prod]]))
title = False if prod == "2I06" else True
generate_figure(
filename,
f_names,
ele_range=elevation,
save_path=output_dir,
image_name=str(PRODUCT_NAME[prod]),
title=title,
)
generate_figure(
filename,
[PRODUCT_NAME[prod]],
ele_range=elevation,
save_path=output_dir,
image_name=str(PRODUCT_NAME[prod]),
)

elif os.path.isfile(filename) and (prod in ("single", "multi")):
for var_name in PRODUCT_NAME[prod]:
Expand Down

0 comments on commit 484ebd3

Please sign in to comment.