[gdal-dev] gdal file conversions

Frank Warmerdam warmerdam at pobox.com
Thu Jan 10 11:31:57 EST 2008


LeRetha Childress wrote:
> I am using NDFD .bin files such as ds.mint.bin. Is there a way to 
> convert them to a text format that would include coordinate information 
> as well as the data values?
> 
> I have been able to get a grid of temps with
> 
>  
> 
> gdal_translate  -of AAIGrid –b 1 ds.mint.bin outputfile
> 
>  
> 
> but I would like to be able to create a file that shows lat long values 
> along with the temps.

LeRetha,

The gdal2xyz.py script will write out a file with "x y pixelvalue", one per
line in a text file.  It lives in swig/python/samples in the GDAL 1.5 source
tree and may be installed if you have Python enabled.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the gdal-dev mailing list