Skip to content

Commit

Permalink
add start_time and end_time attrs to catalog_builder.py (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmims authored Apr 23, 2024
1 parent f630f67 commit cca901b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/catalog_builder/catalog_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ def parse_gfdl_pp_ts(file_name: str):
cell_methods = ""
cell_measures = ""
time_range = split[1]
start_time = time_range.split('-')[0]
end_time = time_range.split('-')[1]
variable_id = split[2]
source_type = ""
member_id = ""
Expand Down Expand Up @@ -141,6 +143,8 @@ def parse_gfdl_pp_ts(file_name: str):
'grid_label': grid_label,
'units': units,
'time_range': time_range,
'start_time': start_time,
'end_time': end_time,
'chunk_freq': chunk_freq,
'standard_name': standard_name,
'long_name': long_name,
Expand Down

0 comments on commit cca901b

Please sign in to comment.