Re: [gdal-dev] empty Gtiff from Python

2012-01-31 Thread questions anon
Was this problem solved? I have tried both dst_ds.GetRasterBand(1).WriteArray(myarray) gdal.Band.WriteArray(dst_ds.GetRasterBand(1), myarray) but my tiff still results in zeros. Any feedback will be greatly appreciated. On Fri, Oct 28, 2011 at 7:23 PM, Tom van der Putte wrote: > Hi List, > > I'm

Re: RE: [gdal-dev] empty Gtiff from Python

2011-10-28 Thread Tom van der Putte
I reinstalled everything, and then still something went wrong. Here I have to tell you a little more on my goal: I was trying to convert a slice of opendap data into netcdf. For this I use Pydap (works well). I found out that using an 2D array populated in a loop was saved as a GTiff without a p

RE: [gdal-dev] empty Gtiff from Python

2011-10-28 Thread Chris Yesson
Tom, I have just run your code exactly as you sent it (except for output path), with python 2.5.2 ang gdal 1.8.1. The ouput file appears in order (gdalinfo output below). The file opens and displays normally in qgis trunk v 1.8. - Chris Gdalinfo output Driver: GTiff/GeoTIFF Files: output.tif

Re: RE: [gdal-dev] empty Gtiff from Python

2011-10-28 Thread Tom van der Putte
Hi Chris, Thanks for checking. I tried it on a linux machine here also and it seems to work. Probably something wrong with either the GDAL instalations or QGIS on my windows machine. I'll try reinstalling it all. Cheers! Tom On Fri 28/10/11 11:10 , "Chris Yesson" chris.yes...@ioz.ac.uk sent: T

Re: Re: [gdal-dev] empty Gtiff from Python

2011-10-28 Thread Tom van der Putte
Hi Vincent, Thanks for the repliy; unfortunately gdal_array.BandWriteArray(ds.GetRasterBand(1),a) (BandWriteAsArray doesn't exist) has the same effect. Tom On Fri 28/10/11 10:57 , Vincent Schut sc...@sarvision.nl sent: Tom van der Putte wrote:Hi List,

Re: [gdal-dev] empty Gtiff from Python

2011-10-28 Thread Vincent Schut
Tom van der Putte wrote: Hi List, I'm trying to save a numpy array to a GTiff, which should be quite straightforward, considering all the examples available on the web. However, I get an file that is not readable by Qgis, is regarded by ArcMap to have only 0 and gdalinfo displays nothing on t