# Error When Downloading CMIP6 Data

**URL:** <https://discourse.pangeo.io/t/error-when-downloading-cmip6-data/1882>\
**Category:** Data\
**Created:** [October 26, 2021, 6:38pm UTC](https://discourse.pangeo.io/t/error-when-downloading-cmip6-data/1882 "2021-10-26T18:38:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Damon\_Lin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/damon_lin/32/1229_2.png) [@Damon\_Lin](https://discourse.pangeo.io/u/Damon_Lin)\
**Post date:** [October 26, 2021, 6:38pm UTC](https://discourse.pangeo.io/t/error-when-downloading-cmip6-data/1882/1 "2021-10-26T18:38:23Z")

</div>

I am using a virtual environment in Anaconda to download CMIP6 data. The script is from [GitHub - tom-andersson/icenet-paper: Code associated with the paper 'Seasonal Arctic sea ice forecasting with probabilistic deep learning'](https://github.com/tom-andersson/icenet-paper)  
However, I am running into this error (I am using netcdf4=1.5.0):

Downloading data for EC-Earth3, r7i1p1f1

siconca: searching ESGF… found historical, found ssp245, found 251 files. loading metadata… curl error details:  
curl error details:  
curl error details:  
Traceback (most recent call last):  
File “/opt/anaconda3/envs/icenet/lib/python3.7/site-packages/xarray/backends/file\_manager.py”, line 199, in \_acquire\_with\_cache\_info  
file = self.\_cache[self.\_key]  
File “/opt/anaconda3/envs/icenet/lib/python3.7/site-packages/xarray/backends/lru\_cache.py”, line 53, in **getitem**  
value = self.\_cache[key]  
KeyError: [\<class ‘netCDF4.\_netCDF4.Dataset’\>, (‘[http://esgf.bsc.es/thredds/dodsC/esg\_dataroot/a1st-CMIP-r7/CMIP6/CMIP/EC-Earth-Consortium/EC-Earth3/historical/r7i1p1f1/SImon/siconca/gr/v20201217/siconca\_SImon\_EC-Earth3\_historical\_r7i1p1f1\_gr\_194001-194012.nc](http://esgf.bsc.es/thredds/dodsC/esg_dataroot/a1st-CMIP-r7/CMIP6/CMIP/EC-Earth-Consortium/EC-Earth3/historical/r7i1p1f1/SImon/siconca/gr/v20201217/siconca_SImon_EC-Earth3_historical_r7i1p1f1_gr_194001-194012.nc)’,), ‘r’, ((‘clobber’, True), (‘diskless’, False), (‘format’, ‘NETCDF4’), (‘persist’, False))]

---

<div class="post-metadata">

**Author:** ![rabernat](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/rabernat/32/22_2.png) [@rabernat](https://discourse.pangeo.io/u/rabernat)\
**Post date:** [October 26, 2021, 8:15pm UTC](https://discourse.pangeo.io/t/error-when-downloading-cmip6-data/1882/2 "2021-10-26T20:15:43Z")

</div>

Welcome and thanks for sharing your question Damon. Since you are running code that has been distributed by its author via github, I think it might make more sense to ask your question in that repo’s issue tracker

> **[Issues · tom-andersson/icenet-paper](https://github.com/tom-andersson/icenet-paper/issues)**
>
> Code associated with the paper 'Seasonal Arctic sea ice forecasting with probabilistic deep learning' - Issues · tom-andersson/icenet-paper

It will be hard for us to debug the author’s code. But he will hopefully be able to provide you with a quick answer.
