From 6deaa759c4beab683bfabe748ed4a238426799c9 Mon Sep 17 00:00:00 2001 From: Jacob Mims <122570226+jtmims@users.noreply.github.com> Date: Wed, 20 Nov 2024 09:26:42 -0500 Subject: [PATCH] update 'standard_name' for each var in write_pp_catalog (#713) --- src/preprocessor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/preprocessor.py b/src/preprocessor.py index 5daa711a2..69b4ee617 100644 --- a/src/preprocessor.py +++ b/src/preprocessor.py @@ -1457,8 +1457,9 @@ def write_pp_catalog(self, else: d.update({'project_id': var.translation.convention}) d.update({'path': var.dest_path}) - d.update({'start_time': util.cftime_to_str(input_catalog_ds[case_name].time.values[0])}) - d.update({'end_time': util.cftime_to_str(input_catalog_ds[case_name].time.values[-1])}) + d.update({'start_time': util.cftime_to_str(ds_match.time.values[0])}) + d.update({'end_time': util.cftime_to_str(ds_match.time.values[-1])}) + d.update({'standard_name': ds_match[var.name].attrs['standard_name']}) cat_entries.append(d) # create a Pandas dataframe from the catalog entries