os-climate / hazard

Onboarding, creation and transformation of climate hazard models for OS-Climate
Apache License 2.0
8 stars 12 forks source link

Offer the option in high-level APIs to write xarray-compatible zarr stores #67

Closed emileten closed 6 months ago

emileten commented 7 months ago

Currently, by default, we write 'raw' zarr arrays without the coordinate labels in the metadata, which makes the output unusable natively with xarray. However, we do have methods in this code base to write xarray-compatible zarr stores from the output we produce. See context : https://github.com/os-climate/hazard/issues/66.

This ticket is about adding options to the module's APIs (namely, the command line interface and services API) to actually make use of this existing method and ensure the output of a given run is readable with xarray.