xESMF icon indicating copy to clipboard operation
xESMF copied to clipboard

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

Open Thomas-Moore-Creative opened this issue 1 year ago • 1 comments

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!

Thomas-Moore-Creative avatar Aug 31 '23 03:08 Thomas-Moore-Creative

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 ?

aulemahal avatar Sep 11 '23 15:09 aulemahal