ROTFL "You could also potentially do it with by ascii search and replace in the resulting grid file"<br><br>You are SO right! I had totally forgotten that this was ASCII output. Doh!<br><br>Thanks Frank.<br>--<br>
<br><br><br><div class="gmail_quote">On Tue, Dec 9, 2008 at 5:24 PM, Frank Warmerdam <span dir="ltr"><<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Roger André wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi All,<br>
<br>
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?<br>
</blockquote>
<br></div>
Roger,<br>
<br>
I'm not aware of a way to convert NaN values to an actual value with the<br>
GDAL command line utilities. You could accomplish this with a program,<br>
or a python script. You could also potentially do it with by ascii<br>
search and replace in the resulting grid file.<br>
<br>
Best regards,<br><font color="#888888">
-- <br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush | Geospatial Programmer for Rent<br>
<br>
</font></blockquote></div><br>