Skip to content

Commit

Permalink
Merge pull request #1489 from metno/proxyvars
Browse files Browse the repository at this point in the history
Renaming of proxy vars for contours and overlays
  • Loading branch information
lewisblake authored Jan 21, 2025
2 parents 70cce1f + 9591a7d commit c10dcc3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pyaerocom/aeroval/modelmaps_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def _process_contour_map_var(self, model_name, var, reanalyse_existing): # prag
contour,
self.exp_output.proj_id,
self.exp_output.exp_id,
var,
self.cfg.model_cfg.get_entry(model_name).model_rename_vars.get(var, var),
model_name,
timestep=time,
)
Expand Down Expand Up @@ -293,7 +293,10 @@ def _process_overlay_map_var(self, model_name, var, reanalyse_existing): # prag
if self.cfg.processing_opts.only_model_maps:
self._check_ts_for_only_model_maps(model_name, var, tst, data)
for i, date in enumerate(tst):
outname = f"{model_name}_{var}_{date}"
write_var_name = self.cfg.model_cfg.get_entry(model_name).model_rename_vars.get(
var, var
)
outname = f"{model_name}_{write_var_name}_{date}"

# Note should matche the output location defined in aerovaldb
fp_overlay = os.path.join(outdir, outname)
Expand All @@ -316,7 +319,7 @@ def _process_overlay_map_var(self, model_name, var, reanalyse_existing): # prag
self.exp_output.proj_id,
self.exp_output.exp_id,
model_name,
var,
write_var_name,
date,
)
files.append(fp_overlay + "." + self.cfg.modelmaps_opts.overlay_save_format)
Expand Down

0 comments on commit c10dcc3

Please sign in to comment.