New answers tagged gdalwarp
2
You have to specifiy the path to gdalwarp (in the example below I took: "C:\python32\python.exe", but you have to change it to your intallation path) and change your call function like that:
call(['C:\Program Files\GDAL\gdalwarp.exe', '-t_srs ' + crs, '-dstnodata 0', '-q', '-cutline ' + mask, '-dstalpha', '-of GTIFF', input, output]).
or:
...
0
Solved by simply checking "create output aplha band".
The reason of the message is because gdalwarp uses the byte type by default, so only 8bits are allowed for every pixel (values from 0 to 255).
you can use the -of Int16 option to extend the ranges, but it will increase the size of the raster and shift the colors (I suppose it's because of the resampling). ...
Top 50 recent answers are included