Editing Specific Raster Cells Via CSV Values using GDAL?

by arnpry   Last Updated October 05, 2018 18:22 PM

I have a raster grid that I would like to modify. I am trying to manually edit specific raster cells' values via vales in a CSV file.

My CSV contains three columns:

VAL,LAT,LON
91.0,31.04250,-86.31167
91.2,30.21889,-96.37417
75.9,41.00928,-74.73628
86.1,36.61056,-83.73722
89.0,34.28028,-87.60028
64.9,43.77714,-71.75598
68.0,44.42010,-72.01930
37.0,45.60444,-103.54639
68.0,39.16052,-89.67419

Task Example

In the above example, I would try to change the middle cell value from 65 to 67.

I would like to use gdal to accomplish this task.

Tags : raster gdal csv


Related Questions


gdal_translate defaults?

Updated August 23, 2018 19:22 PM

QGis Save Raster as Rendered Image

Updated April 17, 2015 22:09 PM


Mosaic Imagery using GDAL Edited

Updated November 29, 2017 20:22 PM