Welcome, Guest
Username: Password: Remember me

TOPIC: Converting Selafin files to NetCDF format

Converting Selafin files to NetCDF format 7 years 7 months ago #25783

  • huyquangtran
  • huyquangtran's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 271
  • Thank you received: 23
Thanks Ciao,

I have installed netCdf Python on my pc, but I still get an error with "from parsers.parserSELAFIN import SELAFIN"..

May anyone know how to solve it?

Best,

Huy
The administrator has disabled public write access.

Converting Selafin files to NetCDF format 6 years 7 months ago #29466

  • ekechijioke
  • ekechijioke's Avatar
Hello Leo,

Please how do I use the python Selafinreader?

Regards,
Chijioke
The administrator has disabled public write access.

Converting Selafin files to NetCDF format 6 years 7 months ago #29476

  • Lufia
  • Lufia's Avatar
Hi,

the following code is a little bit out of date but with some small changes it should work

www.opentelemac.org/index.php/kunena/oth...lotlib-pytel-scripts

IKLE is the "mesh" it is an array that includes all elements
[[element1_node1,element1_node2,element1_node3],[..,..,..],..]

you can use matplotlib to interpolate the nodeal data

www.opentelemac.org/index.php/assistance...-on-mesh-with-python
The administrator has disabled public write access.

Converting Selafin files to NetCDF format 6 years 7 months ago #29683

  • ekechijioke
  • ekechijioke's Avatar
Hello Alex,

I am trying to use your code. Please what do you mean by "gridx, gridy"? I can see I am suppose to assign my values to it but it is not clear how to determine the regular grid size.

Thank you.

Regards,
Chijioke.
The administrator has disabled public write access.

Converting Selafin files to NetCDF format 5 years 9 months ago #32700

  • smk.svks
  • smk.svks's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 93
  • Thank you received: 1
Hi,

Does anyone have the updated code for .slf to .nc?


Thanks,
Sathish
The administrator has disabled public write access.

Converting Selafin files to NetCDF format 5 years 1 month ago #34729

  • greeshmaranjith1
  • greeshmaranjith1's Avatar
hi I have some wind data in .netcdf format and would like to convert to SELAFIN format for the simulation input in telemac2d. Can someone help me how to do it or is there any code for it?
The administrator has disabled public write access.

Converting Selafin files to NetCDF format 5 years 1 month ago #34750

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
Look at the python scripts in the telemac distribution (particularly those who deals with ECMWF)
Regards
Christophe
The administrator has disabled public write access.

Converting Selafin files to NetCDF format 4 years 10 months ago #35227

  • Jose_filho
  • Jose_filho's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 42
  • Thank you received: 2
Hello Everyone,

Has anyone already converted .slf3D result file to NETCDF Unstructured format? I have seen some topics here related to 2D structured format, but nothing about 3D conversion...
Do you know if it's possible? Which would be the most straight way to do that?

I am trying to do that to use my Telemac results as input of a particle tracking model which accepts only netcdf...

Thanks in advance,

Cordially


Jose
The administrator has disabled public write access.

Converting Selafin files to NetCDF format 3 years 5 months ago #38566

  • smk.svks
  • smk.svks's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 93
  • Thank you received: 1
Hi Ciao,
I am trying to use your script to convert the slf file to nc file format. I was trying with the telemac example file. I am sure how to get regular grid.r2s file to run the script.

can you please help me with that?
The administrator has disabled public write access.

Converting Selafin files to NetCDF format 3 years 5 months ago #38571

  • Jose_filho
  • Jose_filho's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 42
  • Thank you received: 2
Are you working to convert for structured or unstructured ncdf CF1.8 conventions? I wrote one based on TelemacFile method, but it interpolate from unstructured on structured grid...do you have it compiled? Let me know so I can share my script.

regards,
The administrator has disabled public write access.
Moderators: borisb

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