Welcome, Guest
Username: Password: Remember me

TOPIC: Bug in converter.py (negative bl and tr values return an error)

Bug in converter.py (negative bl and tr values return an error) 2 years 5 months ago #40460

  • NZrigat
  • NZrigat's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 65
  • Thank you received: 16
Hi all,

When using the script converter.py to convert ECMWF data to Selafin format, I cannot choose negative values for either longitude or latitude, and the reason being that the scrip adds 360 degrees to negative values then tries to look for those limits (bl and tr) in the NetCDF, which most certainly will fail as the data file still contains negative coordinates and the script is looking for the plus 360 positive ones!

I tried to trace back where in the script the 360 is added without any luck. I would really appreciate if someone could either help fix this bug or tell me where to look.

Cheers,
Nayef
The administrator has disabled public write access.

Bug in converter.py (negative bl and tr values return an error) 2 years 5 months ago #40497

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hello Nayef,

I am not a script specialist. Perhaps the 360 shift which bothers you is to be changed in your case in $HOMETEL/scripts/python3/data_manip/formats/ecmwf.py

Hope this helps,

Chi-Tuan
The administrator has disabled public write access.

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