Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor update to xr_concat #81

Merged
merged 1 commit into from
Dec 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "tethysts" %}
{% set version = "4.5.9" %}
{% set version = "4.5.10" %}
# {% set sha256 = "ae2cc83fb5a75e8dc3e1b2c2137deea412c8a4c7c9acca52bf4ec59de52a80c9" %}

# sha256 is the prefered checksum -- you can get it for a file with:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
name = 'tethysts'
main_package = 'tethysts'
datasets = 'datasets/time_series'
version = '4.5.9'
version = '4.5.10'
descrip = 'tethys time series S3 extraction'

# The below code is for readthedocs. To have sphinx/readthedocs interact with
Expand Down
5 changes: 5 additions & 0 deletions tethysts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,11 @@ def xr_concat(datasets: List[xr.Dataset]):
xr3[var].attrs = var_dict['attrs']
xr3[var].encoding = var_dict['enc']

# Update the attributes in the coords from the first ds
for coord in xr3.coords:
xr3[coord].encoding = datasets[0][coord].encoding
xr3[coord].attrs = datasets[0][coord].attrs

# Fill the dataset with data
for chunk in datasets:
for var in chunk.data_vars:
Expand Down