pychunked_data_view.chunked_data_view#
Attributes#
Classes#
Defines how a axis will be chunked |
|
Defines which axis from a MARS Request form an axis in the Zarr array. |
|
Suported data extractors. |
|
Functions#
|
Module Contents#
- type MarsSelection = Mapping[str, str | int | float | Collection[str | int | float]]#
- _mars_selection_to_string(request: MarsSelection) str#
- class Chunking(*args, **kwds)#
Bases:
enum.EnumDefines how a axis will be chunked
- NONE#
Axis will not be chunked, accessing any value from this axis will load all values.
- SINGLE_VALUE#
Axis will be chunked. One chunk per value.
- NONE#
- SINGLE_VALUE#
- class AxisDefinition(keys: list[str], chunking: Chunking | Chunking)#
Defines which axis from a MARS Request form an axis in the Zarr array.
Also defines if the data is to be chunked.
- Parameters:
keys (list of str) – mars keys that for this axis.
chunking (Chunking) – Define how this axis shall be chunked
- static _translate_chunking(chunking: Chunking | Chunking) chunked_data_view_bindings.chunked_data_view_bindings.AxisDefinition.NoChunking | chunked_data_view_bindings.chunked_data_view_bindings.AxisDefinition.SingleValueChunking | chunked_data_view_bindings.chunked_data_view_bindings.AxisDefinition.IndividualChunking#
- _obj#
- property keys: list[str]#
- property chunking#
- class ChunkedDataView(obj: chunked_data_view_bindings.chunked_data_view_bindings.ChunkedDataView)#
- _obj#
- at(index: list[int] | tuple[int, Ellipsis])#
- chunkShape()#
- chunks()#
- shape()#
- fillValue()#
- class ExtractorType(*args, **kwds)#
Bases:
enum.EnumSuported data extractors.
Defines what storage format the caller expects to be stored in FDB.
- GRIB#
Extract data from GRIB
- class ChunkedDataViewBuilder(fdb_config_file: pathlib.Path | None)#
- _obj#
- add_part(mars_request: MarsSelection, axes: list[AxisDefinition], extractor_type: ExtractorType)#
- extend_on_axis(axis: int)#
- fill_value(value: float)#
- build()#