intro story Coast / Estuary

Coast / Estuary

Coastal systems are among the most dynamic physical systems on earth and are subject to a large variety of forces. The morphodynamic changes occurring to coastlines worldwide are of great interest and importance. These changes occur as a result of the erosion of sediments, its subsequent transport as bed load or suspended load, and eventual deposition. 
 
Estuaries are partly enclosed water bodies that have an open connection to the coast. Estuaries generally have one or more branching channels, intertidal mudflats and/or salt marshes. Intertidal areas are of high ecological importance and trap sediments (sands, silts, clays and organic matter).
Within the Delft3D modelling package a large variation of coastal and estuarine physical and chemical processes can be simulated. These include waves, tidal propagation, wind- or wave-induced water level setup, flow induced by salinity or temperature gradients, sand and mud transport, water quality and changing bathymetry (morphology). Delft3D can also be used operationally e.g. storm, surge and algal bloom forecasting. 
 
On this discussion page you can post questions, research discussions or just share your experience about modelling coastal and/or estuarine systems with Delft3D FM. 
 

** PLEASE TAG YOUR POST! **

 

 

Sub groups
D-Flow Flexible Mesh
DELWAQ
Cohesive sediments & muddy systems

 

 

Message Boards

RE: reading output files without matlab

VY
veli yumruktepe, modified 6 Years ago.

reading output files without matlab

Padawan Posts: 42 Join Date: 2/7/12 Recent Posts
Dear all,

I would like to use my delft3d-flow output files, trim*.dat, with integration to other programs I use such as fortran and idl. Therefore I do not want to use matlab or quickplot. Is there a reference where I can learn how to know the dimensions and variables of the outputs created.


Thanks
Veli
GD
Gerben de Boer, modified 6 Years ago.

RE: reading output files without matlab

Youngling Posts: 10 Join Date: 4/13/11 Recent Posts
Delft3D produces NEFIS files, a binary scientific data format like netCDF and HDF.

Native NEFIS libraries exist in C and Matlab. These libraries are part of the Delft3D code.

NEFIS has inquire function to find dimensions and variables.

* We have a free matlab function called vs_trim2nc in OpenEarthTools to transform a NEFIS trim* or trih* file to netCDF for further use, using the native NEFIS matlab libraries.

* There is also a fortran conversion program executable available at request from Delft3D support, built on the native NEFIS C libraries.

* In OpenEarthTools someone started to make a python wrapper for the native NEFIS C libraries.
MB
Matt Brennan, modified 6 Years ago.

RE: reading output files without matlab

Youngling Posts: 3 Join Date: 2/11/13 Recent Posts
"Native NEFIS libraries exist in C and Matlab. These libraries are part of the Delft3D code."

How can these libraries be accessed? Is there a .dll that can be passed on to a colleague who doesn't have Delft3D installed but would like to access Delft3D model output from NEFIS files?
Bert Jagers, modified 6 Years ago.

RE: reading output files without matlab

Jedi Knight Posts: 201 Join Date: 12/22/10 Recent Posts
Hi Matt,

Adri was referring to the Delft3D open source repository.
The source code of the NEFIS library is included in the source code tree under
src\utils_lgpl\nefis folder
The solution file contains projects for building NEFIS both as static and dynamic libraries.
The NEFIS API is documented in the NEFIS_User_Manual.pdf that comes with the Delft3D installation.

Bert
Adri Mourits, modified 6 Years ago.

RE: reading output files without matlab

Yoda Posts: 1224 Join Date: 1/3/11 Recent Posts
Hi Veli,

The Delft3D setup contains two small tools that can be used on nefis output files (Menu -> Utilities):
  • VSI is a tool to inspect a nefis file
  • VS (ViewSel) is a script/command line based tool that can be used to extract data from a nefis file. Also works in batch mode.


Regards,

Adri
XW
Xu Wei, modified 9 Months ago.

RE: reading output files without matlab

Youngling Posts: 1 Join Date: 12/25/17 Recent Posts

hi, have you succeed in useing fortran and idl to turn delft3d-flow output files into netcdf or other file formats? 

ST
Sarah Margaret Trimble, modified 8 Months ago.

RE: reading output files without matlab

Youngling Posts: 3 Join Date: 5/24/18 Recent Posts

Hi Xu, I also need to convert my trim & trih files to netcdf -- and I may have found the answer to our problems in the Flow user manual. However, I have not yet tried this solution so I cannot guarantee it works.

Flow user manual (pg. 146: first attached image) indicates there is a keyword in the MDF file that can be used to switch output file type to netcdf, with more detailed instructions in section A.1.4 (pg. 408: second attached image). I will update this thread if I'm successful.

 

- Sarah T