spatial.GeometryFMVerticalProfile

spatial.GeometryFMVerticalProfile(
    self,
    node_coordinates,
    element_table,
    codes=None,
    projection='LONG/LAT',
    dfsu_type=DfsuFileType.Dfsu3DSigma,
    element_ids=None,
    node_ids=None,
    n_layers=1,
    n_sigma=None,
    validate=True,
    reindex=False,
)

Attributes

Name Description
bottom_elements List of 3d element ids of bottom layer.
boundary_codes Unique list of boundary codes.
codes Node codes of all nodes (0=water, 1=land, 2…=open boundaries).
e2_e3_table The 2d-to-3d element connectivity table for a 3d object.
elem2d_ids The associated 2d element id for each 3d element.
element_coordinates Center coordinates of each element.
is_geo Are coordinates geographical (LONG/LAT)?
is_local_coordinates Are coordinates relative (NON-UTM)?
layer_ids The layer number (0=bottom, 1, 2, …) for each 3d element.
max_nodes_per_element The maximum number of nodes for an element.
n_elements Number of 3d elements.
n_layers Maximum number of layers.
n_layers_per_column List of number of layers for each column.
n_sigma_layers Number of sigma layers.
n_z_layers Maximum number of z-layers.
projection The projection.
projection_string The projection string.
top_elements List of 3d element ids of surface layer.

Methods

Name Description
get_layer_elements 3d element ids for one (or more) specific layer(s).
get_nearest_relative_distance For a point near a transect, find the nearest relative distance
to_2d_geometry extract 2d geometry from 3d geometry.

get_layer_elements

spatial.GeometryFMVerticalProfile.get_layer_elements(layers)

3d element ids for one (or more) specific layer(s).

Parameters

Name Type Description Default
layers int or list(int) layer between 0 (bottom) and n_layers-1 (top) (can also be negative counting from -1 at the top layer) required

Returns

Name Type Description
np.array(int) element ids

get_nearest_relative_distance

spatial.GeometryFMVerticalProfile.get_nearest_relative_distance(coords)

For a point near a transect, find the nearest relative distance for showing position on transect plot.

Parameters

Name Type Description Default
coords [float, float] x,y-coordinate of point required

Returns

Name Type Description
float relative distance in meters from start of transect

to_2d_geometry

spatial.GeometryFMVerticalProfile.to_2d_geometry()

extract 2d geometry from 3d geometry.

Returns

Name Type Description
UnstructuredGeometry 2d geometry (bottom nodes)