Re: [gdal-dev] output of geotiff from numPy array

2012-07-17 Thread Travis Kirstine
It appears that you are creating a 8-bit unsigned integer as the output (GDT_Byte). Try switch it to GDT_Float32 http://www.gdal.org/gdal_8h.html#a22e22ce0a55036a96f652765793fb7a4 Regards On 16 July 2012 17:23, William Hudspeth wrote: > Hello, > > I am trying to write a two-dimensional numPy f

[gdal-dev] output of geotiff from numPy array

2012-07-17 Thread William Hudspeth
Hello, I am trying to write a two-dimensional numPy float array to a Geotiff using the Python GDAL bindings. I use code similar to format="GTiff" dst_driver=GetDriverByName(format) srs=osr.SpatialReference() srs.ImportFromEPSG(4326) dust_abs=dst_driver.Create(dst_filename,pream_array_columns,pre