Re: [gdal-dev] Getting data values from a first GeoTIFF and do some map algebra type operations with a second GeoTIFF

2011-11-23 Thread Joaquim Luis
Derek, These are the type of operations that I recommend GMT (built with GDAL off course). With GMT5 ii as simple as grd2xyz yourGeotiff > outfile this saves x,y,z triplets. Add -ZTLa to write only the z values (many other options available) Joaquim Hello, I am new to GDAL and raster p

Re: [gdal-dev] Getting data values from a first GeoTIFF and do some map algebra type operations with a second GeoTIFF

2011-11-23 Thread Travis Kirstine
Have you looked at the samples at: http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/ The val_repl.py script show how to utilize numpy with gdal On 23 November 2011 15:02, jdmorgan wrote: > Hello, > > I am new to GDAL and raster programming in general and hoping that I can get > some gui

[gdal-dev] Getting data values from a first GeoTIFF and do some map algebra type operations with a second GeoTIFF

2011-11-23 Thread jdmorgan
Hello, I am new to GDAL and raster programming in general and hoping that I can get some guidance. I have GeoTIFF which are projected in WGS84 and a single band.I am trying to start simply with the concept of getting out the data values from the GeoTIFF from one file so that I compare them to

Re: [gdal-dev] ogr.Feature field access

2011-11-23 Thread Ari Jolma
On 11/23/2011 08:53 AM, Frank Warmerdam wrote: Folks, Tonight I have made some changes to the OGR Python bindings such that there is a SetField2() method that tries to support a wider variety of value types that can be assigned to a field, including the list types. I also implemented __setattr_

Re: [gdal-dev] CopyLayer oddity using GML driver

2011-11-23 Thread Ari Jolma
In general, from my point-of-view limiting the growth of utility code, which is not available to bindings, or making some of that code available to bindings is a good thing. Ari On 11/23/2011 12:57 AM, Even Rouault wrote: Hm, after some thinking I think the best approach is to construct the o

Re: [gdal-dev] esri hdr format header

2011-11-23 Thread Travis Kirstine
Francesco Information regarding the format can be found under the EHdr -- ESRI .hdr Labelled section in http://www.gdal.org/frmt_various.html We have had issues inhouse dealing with hdr files - you must add the nbits / pixeltype to the correctly read the files with GDAL. The only solution that

[gdal-dev] esri hdr format header

2011-11-23 Thread francesco
Hello, I looked all day for information regarding the following problem, but found none, so maybe the list can give me a hand: When using GDAL C API reading and writing ESRI hdr files (floating point binaries), the output header is very different from the header of the input file (see example