Michael,<br><br>Can you provide screenshots of diablo-combined-center-utm10-70pct-box.tif and diablo-combined-center-utm10-70pct-cutout.tif for comparison?<br><br>By the way, you can perform the actions of the two gdal_translate commands in the first step with the gdal_merge.py script itself unless you want to use a specific resampling algorithm.<br>
<br><div class="gmail_quote">On Thu, Jul 7, 2011 at 4:28 AM, Michael Corey <span dir="ltr">&lt;<a href="mailto:mcorey@cironline.org">mcorey@cironline.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi all:<br>
<br>
I&#39;m using a shapefile as a clipping mask to cut out the shoreline from some DOQ files that I have merged together. But when I do the clipping step, I end up with unwanted semitransparency in the non-clipped areas.<br>

<br>
I&#39;m pretty sure the problem is only with my gdalwarp step at the end.<br>
<br>
Here&#39;s my process:<br>
<br>
gdal_merge.py -init &quot;255&quot; -o diablo-combined-center-utm10.<u></u>tif file file file file<br>
<br>
gdal_translate -outsize 70% 70% diablo-combined-center-utm10.<u></u>tif diablo-combined-center-utm10-<u></u>70pct.tif<br>
<br>
ogrinfo -al ./diablo_canyon_detail_<u></u>clipper.shp<br>
//Extent: (XXXX, YYYY) - (XXXX, YYYY)<br>
<br>
gdal_translate -projwin XXXX YYYY XXXX YYYY diablo-combined-center-utm10-<u></u>70pct.tif diablo-combined-center-utm10-<u></u>70pct-box.tif<br>
<br>
gdalwarp -co COMPRESS=DEFLATE -cutline ./diablo_canyon_detail_<u></u>clipper.shp diablo-combined-center-utm10-<u></u>70pct-box.tif diablo-combined-center-utm10-<u></u>70pct-cutout.tif<br>
<br>
Can anyone help?<br>
<br>
Thanks!<br><font color="#888888">
<br>
-- <br>
Michael Corey<br>
<br>
______________________________<u></u>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/gdal-dev</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>