Skip to content

Commit

Permalink
update 'standard_name' for each var in write_pp_catalog (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmims authored Nov 20, 2024
1 parent 1ca02aa commit 6deaa75
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6deaa75

Please sign in to comment.