[Gdal-dev] export an image to ascii text file

Xiaodong Zhang zhang at aero.und.edu
Mon Feb 6 00:59:47 EST 2006


Thanks Matt and Bryan,

I modified gdal2xyz.py to outputs multiple bands to a single file. I 
really appreciate your help.This is the first time ever that I read and 
modify a python code; interesting language.

best
Xiaodong

Matthew Perry wrote:
> Xiaodong,
>
>   There is a python script distributed with recent versions of gdal
> called "gdal2xyz.py" . I haven't used it for multi-band images and it
> appears that the script handles a single band at a time. You could use
> this to create a seperate text file for each band or modify it to
> output all bands to a single file.
>
> matt
>
> On 2/3/06, Xiaodong Zhang <zhang at aero.und.edu> wrote:
>   
>> Hi,
>>
>> I need to export an image (any projection) into an ascii file: coma
>> delimited columns of lat, lon, band 1, band 2, ..... Before I get on
>> that with GDAL library, does anyone have developed or know of such a
>> program, which can be shared.
>>
>> Thanks
>> Xiaodong
>>
>> --
>> ____________________________________________
>>
>> Xiaodong Zhang
>> Department of Earth System Science & Policy
>> Clifford Hall, Box 9011
>> University of North Dakota
>> Grand Forks, ND 58202-9011
>> Tel. (701)777-6087 | Fax. (701)777-2940
>> E-mail: zhang at aero.und.edu
>> _____________________________________________
>>
>> _______________________________________________
>> Gdal-dev mailing list
>> Gdal-dev at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/gdal-dev
>>
>>     
>
>
> --
> Matt Perry
> perrygeo at gmail.com
> http://www.perrygeo.net
>   




More information about the Gdal-dev mailing list