pangeo-data / xESMF

Universal Regridder for Geospatial Data
http://xesmf.readthedocs.io/
MIT License
189 stars 34 forks source link

FAILED test > tests/test_frontend.py::test_regrid_dataarray[True] FAILED #291

Open Thomas-Moore-Creative opened 1 year ago

Thomas-Moore-Creative commented 1 year ago

Hi and thanks for all the great development on xESMF! It is great.

My pytest -v --pyargs xesmf has a single failure.

tests/test_frontend.py::test_regrid_dataarray[True] FAILED /miniconda3/envs/pangeo_xesmf/lib/python3.10/site-packages/xarray/core/dataset.py:1426: KeyError KeyError: 'longitude'

I created my environment thus:

mamba create -n pangeo_xesmf python=3.10
mamba activate pangeo_xesmf
mamba install -c conda-forge xesmf
mamba install -c conda-forge dask netCDF4
mamba install -c conda-forge matplotlib cartopy jupyterlab
mamba install -c conda-forge nodejs
mamba install -c conda-forge dask-labextension

pip install pytest

(main) mamba list | grep 'esmf'

# packages in environment at ...... miniconda3/envs/pangeo_xesmf:
esmf                      8.4.2           mpi_mpich_h8fb3fe9_102    conda-forge
xesmf                     0.7.1              pyhd8ed1ab_0    conda-forge

I'm on HPC that is linux-64 based platform.

Any ideas would be helpful, thanks!

aulemahal commented 1 year ago

Hi @Thomas-Moore-Creative , sorry for the long delay.

I'm not sure how you can get this only error, without other errors of the same type being raised too...

The error comes from cf_xarray not being able to recognize the coordinate. Can you tell us which version of cf_xarray you are using ?

Does this issue still happen if you update to the recent xESMF 0.8.1 ?