rompy.swan.components.output.POINTS#

pydantic model rompy.swan.components.output.POINTS[source]#

Isolated output locations.

POINTS 'sname' < [xp] [yp] >

With this optional command the user defines a set of individual output point locations.

Note

All coordinates and distances should be given in m when Cartesian coordinates are used or degrees when Spherical coordinates are used (see command COORD).

Examples

In [1]: from rompy.swan.components.output import POINTS

In [2]: loc = POINTS(sname="outpts", xp=[172.3, 172.4], yp=[-39, -39])

In [3]: print(loc.render())
POINTS sname='outpts' &
    xp=172.3 yp=-39.0 &
    xp=172.4 yp=-39.0
Fields:
Validators:
field model_type: Literal['points', 'POINTS'] = 'points'#

Model type discriminator

Validated by:
field xp: list[float] | None [Required]#

problem coordinates of the points in the x-direction

Constraints:
  • min_length = 1

Validated by:
field yp: list[float] | None [Required]#

problem coordinates of the points in the y-direction

Constraints:
  • min_length = 1

Validated by:
cmd() str[source]#

Command file string for this component.

validator ensure_equal_size  »  all fields[source]#