From 7273f77caf73c1eac26561b054bfe3d4fdcd13e4 Mon Sep 17 00:00:00 2001 From: Luc DURON Date: Fri, 23 Feb 2024 09:53:11 +0100 Subject: [PATCH] Replace gdal python bindings (new style compulsory since GDAL 3.2.1) https://github.com/OSGeo/gdal/blob/v3.2.1/gdal/NEWS --- cli/slf_to_raster.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli/slf_to_raster.py b/cli/slf_to_raster.py index e319253..97d5bc9 100644 --- a/cli/slf_to_raster.py +++ b/cli/slf_to_raster.py @@ -3,10 +3,9 @@ Convert all variables of a single frame (from a Serafin file) to a tif raster (one band per variable) Beware: Output file is overwritten if already present """ -import gdal +from osgeo import gdal, osr import matplotlib.tri as mtri import numpy as np -import osr import sys from pyteltools.geom.transformation import Transformation