Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Rasterise GeoParquet To Zarr

ESA

Vector datasets can be useful in combined cubes when they are rasterised onto the same grid as other variables. This notebook turns a GeoParquet polygon layer into a categorical raster mask and stores it as Zarr.

Read And Project The Vector Layer

Loading...

Build A 1 km Target Grid

Grid: 2871 columns x 3056 rows at 1000 m

Rasterise Categories

Loading...

Write And Validate Zarr

/home/krasen/micromamba/envs/pangeo/lib/python3.13/site-packages/zarr/api/asynchronous.py:244: ZarrUserWarning: Consolidated metadata is currently not part in the Zarr format 3 specification. It may not be supported by other zarr implementations and may change in the future.
  warnings.warn(
<xarray.backends.zarr.ZarrStore at 0x742a122a4860>

Quicklook

<Figure size 2000x2000 with 2 Axes>