[gdal-dev] nodata value assigned via script

2008-10-17 Thread Roger André
Hi, I'm getting raster data written by different people who can't seem to use the same nodata values. I'm reading the data files via the Python API to GDAL, and doing various calculations on the data values, then writing new rasters with the results of my calculations. Is there a nodata value

Re: [gdal-dev] nodata value assigned via script

2008-10-17 Thread Matt Wilkie
Wow, a python question I actually know the answer too! :) From python you can use band.SetNoDataValue( float(null_value) ). For this in context see this tiny utility: http://maphew.googlecode.com/svn/trunk/gis/gdal_extras/bin/gdalsetnull.py And the doc on this function: