Skip to content

Commit

Permalink
that's not an xarray yet
Browse files Browse the repository at this point in the history
  • Loading branch information
wx4stg committed Jul 28, 2024
1 parent 81502fd commit 9491cc2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyxlma/lmalib/io/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ def reorder_stations(dataset, index_mapping):
# Get the attributes attached to each variable in the dataset
dv_attrs = {}
new_ds = new_template_dataset()
for var in new_ds.data_vars:
dv_attrs[var] = new_ds[var].attrs
print(new_ds)
for var in new_ds['data_vars']:
dv_attrs[var] = new_ds['data_vars'][var]['attrs']
# Define list of 'properties', things which identify a station and are not expected to change
property_vars = ('station_latitude', 'station_longitude', 'station_altitude', 'station_code', 'station_network')
# Define list of variables to be recalculated for each station after the datasets are combined
Expand Down

0 comments on commit 9491cc2

Please sign in to comment.