<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hello Jonny,<br>
I assume that this is not possible. Are the holes in your
elevation data big? <br>
I would suggest that you interpolate the missing data. This can be
done tools from gdal-library:<br>
<a class="moz-txt-link-freetext" href="http://www.gdal.org/">http://www.gdal.org/</a><br>
Ready compiled packages are available for Windows from OSGeo4W
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/osgeo4w/">http://trac.osgeo.org/osgeo4w/</a><br>
(OSGeo4W Installer)<br>
<br>
To fill the holes you need to do:<br>
1. copy the elevation matrix to a separate text file ie. dem.txt<br>
<br>
2. add a header to the text file that it looks like:<br>
ncols 366<br>
nrows 366<br>
xllcorner 0.000000000000<br>
yllcorner -366.000000000000<br>
cellsize 1.000000000000<br>
471.2 473.3 482.9 489.5 492.3 ...<br>
447.7 449.8 453.8 456.4 457.2 ...<br>
...<br>
you have to adapt the ncols, nrows and yllcorner values to fit to
your matrix size (in my case 366 by 366 values)<br>
<br>
3. convert and mark nodata values with gdal_translate. "0" is the
value for nodata<br>
in OSGeo4W Shell:<br>
> gdal_translate -a_nodata 0 dem.txt demnodata.tif<br>
<br>
4. fill the nodata regions by<br>
in OSGeo4W Shell:<br>
gdal_fillnodata.py demnodata.tif filled.tif<br>
<br>
5. convert back to ascii matrix<br>
in OSGeo4W Shell:<br>
gdal_translate -of AAIGrid filled.tif filled.txt<br>
<br>
Remark: the produced *.tif files can not be displayed in every
image viewing software as it contains no the usual RGB data but
instead integer or float valus. One nice software to display (and
even analyze) is ImageJ: <a class="moz-txt-link-freetext" href="http://imagej.nih.gov/ij/">http://imagej.nih.gov/ij/</a> <br>
<br>
Best regards<br>
Wolfgang<br>
<br>
Am 03.07.2013 21:46, schrieb Jonny Prouty:<br>
</div>
<blockquote
cite="mid:CAEzKa93am7AYh-mDi=qrRooAwq9OL8XA-a0Tky45XqVq5aV4Ag@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hello all,<br>
<br>
My apologies in advance if I've overlooked something, but is
there a way to instruct Loch to NOT draw elevation data equal
to a certain value? For instance, in my current model, I do
not want Loch to draw any elevations that are equal to 0. Is
this possible? Thanks very much in advance!<br>
<br>
</div>
Cheers,<br>
<br>
Jonny ^v^<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Therion mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Therion@speleo.sk">Therion@speleo.sk</a>
<a class="moz-txt-link-freetext" href="http://mailman.speleo.sk/mailman/listinfo/therion">http://mailman.speleo.sk/mailman/listinfo/therion</a>
</pre>
</blockquote>
<br>
</body>
</html>