Closed juseg closed 6 months ago
The bug remains on later versions of cf-xarray and is caused by code such as:
with hyoga.open.example('pism.alps.out.2d.nc') as ds:
with hyoga.open.example('pism.alps.in.boot.nc') as boot:
ds = ds.hyoga.assign_isostasy(boot)
Internally ds.hyoga.getvar()
uses the cf
dataset accessor. Since cf_xarray == 0.8.0
this adds any grid mapping data-variable as a new coordinate, raising the MergeError
in subsequent calls to ds.assign()
. More at https://github.com/xarray-contrib/cf-xarray/issues/513.
Documentation examples fail on
cf_xarray==0.8.0
. Assigning new variables on the example data raises aMergeError
:This issue can be worked around by downgrading to
cf_xarray<0.8.0
.