Re: [gdal-dev] ASCII Rasters and 'null' values in python-gdal

2009-03-03 Thread Oz Nahum
Hi, Thank you all for your answers. This was probably a bug in debian lenny: python-gdal in lenny is 1.5.2-3 python-gdal in squeeze is 1.5.4-2 This behavior does not occur in debian squeeze, so I will look up if a bug report on this exists in debian-lenny and report this internaly to the debian gu

Re: [gdal-dev] ASCII Rasters and 'null' values in python-gdal

2009-02-27 Thread Frank Warmerdam
Oz Nahum wrote: Hi, Thanks for the answer. Ok, I admit the way I presented my first email is a bit confusing. But the problem is not with the 'null' values. Rather the problem is with the raster containing the no data values as -. This is a no data representation like you said. My problem

Re:Re: [gdal-dev] ASCII Rasters and 'null' values in python-gdal

2009-02-27 Thread Oz Nahum
Hi, Thanks for the answer. Ok, I admit the way I presented my first email is a bit confusing. But the problem is not with the 'null' values. Rather the problem is with the raster containing the no data values as -. This is a no data representation like you said. My problem is that GDAL is conve

Re: [gdal-dev] ASCII Rasters and 'null' values in python-gdal

2009-02-26 Thread Chaitanya kumar CH
Oz, NODATA_VALUES is supposed to be a pixel value (integer or real) whereas "null" is a string. Try to convert all the "null" strings into an unused pixel value like - in raster1.asc Regards, -- Chaitanya kumar CH. On Fri, Feb 27, 2009 at 2:34 AM, Oz Nahum wrote: > Hi, > I have to ascii ra

[gdal-dev] ASCII Rasters and 'null' values in python-gdal

2009-02-26 Thread Oz Nahum
Hi, I have to ascii raster that I created using a text editor: the first is called raster1.asc and looks like this: ncols 6 nrows 4 xllcorner 3366820.019 yllcorner 5814589.037 cellsize 10 NODATA_value - 1 1 1