rompy.swan.components.output.BaseLocation#
- pydantic model rompy.swan.components.output.BaseLocation[source]#
Base class for SWAN output locations.
{MODEL_TYPE} sname='sname'
This is the base class for all locations components. It is not meant to be used directly.
Note
The name of the set of output locations sname cannot be longer than 8 characters and must not match any SWAN special names such as BOTTGRID (define output over the bottom/current grid) or COMPGRID (define output over the computational grid).
Examples
In [1]: from rompy.swan.components.output import BaseLocation In [2]: loc = BaseLocation(sname="outsites") In [3]: print(loc.render()) LOCATIONS sname='outsites'
- Fields:
- Validators:
- field model_type: Literal['locations', 'LOCATIONS'] = 'locations'#
Model type discriminator
- field sname: str [Required]#
Name of the set of output locations defined by this command
- Constraints:
max_length = 8
- Validated by: