rompy.swan.subcomponents.base.IJ#

pydantic model rompy.swan.subcomponents.base.IJ[source]#

Points in grid indices coordinates.

< [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

In [235]: from rompy.swan.subcomponents.base import IJ

In [236]: points = IJ(i=[0, 0, 5], j=[0, 19, 19])

In [237]: print(points.render())

i=0 j=0
i=0 j=19
i=5 j=19
Fields:
Validators:
field i: list[int] [Required]#

i-index values

Validated by:
field j: list[int] [Required]#

j-index values

Validated by:
field model_type: Literal['ij', 'IJ'] = 'ij'#

Model type discriminator

Validated by:
cmd() str[source]#
validator validate_size  »  all fields[source]#
property size#