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
DataArraySchemaobjectsrequire_all_keys (bool) – Whether require to all coordinates included in
coordsallow_extra_keys (bool) – Whether to allow coordinates not included in
coordsdict
- Raises:
- __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