Downloading CMIP6 data - problem with lazy loading in xarray #8640
Unanswered
johanna-malle
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear all,
I am quite new to xarray and would greatly appreciate your help. I am aiming to download CMIP6 ocean salinity data over Greenland. It fails upon saving the data to a netcdf file. The way I understand it is that since I am using chunk-size when opening the dataset it automatically uses dask in the background. Here is my script:
I have played around with different chunk-sizes but it still requires too much memory to download the file. A similar script was used successfully for CMIP6 temperatures (using xr.open_mfdataset, I have changed it to xr.open_dataset in an attempt to reduce memory), but it seems to fail now because of the much larger file sizes (incl. 2D coordinates) of ocean data. Basically as soon as I try to access any data directly (via e.g. .plot or .values) it fails. Thanks in advance for any input!
Beta Was this translation helpful? Give feedback.
All reactions