Re: [gdal-dev] saving numpy array as ascii raster

2009-03-05 Thread Bryan Keith
> Hi, > Thanks for your quick reply. > When I edit my code function to be: > def WriteRaster (dst_filename, raster): > > format = "AAIGrid" > driver = gdal.GetDriverByName( format ) > dst_ds = driver.Create( dst_filename, 71, 73,\ > 1,gdal.GDT_Float32,options=[

Re: [gdal-dev] saving numpy array as ascii raster

2009-03-05 Thread Oz Nahum
Hi, Thanks for your quick reply. When I edit my code function to be: def WriteRaster (dst_filename, raster): format = "AAIGrid" driver = gdal.GetDriverByName( format ) dst_ds = driver.Create( dst_filename, 71, 73,\ 1,gdal.GDT_Float32,options=["COMPRESS=PACKBIT

Re: [gdal-dev] saving numpy array as ascii raster

2009-03-05 Thread Bryan Keith
> Hello Again, > def WriteRaster (dst_filename, raster): > > format = "GTiff" Oz, You're creating a geotiff. Try: format = "AAIGrid" > driver = gdal.GetDriverByName( format ) > dst_ds = driver.Create( dst_filename, 71, 73,\ >1,gdal.GDT_Float32,options=["

[gdal-dev] saving numpy array as ascii raster

2009-03-05 Thread Oz Nahum
Hello Again, I have been googling around and reading how to save my numpy arrays to rasters. So far I have not found a satisfying answer. The closest thing to what I'd would like to do is found here: * http://n2.nabble.com/basic-raster-math-td2033308.html#a2033316* When I try do to the following: