Closed quai20 closed 4 years ago
I tried CORA dataset in mediterranean sea and it is working for me:
Which spatial extent are you using?
I am using 0.16.0 xarray version
It works for me if I load only 1 file from CORA. The error seems to be raised when the dataset is dask-chunked (xarray_mfopen)
@gmaze : Does the function get_most_freq_labels(this_ds)
is compatible with chunked dataset ?
I am using xarray.open_mfdataset
:
file_path = '/home5/pharos/REFERENCE_DATA/OCEAN_REP/CORA/CORA5.1/field/2016/*_TEMP.nc'
lon_extent = [-6,35]
lat_extent = [30,45]
ds = xr.open_mfdataset(file_path,combine='by_coords', concat_dim='time')
ds = ds.sel(latitude=slice(lat_extent[0],lat_extent[1]), longitude=slice(lon_extent[0], lon_extent[1]))
Ok, I'll update my xarray and co to see if it comes from the env
Ok after an update it's working.
I tested the notebook
PCMtest_3Dgridded_products.ipynb
with CORA dataset (/home5/pharos/REFERENCE_DATA/OCEAN_REP/CORA/CORA5.1/field/2016/*_TEMP.nc
). I get this error when trying to plot the most frequent label :My dataset has the 'pcm_class' dimension :