smart_geocubes.core.storage
¶
Local zarr-storage related functions.
Classes:
-
CoordEncoding–TypedDict for the encoding of regularly spaced coordinates.
Functions:
-
optimize_coord_encoding–Optimize zarr encoding of regularly spaced coordinates.
-
optimize_temporal_encoding–Optimize the encoding of temporal data.
optimize_coord_encoding
¶
Optimize zarr encoding of regularly spaced coordinates.
Taken from https://github.com/earth-mover/serverless-datacube-demo/blob/a15423b9734898f52468bebc441e29ccf3789410/src/lib.py#L280
Parameters:
Returns:
-
CoordEncoding(CoordEncoding) –A dictionary containing the zarr compressors and filters to use for encoding the coordinates.
Source code in src/smart_geocubes/core/storage.py
optimize_temporal_encoding
¶
Optimize the encoding of temporal data.
Parameters:
-
(temporal_extent¶DatetimeIndex) –The temporal extent to encode.
Returns:
-
dict(dict) –A dictionary containing the zarr compressors and filters to use for encoding the temporal data.