xarray_schema.CoordsSchema

class xarray_schema.CoordsSchema(coords, require_all_keys=True, allow_extra_keys=True)

Schema container for Coordinates

Parameters:
  • coords (dict) – Dict of coordinate keys and DataArraySchema objects

  • require_all_keys (bool) – Whether require to all coordinates included in coords

  • allow_extra_keys (bool) – Whether to allow coordinates not included in coords dict

Raises:

SchemaError

__init__(coords, require_all_keys=True, allow_extra_keys=True)

Methods

__init__(coords[, require_all_keys, ...])

from_json(obj)

to_json(**dumps_kws)

Generate a JSON string representation of this schema

validate(coords)

Validate coords

Attributes

json