API#

Core Model Classes#

Coordinate

Base class for coordinate definitions.

DataArray

Base class for DataArray definitions.

Dataset

Base class for Dataset definitions.

DataTree

Base class for DataTree definitions.

Type Annotation Helpers#

Attr()

Factory for Attribute field annotations.

Data()

Factory for Data Variable field annotations with enhanced validation.

Dim(name)

A class for representing a dimension of an Xarray data structure.

Name

Runtime representation of an annotated type.

Configuration and Settings#

XrdanticSettings

Global settings for xrdantic behavior.

ValidationContext(**temporary_settings)

Context manager for temporary validation settings.

get_settings()

Get the global xrdantic settings instance.

update_settings(**kwargs)

Update global settings.

reset_settings()

Reset settings to default values.