[gdal-dev] Working between GeoTIFF's and Arc/Info ASCII Grid formats with NAN values

Frank Warmerdam warmerdam at pobox.com
Tue Dec 9 20:24:54 EST 2008


Roger André wrote:
> Hi All,
> 
> Just had an email from a client complaining about the "nan" values that 
> I included in some Arc/Info ASCII Grid files that I sent them.  The 
> files were created by converting GeoTIFF's into ASCII Grid format via 
> gdal_translate.  I personally like that the "nan's" were carried 
> through, but I would like to know if there is a way that I can map the 
> "nan" into a "-9999" value via the gdal utilities?

Roger,

I'm not aware of a way to convert NaN values to an actual value with the
GDAL command line utilities.  You could accomplish this with a program,
or a python script.  You could also potentially do it with by ascii
search and replace in the resulting grid file.

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    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list