noaa-ocs-modeling / EnsemblePerturbation

perturbation of coupled model input over a space of input variables
https://ensembleperturbation.readthedocs.io
Creative Commons Zero v1.0 Universal
7 stars 3 forks source link

Compatibility with Xarray `2023.11.0` #115

Closed SorooshMani-NOAA closed 2 months ago

SorooshMani-NOAA commented 10 months ago

e.g. update the adcirc.py script to change the dimension of subset as follow:

subset = subset.drop_dims("nele")
subset = subset.assign_coords({'element': ele_da})

Taken from https://github.com/noaa-ocs-modeling/SurgeTeamCoordination/issues/144#issuecomment-1828676516

SorooshMani-NOAA commented 10 months ago

As a quick fix the version can be pinned to e.g. 2023.7.0

FariborzDaneshvar-NOAA commented 7 months ago

@SorooshMani-NOAA thanks for documenting this. I got this error today and the fix was changing xarray version as noted above (conda install xarray=2023.7.0).