[gdal-dev] substitute pixel values

Smith, Michael Michael.Smith at maine.gov
Wed Jan 9 08:33:27 PST 2013


I have some DEMs that are created from lidar.  For reasons related to seeing currents and wind effect, we did not ask for the water to be flattened, but rather it shows waves.  This is cool, and what we wanted.  BUT of course now we want to create a second set of DEMs with a  nice flat ocean.

I have numerous pixels out in the ocean which are slightly less than 0.  So how does one select out all pixels < 0 and substitute them with 0 with GDAL?

===============================
Michael Smith MS GISP
State GIS Manager, Maine Office of GIS
State of Maine, Office of Information Technology
michael.smith _at_ maine.gov
207-215-5530

Board Member, Maine GeoLibrary
Education Chair, Maine GIS Users Group
State Rep, National States Geographic Information Council
[cid:image001.png at 01CDEE5D.23EB12F0][icons]

***NOTE NEW ADDRESS***

State House Station 145
51 Commerce Drive
Augusta, ME 04333-0145
69o 47' 58.9"W  44o 21' 54.8"N
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130109/108ce5ac/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 198 bytes
Desc: image001.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130109/108ce5ac/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 9032 bytes
Desc: image002.jpg
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130109/108ce5ac/attachment.jpg>


More information about the gdal-dev mailing list