[gdal-dev] substitute pixel values

Ivan Lucena ivan.lucena at princeton-ma.us
Wed Jan 9 08:44:34 PST 2013


Hi Michael,

It seems like it would be better to mask out with a Land/Sea image 'cause you don't want to loose part of your shore that might be lower then the waves.

Well, I might be wrong. I haven't been at the beach for a long time :)

Regards,

Ivan

-------Original Message-------
  From: Smith, Michael
  To: gdal-dev at lists.osgeo.org
  Subject: [gdal-dev] substitute pixel values
  Sent: Jan 09 '13 11:33


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
  [IMAGE: icons]

  ***NOTE NEW ADDRESS***

  State House Station 145
  51 Commerce Drive
  Augusta, ME 04333-0145
  69^o 47' 58.9"W  44^o 21' 54.8"N
          --------------------
_______________________________________________
  gdal-dev mailing list
  [LINK: compose.php?to=gdal-dev at lists.osgeo.org] gdal-dev at lists.osgeo.org
  [LINK: http://lists.osgeo.org/mailman/listinfo/gdal-dev]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 198 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130109/7a2ac336/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 9032 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130109/7a2ac336/attachment-0001.jpg>


More information about the gdal-dev mailing list