Closed AliceBalfanz closed 3 years ago
If you do not specify the opener, the cci odp data store will return data as a dataset. For datasets, spatial subsetting is not supported (as they might not have the necessary spatial dimensions). To create a subset, you need to specify to open the data as a cube: dataset = store.open_data( 'esacci.SST.day.L4.SSTdepth.multi-sensor.multi-platform.OSTIA.1-1.r1', opener_id='dataset[cube]:zarr:cciodp' variable_names=['analysed_sst'], bbox=[5, 35, 6, 36], time_range=['2008-07-01','2008-07-10'])
(In your example, you only get a white area, so I recommend to use another bounding box to see the effect.)
This does not mean that there is no bug here, though. Calling store.get_open_data_params_schema() should tell you that you have to use the global bounding box extent, but it doesn't.
Will be solved by #34 .
Aolved by #34
When requesting a cci-cube for dataset_ID
'esacci.SST.day.L4.SSTdepth.multi-sensor.multi-platform.OSTIA.1-1.r1'
the parameter bbox is ignored, and the global extent is returned:To reproduce: