VariableSchema.validate_variable#

VariableSchema.validate_variable(data_array)[source]#

Validate variable structure.

Parameters:
data_arrayxr.DataArray

The data array to validate

Returns:
list of str

Validation errors (empty if valid)

Examples

>>> errors = schema.validate_variable(data_array)
>>> assert errors == [], f"Validation failed: {errors}"