Issue with salem when running workflow.init_glacier_directories
See original GitHub issueDear fmaussion, Thanks a lot for this nice model. I am trying to run it but I keep on getting error messages related to the salem package. It is installed in my oggm_env, I will try to explain:
When I try:
gdirs = workflow.init_glacier_directories(rgi_ids, from_prepro_level=3, prepro_border=80)
I get the following error message:
_crs = salem.check_crs(rgi_entity.crs)
NameError: name ‘salem’ is not defined_
This happens in workflow.py because salem is not imported, despite it is installed within the environment. Furthermore, I have tried to run the tests within salem package, and all yield the same error:
‘ImportError: cannot import name ‘_MultiFileCloser’ from ‘xarray.backends.api’ (/home/mon/miniconda3/envs/oggm_env/lib/python3.8/site-packages/xarray/backends/api.py)’
I am working in Ubuntu20.04 within a Virtual Box. Thanks a lot for your help.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
Hi, thanks lilianschuster and fmaussion because your suggestion solved the issue with salem: by downgrading xarray 0.17.0 to xarray 0.16.2 Thanks to all
Ah yes ok @TimoRoth had a recent PR on salem to fix that I think: https://github.com/fmaussion/salem/pull/195
Maybe need a salem release soon