Base types¶
RompyBaseModel is the base class of all rompy models. This page also lists the small types used across rompy.
Rompy types.
RompyBaseModel
pydantic-model
¶
RompyBaseModel(**data: Any)
Bases: BaseModel
Base class of all rompy models.
Unknown fields are rejected, and a misspelled field name gets a suggestion of
the closest field. The inputs a model was created with are kept
(dump_inputs_dict, dump_inputs_json), and models print as a hierarchical
summary of their fields.
check_for_typos
classmethod
¶
Suggest the closest field name for an unknown input key.
A field can be given by its name or, like in pydantic, by its alias.
Latitude
pydantic-model
¶
Longitude
pydantic-model
¶
Spectrum
pydantic-model
¶
Spectrum(**data: Any)
Bases: RompyBaseModel
A class to represent a wave spectrum.
Fields:
check_for_typos
classmethod
¶
Suggest the closest field name for an unknown input key.
A field can be given by its name or, like in pydantic, by its alias.
DatasetCoords
pydantic-model
¶
DatasetCoords(**data: Any)
Bases: RompyBaseModel
Coordinates representation.
Fields:
-
t(Optional[str]) -
x(Optional[str]) -
y(Optional[str]) -
z(Optional[str | None]) -
s(Optional[str | None])
check_for_typos
classmethod
¶
Suggest the closest field name for an unknown input key.
A field can be given by its name or, like in pydantic, by its alias.