spatial.GeometryFMLineSpectrum
spatial.GeometryFMLineSpectrum(
self,
node_coordinates,
element_table,
codes=None,
projection='LONG/LAT',
dfsu_type=None,
element_ids=None,
node_ids=None,
validate=True,
frequencies=None,
directions=None,
reindex=False,
)
Flexible mesh line spectrum geometry.
Methods
| create_dummy_coordinates |
Create a line spectrum geometry with placeholder node coordinates. |
| get_space_axis |
Line spectrum has node as the geographic space dimension. |
| isel |
Select a subset of nodes. |
| reduce |
Return reduced geometry after spatial aggregation. |
create_dummy_coordinates
spatial.GeometryFMLineSpectrum.create_dummy_coordinates(
n_nodes,
frequencies,
directions,
)
Create a line spectrum geometry with placeholder node coordinates.
Parameters
| n_nodes |
int |
Number of nodes on the line |
required |
| frequencies |
np.array |
Frequency axis |
required |
| directions |
np.array |
Directional axis |
required |
Returns
|
GeometryFMLineSpectrum |
Geometry with nodes placed on a straight line |
get_space_axis
spatial.GeometryFMLineSpectrum.get_space_axis()
Line spectrum has node as the geographic space dimension.
isel
spatial.GeometryFMLineSpectrum.isel(idx, axis='node')
Select a subset of nodes.
Parameters
| idx |
list[int] |
Node indices to select |
required |
| axis |
str |
Not used, nodes is the only spatial axis |
'node' |
Returns
|
GeometryFMPointSpectrum or GeometryFMLineSpectrum |
Geometry for the selected nodes |
reduce
spatial.GeometryFMLineSpectrum.reduce(axis)
Return reduced geometry after spatial aggregation.