![extracting output from mike 21 in ascii format extracting output from mike 21 in ascii format](https://www.eye4software.com/hydromagic/documentation/manual/post-processing/export-to-ascii-file/images/export_matrix_ascii.png)
N_nearest ( int, optional) – return this many (horizontally) nearest points for Layer ( int, optional) – Search in a specific layer only (3D files only)Įither z or layer (0-based) can be provided for a 3D file If not provided for a 3d file, the surface element is returned
![extracting output from mike 21 in ascii format extracting output from mike 21 in ascii format](https://usermanual.wiki/Pdf/manual.980920320-User-Guide-Page-1.png)
Z ( float or array ( float ), optional) – Z coordinate(s) (vertical coordinate, positive upwards) Y ( float or array ( float )) – Y coordinate(s) (northing or latitude)
![extracting output from mike 21 in ascii format extracting output from mike 21 in ascii format](https://image.slidesharecdn.com/floodmodellingisg-rc2014tutorialsamaljitver2-161123071802/95/training-hydraulic-flood-modelling-5-638.jpg)
X ( float or array ( float )) – X coordinate(s) (easting or longitude) extract_track ( 'track_file.csv', items = 0 ) find_nearest_elements ( x, y = None, z = None, layer = None, n_nearest = 1, return_distances = False ) ¶įind index of nearest elements (optionally for a list) Parameters N_nearest ( int, optional) – number of points for spatial interpolation (inverse_distance), default=4 Time_steps ( str, int or list, optional) – Extract only selected time_steps To a new 2d dfsu file with a surface elevation item. Which can be used for further extraction or saved to file Return typeįile end time extract_surface_elevation_from_3d ( filename = None, time_steps = None, n_nearest = 4 ) ¶Įxtract surface elevation from a 3d dfsu file (based on zn) Or ‘all’ can be selected, by default ‘all’ Node_layers ( str, optional) – for 3d files either ‘top’, ‘bottom’ layer nodes The associated 2d element id for each 3d element property element_coordinates ¶Ĭenter coordinates of each element property element_table ¶Įlement to node connectivity elements_to_geometry ( elements, node_layers = 'all' ) ¶Įxport elements to new flexible file geometry ParametersĮlements ( list ( int )) – list of element ids The 2d-to-3d element connectivity table for a 3d object property elem2d_ids ¶ True for points inside, False otherwise Return type Points ( array-like n-by-2) – x,y-coordinates of n points to be tested Returns Test if a list of points are contained by mesh Parameters Node codes of all nodes (0=water, 1=land, 2…=open boundaries) contains ( points ) ¶ plot ( ds, ec_dyn ) Returnsįinalize write for a dfsu file opened with write(…,keep_open=True) property codes ¶ calc_element_coordinates ( elements = elem_ids, zn = ds ) > plt. read ( items =, elements = elem_ids ) > ec_dyn = dfs. find_nearest_profile_elements ( x0, y0 ) > ds = dfs. Zn ( np.array ( float ), optional) – only the z-coodinates of the nodes Otherwise use the property element_coordinates instead ParametersĮlements ( np.array ( int ), optional) – element ids of selected elements Only necessary for dynamic vertical coordinates, Np.ndarray calc_element_coordinates ( elements = None, zn = None ) ¶Ĭalculates the coordinates of the center of each element. Significant wave height values Return type Tail ( bool, optional) – Should a parametric spectral tail be added in the computations? by default True Spectrum ( np.ndarray) – frequency or direction-frequency spectrum Lists of closed polylines defining domain outline calc_Hm0_from_spectrum ( spectrum, tail = True ) ¶Ĭalculate significant wave height (Hm0) from spectrum Parameters
![extracting output from mike 21 in ascii format extracting output from mike 21 in ascii format](https://c-motion.com/v3dwiki/images/a/a5/DataTreeExportASCII.gif)
Unique list of boundary codes property boundary_polylines ¶ List of 3d element ids of bottom layer property boundary_codes ¶ Dfsu ( filename, dtype= ) ¶ append ( data ) ¶Īppend to a dfsu file opened with write(…,keep_open=True) Parametersĭata ( list ) – property bottom_elements ¶ _nearest_profile_elementsįind 3d elements of profile nearest to (x,y) coordinatesĭfsu API ¶ class mikeio. The associated 2d element id for each 3d elementĪpart from the basic dfsu functionality, layered dfsu have the below additional methods:ģd element ids for one (or more) specific layer(s) The 2d-to-3d element connectivity table for a 3d object There are three type of layered dfsu files: 3D dfsu, 2d vertical slices and 1d vertical profiles.Īpart from the basic dfsu functionality, layered dfsu have the below additional properties: See the Dfsu Read Example notebook for basic dfsu functionality. See the Dfsu API specification below for a detailed description. Write the header of a new dfsu file (for writing huge files)įinalize write for a dfsu file opened with write(.,keep_open=True) Type is either mesh or Dfsu2D (2 horizontal dimensions)Īpart from the common flexible file functionality, the Dfsu has the following methods: The Dfsu class is initialized with a mesh or a dfsu file.Īpart from the common flexible file functionality, the Dfsu has the following properties: