Commit 04df665d85b71ce941ac97d1ca99baaf2b9ebd7e

Authored by Tristan Klempka (Stagiaire CNES)
1 parent 6caa0a88

ENH: switch to cubic interpolation for sentinel resampling (Closes #9)

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
python/s2snow/snow_detector.py
... ... @@ -336,12 +336,12 @@ class snow_detector :
336 336 #Extract green bands and resample to 20 meters
337 337 #FIXME Use multi resolution pyramid application or new resampling filter fontribute by J. Michel hear
338 338 call_subprocess(["gdal_translate", "-a_nodata", str(self.nodata),"-ot","Int16","-b",str(nGreen),s2_r1_img_path[0],greenBand_path])
339   - call_subprocess(["gdalwarp","-r","cubicspline","-tr","20","-20",greenBand_path,greenBand_resample_path])
  339 + call_subprocess(["gdalwarp","-r","cubic","-tr","20","-20",greenBand_path,greenBand_resample_path])
340 340  
341 341 #Extract red bands and sample to 20 meters
342 342 #FIXME Use multi resolution pyramid application or new resampling filter fontribute by J. Michel hear
343 343 call_subprocess(["gdal_translate", "-a_nodata", str(self.nodata),"-ot","Int16","-b",str(nRed),s2_r1_img_path[0],redBand_path])
344   - call_subprocess(["gdalwarp","-r","cubicspline","-tr","20","-20",redBand_path,redBand_resample_path])
  344 + call_subprocess(["gdalwarp","-r","cubic","-tr","20","-20",redBand_path,redBand_resample_path])
345 345  
346 346 #Extract SWIR
347 347 call_subprocess(["gdal_translate", "-a_nodata", str(self.nodata),"-ot","Int16","-b",str(nSWIR),s2_r2_img_path[0],swirBand_path])
... ...