Monday, 26 October 2015

gdal - Convert an ASCII grid file to GeoTIFF using Python?


I have a ASCII grid raster format file. For example:


ncols 480
nrows 450
xllcorner 378923
yllcorner 4072345

cellsize 30
nodata_value -32768
43 2 45 7 3 56 2 5 23 65 34 6 32 54 57 34 2 2 54 6
35 45 65 34 2 6 78 4 2 6 89 3 2 7 45 23 5 8 4 1 62 ...

How can I convert it to TIFF or any other raster using Python?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...