Welcome, Guest
Username: Password: Remember me

TOPIC: How to read a temporal-spatial varying wind and air pressure data

How to read a temporal-spatial varying wind and air pressure data 11 months 1 day ago #44706

  • e.roome
  • e.roome's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 25
  • Thank you received: 3
Hi,

I am aware of Telemac's inbuilt PTM, however openTracker has many useful features. Have you had success with the openDrift Telemac Selafin reader?

cheers
Ed
The administrator has disabled public write access.

How to read a temporal-spatial varying wind and air pressure data 11 months 1 day ago #44708

  • c.coulet
  • c.coulet's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 3772
  • Thank you received: 1044
Didn't tried as I never use openDrift but what I mean is this is probably not a problem with the selafin reader itself but maybe more in the way it is used in openDrift...
Christophe
The administrator has disabled public write access.

How to read a temporal-spatial varying wind and air pressure data 11 months 19 hours ago #44718

  • tomsail
  • tomsail's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 45
  • Thank you received: 17
Hi Ed,

I don't think I have mentioned it before in this thread:
Please have a look at the Selafin Xarray package pypi.org/project/xarray-selafin/

you might be able to workaround your problem by loading your Selafin through xarray.

Then just use the traditional xarray functions like docs.xarray.dev/en/latest/generated/xarray.Dataset.rename.html
to make your data compliant with the openDrift format

Cheers
The administrator has disabled public write access.

How to read a temporal-spatial varying wind and air pressure data 8 months 4 weeks ago #45135

  • e.roome
  • e.roome's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 25
  • Thank you received: 3
Hi Tom,

Hope you are well..


I have been having some troubles with resolving accurate wind-driven currents in Telemac3D. As I know you after use Telemac with atmospheric forcing, do you have any configuration recommendations (i.e. solvers, etc).

cheers,
Ed
The administrator has disabled public write access.

How to read a temporal-spatial varying wind and air pressure data 3 weeks 20 hours ago #46423

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 161
  • Thank you received: 7
Dear Sir,

You mentioned that the binary file (SLF for wind and Patm) variables should be named as follows:

WIND VELOCITY U
WIND VELOCITY V
SURFACE PRESSURE
AIR TEMPERATURE

However, in the nomvar_telemac2d.f file, I see the following definitions:

TEXTE (16) = 'WIND ALONG X M/S '
TEXTE (17) = 'WIND ALONG Y M/S '
TEXTE (18) = 'AIR PRESSURE PASCAL '

Does this mean that the subroutine hasn't been updated yet?

Also, could you provide guidance on how to interpolate u10, v10, and patm at the time AT, considering that the timestep in the binary file (10 minutes) and the timestep in the cas file (10 seconds) do not match?

Thank you for your help!

Best regards,
Mourad
The administrator has disabled public write access.

How to read a temporal-spatial varying wind and air pressure data 3 weeks 18 hours ago #46424

  • tomsail
  • tomsail's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 45
  • Thank you received: 17
Hi Mourad,

Actually

WIND VELOCITY U
WIND VELOCITY V
SURFACE PRESSURE
AIR TEMPERATURE

is the old way of naming meteo variables (prior to v8p5 I think)
'WIND ALONG X    M/S             '
'WIND ALONG Y    M/S             '
'AIR PRESSURE    PASCAL          '

is the new way of naming them

and
WINDX/WINDY/PATM
is their short spelling.

For the interpolation, just properly define the time stamps in your wind file, TELEMAC will do rest for the interpolation if the time step of your simulation is between your wind file time steps.

I have a few global examples with wind input files here:
drive.google.com/drive/folders/18nHcPTj4...dk6h_?usp=drive_link

Feel free to check it.

Hope it helps
The administrator has disabled public write access.

How to read a temporal-spatial varying wind and air pressure data 2 weeks 6 days ago #46425

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 161
  • Thank you received: 7
Hi Tosmail.
Really! If everything is well defined in the selafin file and whatever the timestep in it greater (or not)than that from cas file telemac2d does
interpolate meteorological variables by itself whitout telling him how.?
The administrator has disabled public write access.
The following user(s) said Thank You: ah_sl

How to read a temporal-spatial varying wind and air pressure data 2 weeks 6 days ago #46426

  • ah_sl
  • ah_sl's Avatar
  • NOW ONLINE
  • Fresh Boarder
  • Posts: 10
Dear Mourad

I've faced such a similar problem, The quickest solution is to manually impose the data you have on the .slf output from the meteo converter script; and the Telemac meteo subroutine shall know how to interpolate accordingly.

I hope I've understood you correctly and this may've helped in any way.

I'm free to share the my case via this email: This email address is being protected from spambots. You need JavaScript enabled to view it.

Yours sincerely,
Ahmed
The administrator has disabled public write access.

How to read a temporal-spatial varying wind and air pressure data 2 weeks 19 hours ago #46453

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 161
  • Thank you received: 7
Dear Tosmail,
I did it as you suggested, but the result is that TELEMAC2D does not interpolate between two timestamps if the timestep in the CAS file differs from the timestep used in the binary file. We need to tell TELEMAC2D how to find T1 and T2 that bracket AT and interpolate the wind components and atmospheric pressure onto the mesh
Regards
Mourad
The administrator has disabled public write access.

How to read a temporal-spatial varying wind and air pressure data 2 weeks 18 hours ago #46454

  • c.coulet
  • c.coulet's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 3772
  • Thank you received: 1044
Hi

Except maybe if you use an old version, I confirm the post of Tomsail.
There is an interpolation in time done in the binary file read.
Christophe
The administrator has disabled public write access.
Moderators: pham

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