Welcome, Guest
Username: Password: Remember me

TOPIC: plotting dwater spatial results based on telemac hydrodynamics.

plotting dwater spatial results based on telemac hydrodynamics. 8 years 6 months ago #21440

  • j_floyd
  • j_floyd's Avatar
Hello,

We have been setting up and running a telemac3d hydrodynamics code that then feeds into dwater (delwaq) for water quality/ecology processes.

Does anyone know of code or script (matlab or python) or any other method to interpolate the dwater results back onto the telemac mesh for spatial plotting.

If not I will need to do this myself. Always better to add onto existing methods and share.

Many thanks
John
The administrator has disabled public write access.

plotting dwater spatial results based on telemac hydrodynamics. 8 years 6 months ago #21479

  • pprodano
  • pprodano's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 96
  • Thank you received: 55
Hello John,

I am not familiar with dwater, but I anticipate that its results are stored in a binary format that you want transposed onto a telemac mesh.

I have a script in pputils called transp.py that takes results files from one mesh and transposes it onto a another mesh. All you would have to do is change how the data is read (in my case a telemac result file, in your case dwater output).

I hope it helps,

Pat
The administrator has disabled public write access.

plotting dwater spatial results based on telemac hydrodynamics. 8 years 5 months ago #21865

  • j_floyd
  • j_floyd's Avatar
Thanks pat,

I also have a lot of grid tools in python (btw very similar to yours, going to/from postgis databases, shape, gmesh, fvcom formats etc) but was hoping that dwater spatial plots had already been coded, given that dwater seems to be readily used from telemac.

The lack of response suggests that this extension isnt used as often as I thought.

Further investigation suggests the easiest way is to fill a telemac grid result file using the dwater dido aggregation file that provides the mapping from the telemac grid to dwater grid. This is relatively easy.

The 3d or 2d plotting can then be readily done using matplotlib. Or once a serafin file has been created use paraview (with the new serafin reader plugin I recently posted).

Cheers
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.