Base
Sub-commands to support the output components
XY
Bases: BaseSubComponent
Points in problem coordinates.
.. code-block:: text
< [x] [y] >
Note
Coordinates should be given in m when Cartesian coordinates are used or degrees
when Spherical coordinates are used (see command COORD).
Examples
.. ipython:: python :okwarning:
from rompy_swan.subcomponents.base import XY
points = XY(
x=[172, 172, 172, 172.5, 173],
y=[-41, -40.5, -40, -40, -40],
fmt="0.2f",
)
print(points.render())
Source code in rompy_swan/subcomponents/base.py
Attributes
model_type
class-attribute
instance-attribute
x
class-attribute
instance-attribute
y
class-attribute
instance-attribute
fmt
class-attribute
instance-attribute
Functions
validate_size
validate_size() -> XY
IJ
Bases: BaseSubComponent
Points in grid indices coordinates.
.. code-block:: text
< [x] [y] >
Note
Coordinates should be given in m when Cartesian coordinates are used or degrees
when Spherical coordinates are used (see command COORD).
Examples
.. ipython:: python :okwarning:
from rompy_swan.subcomponents.base import IJ
points = IJ(i=[0, 0, 5], j=[0, 19, 19])
print(points.render())
Source code in rompy_swan/subcomponents/base.py
Attributes
model_type
class-attribute
instance-attribute
Functions
validate_size
validate_size() -> IJ