UserWarning: XArray and/or zarr not found

190 views
Skip to first unread message

Sven Borgstrom

unread,
Nov 29, 2021, 5:05:58 AM11/29/21
to MintPy
Hi Yunjun,
after the last MintPy update, when I run any command, for instance, "smallbaselineApp.py -v" for version check, I get this warning:

/Users/Sven/python/miniconda3/envs/mintpy/lib/python3.8/site-packages/pyresample/bilinear/__init__.py:50: UserWarning: XArray and/or zarr not found, XArrayBilinearResampler won't be available.
  warnings.warn("XArray and/or zarr not found, XArrayBilinearResampler won't be available.")
MintPy version v1.3.2-2, date 2021-11-26

In my conda environment (conda list) I don't have "xarray" and "zarr", whereas I have both "pyresample" and "pykdtree", the latter coming from the "pyresample" conda installation.

I think this is just a warning not affecting the regular use of MintPy, b.t.w. I suppose it's better to fix this.

How can I do?

Thanks,
Sven.

Zhang Yunjun

unread,
Nov 29, 2021, 4:10:55 PM11/29/21
to MintPy
Hi Sven,

Run `conda install xarray zarr` or `mamba install xarray zarr` will fix the warning.

Somehow I mistakenly thought both packages are now installed from pyresample conda installation, will add them back to the dependency files in the next commit. 

Thank you for letting me know,

Yunjun

Zhang Yunjun

unread,
Nov 29, 2021, 9:39:29 PM11/29/21
to MintPy
Alternatively, with the PR of https://github.com/insarlab/MintPy/pull/707, the warning msg should be gone.

Cheers,
Yunjun
Reply all
Reply to author
Forward
0 new messages