diff --git a/conda/meta.yaml b/conda/meta.yaml index 663a4e1..16a9279 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -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: diff --git a/setup.py b/setup.py index 107da76..a1e5ced 100644 --- a/setup.py +++ b/setup.py @@ -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 diff --git a/tethysts/utils.py b/tethysts/utils.py index af22e11..67727f1 100644 --- a/tethysts/utils.py +++ b/tethysts/utils.py @@ -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: