CCI-Tools / cate

ESA CCI Toolbox (Cate)
MIT License
50 stars 15 forks source link

Support Icesheets Greenland dataset in Zarr Data Store #984

Closed TonioF closed 3 years ago

TonioF commented 3 years ago

The Zarr Data Store contains data from the ODP that has been converted into the zarr format. There are two ICESHEETS datasets in the Zarr data store, one referring to Greenland. For the purposes of this issue, we say that a dataset is supported when

  1. it can be opened in cate
  2. it can be opened in cate with a spatial subset
  3. its content can be written to disk
  4. its data can be displayed in cate

The ICESHEETS Greenland cannot be opened in cate at all. The traceback is:

[2021-04-29 08:54:35] Request: open_dataset(datasetid=ESACCI-ICESHEETS_Greenland_GMB-2003-2016-v1.1.zarr, time_range=('2003-01-01', '2003-01-11'), var_names=['end_time', 'end_time'], region=None)

Traceback (most recent call last): File "test_cci_data_support.py", line 306, in test_opends dataset, = open_dataset(dataset_id=data_id, File "/home/users/tfincke/Projects/cate/cate/core/ds.py", line 432, in open_dataset dataset = select_subset(dataset, **subset_args) File "/home/users/tfincke/Projects/xcube/xcube/core/select.py", line 39, in select_subset dataset = select_temporal_subset(dataset, time_range=time_range) File "/home/users/tfincke/Projects/xcube/xcube/core/select.py", line 116, in select_temporal_subset raise ValueError(f'cannot compute temporal subset: variable "{time_name}" not found in dataset') ValueError: cannot compute temporal subset: variable "time" not found in dataset

forman commented 3 years ago

Cate can open them now, but cannot

image

However, it is possible to create temporal subsets:

image