GIS4WRF / gis4wrf

QGIS toolkit 🧰 for pre- and post-processing 🔨, visualizing 🔍, and running simulations 💻 in the Weather Research and Forecasting (WRF) model 🌀
https://gis4wrf.github.io
MIT License
159 stars 36 forks source link

Fix lat/lon axis order when using gdal 3 #158

Closed letmaik closed 4 years ago

letmaik commented 4 years ago

Fixes #152.

When using GDAL 3, then the lat/lon axis order is flipped in some cases, to be more standards compliant. This PR restores the traditional order if GDAL 3 is used so that the code works both in old and new GDAL versions.

I added two new tests of which test_projection_origin reproduces the issue.