You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/planetary-computer/data-cube-quickstart.md
+55-10Lines changed: 55 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,17 +73,24 @@ The `options` field for the Render Configuration of GRIB2 assets look similar to
73
73
74
74
#### Render configuration for Zarr assets
75
75
76
-
The `options` field for the Render Configuration of Zarr assets is also similar to that of NetCDF and HDF5, however within the `assets` argument you will have to include the parameter 'sel' which enables you to select a time, step, or other variable that enables 2D rendering of one variable at one time slice from a multi-variable Zarr store. You may also need to include a 'sel_method' parameter, to ensure the right variable is selected even if the value entered is slightly off. You can read more about this 'sel' parameter in the public documentation for the Python multidimensional data read library used in the Planetary Computer Pro backend, [Xarray](https://docs.xarray.dev/en/latest/generated/xarray.DataArray.sel.html) Below is an example of a Zarr Render Configuration:
76
+
The `options` field for Zarr assets is similar to NetCDF and HDF5, but there are two important requirements:
77
+
78
+
1. Select a single time slice for rendering by using `sel=time=...`.
79
+
2. Reduce data to a 2D output before rendering.
80
+
81
+
If additional dimensions are not collapsed, rendering can fail with errors such as `Source data must be 1 band`.
82
+
83
+
You can read more about the `sel` parameter in [Xarray DataArray.sel](https://docs.xarray.dev/en/latest/generated/xarray.DataArray.sel.html). The following is a minimal working Zarr render configuration for a single timestep and 2D output:
@@ -156,12 +163,50 @@ Zarr assets ingested into Microsoft Planetary Computer Pro can be visualized in
156
163
157
164
The size of the Zarr store and spatial chunks will also impact performance. You should aim to keep the total size of a Zarr store under 2GB, and each chunk less than 100MBfor optimal performance of the tiler.
158
165
166
+
#### Zarr visualization limitations and known issues
167
+
168
+
##### Time slider behavior (known limitation)
169
+
170
+
> [!NOTE]
171
+
> Time slider behavior for Zarr is currently limited. The Explorer time slider only appears when a temporal dimension is correctly detected during ingestion.
172
+
>
173
+
> Even when Zarr assets contain time values, ingestion may fail to detect temporal metadata for some datasets. In those cases, the time slider will not render, and you must visualize one timestep at a time in render configuration (for example, `sel=time=2024-01-01`).
174
+
175
+
##### Required and recommended temporal metadata
176
+
177
+
To enable time-aware behavior, your STAC metadata should include a temporal dimension in`cube:dimensions`with:
178
+
179
+
*`type: temporal`
180
+
*`extent`
181
+
*`step`
182
+
183
+
For Zarr source data, follow CF time conventions where possible, for example:
184
+
185
+
*`standard_name="time"`
186
+
*`axis="T"`
187
+
188
+
These conventions are necessary for consistent metadata interpretation, but due to current limitations they are not always sufficient to guarantee time slider support for every Zarr dataset.
189
+
190
+
##### Kerchunk notes
191
+
192
+
Kerchunk can improve performance for multidimensional access patterns, but it does not resolve time slider issues when temporal dimensions were not detected during ingestion.
193
+
194
+
Some Zarr datasets may also fail during index processing with errors such as`Index must be monotonic increasing or decreasing`.
195
+
196
+
##### Roadmap and future support
197
+
198
+
Current and planned support is:
199
+
200
+
* Zarr v2: supported today
201
+
* Zarr v3: not supported yet, planned for future support
202
+
* Multi-time Zarr visualization and temporal handling: partial today, with continued improvements planned
203
+
159
204
#### Time slider for data cube visualization
160
205
161
206
If your data cube assets have a temporal component, you can use the time slider in the Explorer to visualize changes over time. The time slider will appear automatically if your STAC Items contains assets with a `time` dimension with an `extent`and`step` field.
162
207
163
-
>[!NOTE]
164
-
> We do not currently offer time slider support forZarr assets. Because of this, it is critical that you specify which time slices you want to visualize in the render configuration. Failure to do so will result in the Explorer attempting to render all time slices of the Zarr store at once, which will cause the Explorer to crash.
208
+
>[!NOTE]
209
+
> For Zarr assets, see **Zarr visualization limitations and known issues**for current time slider constraints and required render configuration patterns.
0 commit comments