Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: converter ecmwf GRIB

converter ecmwf GRIB 9 months 1 week ago #44180

  • amar.zemmour
  • amar.zemmour's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
Hello,
I'm a new Telemac2d user.
After downloading ecmwf ERA5 data in GRIB format, I wanted to convert it to a .slf file using the converter.py ecmwf2srf command. The aim was to obtain an atmospheric pressure file and integrate it into the tidal simulation using the inverse barometer calculation of version 8P5.
However, I have a sticking point which is displayed in the attached image.
I've also been able to install pygrib on my Windows machine via miniconda, but the problem on telemac persists.
I would be very grateful if you could help me. I absolutely need to take this step for a study I'm currently carrying out.
Thanks in advance.

Translated with DeepL.com (free version)
Attachments:
The administrator has disabled public write access.

converter ecmwf GRIB 9 months 1 week ago #44184

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Probably pygrib is not seen by python in the telemac environment ...
Did you try pip install pygrib in the telemac command windows?
You could also download the ERA5 data in netcdf, this will avoid the pygrib requirement...
Hope this helps
Christophe
The administrator has disabled public write access.

converter ecmwf GRIB 9 months 1 week ago #44185

  • amar.zemmour
  • amar.zemmour's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
Thank you for your rapide response C.Coulet.

I've just tried to install pygrib via telemac command windows, but I get this error message.

Thanks again.
Attachments:
The administrator has disabled public write access.

converter ecmwf GRIB 9 months 1 week ago #44186

  • amar.zemmour
  • amar.zemmour's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
Thank you for your rapide response C.Coulet.

I've just tried to install pygrib via telemac command windows, but I get this error message.

I also tried to convert netcdf file to SLF but have another error!

Thanks again.
Attachments:
The administrator has disabled public write access.

converter ecmwf GRIB 9 months 1 week ago #44187

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
the name 'u10' is not in the netcdf file.
Check the name of the wind velocity along x in the netcdf...
Christophe
The administrator has disabled public write access.

converter ecmwf GRIB 9 months 1 week ago #44190

  • amar.zemmour
  • amar.zemmour's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
Hello,
Thank you for your help C.Coulet. I succeeded thanks to you to create slf file from netcdf file.
However, era5 data have long/lat projection. Is there a way (from BK or Telemac) to convert the slf file to Lambert93?
Have a nice day.
The administrator has disabled public write access.

converter ecmwf GRIB 9 months 5 days ago #44193

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
Spend some time to explore the python scripts available in Telemac scripts...
Converter.py generate_atm as an option --ll2utm...
Christophe
The administrator has disabled public write access.

converter ecmwf GRIB 9 months 5 days ago #44196

  • amar.zemmour
  • amar.zemmour's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
Hello,

More concretely I have this geo file (in L93) and ecmwf file which i transformed to slf (but still in Long/Lat coordinates).
I whish to create atm file (mean sea level pressure) and add it to tide simulation.

I tried with converter.py generate_atm but the result is not good (negative valules for atm pressure on my mesh) and then with the option --ll2utm option. This time i have error message (ValueError: invalid literal for int() with base 10: 'LL2UT').

Maybe I missed something! I am trying to resolve this since more than 1 week :)

I will really appreciate your help again.

Thakn you.
Attachments:
The administrator has disabled public write access.

converter ecmwf GRIB 9 months 5 days ago #44197

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Reading documentation and sources, trying to understand the method and option of Telemac system is often better and faster than trying to use it as a black box...
ll2utm and the reverse utm2ll allow conversion between coordinates in Long/Lat and Cartesian coordinates in UTM system...

By the way, L93 is not UTM then you necessarily have some extra step...
Probably a possible solution could be to convert the geometry file to Long/Lat
Look run_telfile alter which has more possibilities...

About the error message, this indicate a problem with the parameter you entered for the option (usually something like XXN, with N for north hemisphere)
Christophe
The administrator has disabled public write access.

converter ecmwf GRIB 9 months 5 days ago #44198

  • amar.zemmour
  • amar.zemmour's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
I have a result when I use run_telfile.py with EPSG:4326/EPSG:2154 but the coordinates seems to be inverted. This issus has been discussed for V8P5 (gitlab.pam-retd.fr/otm/telemac-mascaret/-/issues/927) but maybe remains non rectified with V8P5
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: pham

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