Python| intake | 无法将读取的nc数据转为xarray格式 | to_dask()
问题描述
最近在配置环境的时候,发现安装了intake之后,可以获取数据,但是无法将获取的数据转换为dask进行后续处理,后来发现是环境包依赖的问题。
解决
单独安装固定版本的intake,及其相关的依赖环境,比如说这里需要
- intake==0.7.0
- intake-esm
- intake-stac
- intake-xarray==0.7.0
当然,这是已经完成了其他依赖的前提基础上。
完整的环境如下所示,这里需要python的版本是3.12
channels:
- conda-forge
- nodefaults
dependencies:
- python==3.12.*
- aiohttp
- cartopy
- cdsapi
- cfgrib
- cfunits
- cmocean
- dask
- dask-jobqueue
- distributed
- easygems
- fastparquet
- flox
- h5netcdf
- hdf5plugin
- healpix
- healpy
- hvplot
- intake==0.7.0
- intake-esm
- intake-stac
- intake-xarray==0.7.0
- ipykernel
- iris
- jupyter
- jupyterlab
- jupytext
- libnetcdf>=4.9.2
- matplotlib
- netcdf4
- numba
- numpy
- odc-stac
- opencv
- pandas
- pyflextrkr
- pystac
- pytest
- requests
- rioxarray
- ruff
- s3fs
- scipy
- seaborn
- sh
- spectrum
- tobac
- tokenizers
- tqdm
- types-pyyaml
- uxarray
- xarray
- xgcm
- zarr<3.0.0
- pip
- pip:- gribscanname: kelvin