xarray_schema.ChunksSchema

class xarray_schema.ChunksSchema(chunks)

Chunks schema

Parameters:

chunks (dict or bool) – Chunks definition. If bool, whether validated object should be chunked. If dict, mapping of dimension name to chunk size. None may be used as a wildcard.

Raises:

SchemaError

__init__(chunks)

Methods

__init__(chunks)

from_json(obj)

to_json(**dumps_kws)

Generate a JSON string representation of this schema

validate(chunks, dims, shape)

Validate chunks

Attributes

json