spatial.GeometryFMVerticalColumn
spatial.GeometryFMVerticalColumn(self,
*,
node_coordinates,
element_table,=None,
codes='LONG/LAT',
projection=DfsuFileType.Dfsu3DSigma,
dfsu_type=None,
element_ids=None,
node_ids=1,
n_layers=None,
n_sigma=True,
validate=False,
reindex )
A 3d geometry with consisting of a single vertical column.
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). |
to_2d_geometry | extract 2d geometry from 3d geometry. |
get_layer_elements
spatial.GeometryFMVerticalColumn.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 |
to_2d_geometry
spatial.GeometryFMVerticalColumn.to_2d_geometry()
extract 2d geometry from 3d geometry.
Returns
Name | Type | Description |
---|---|---|
UnstructuredGeometry | 2d geometry (bottom nodes) |