<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Sure, I've uploaded samples here.<br>
    <br>
    <a class="moz-txt-link-freetext" href="http://www.mikejcorey.com/spatial/diablo-box-sample.tif">http://www.mikejcorey.com/spatial/diablo-box-sample.tif</a><br>
    <a class="moz-txt-link-freetext" href="http://www.mikejcorey.com/spatial/diablo-cutout-sample.tif">http://www.mikejcorey.com/spatial/diablo-cutout-sample.tif</a><br>
    <br>
    These are the same as the images created by the process I described
    (but scaled down).<br>
    <br>
    To your point about specifying size in the first step -- will that
    make the process run faster, or does it do the scaling down after it
    builds the full-resolution image?<br>
    <br>
    Also, I notice that my filesize always gets significantly bigger
    when I do the cutout step, which seems counter-intuitive to me since
    in theory shouldn't there be less information present once the
    cutout is done?<br>
    <br>
    Thanks for your help!<br>
    <pre class="moz-signature" cols="72">Michael Corey</pre>
    <br>
    On 7/6/11 5:01 PM, Chaitanya kumar CH wrote:
    <blockquote
cite="mid:CAMKgpOax64yJF7YA9yNB-iAguSEpxGY+EER_nF2Kum1wU8t5-g@mail.gmail.com"
      type="cite">
      <div class="moz-text-html" lang="x-unicode">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 moz-do-not-send="true"
              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'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'm pretty sure the problem is only with my gdalwarp step at
            the end.<br>
            <br>
            Here's my process:<br>
            <br>
            gdal_merge.py -init "255" -o
            diablo-combined-center-utm10.tif file file file file<br>
            <br>
            gdal_translate -outsize 70% 70%
            diablo-combined-center-utm10.tif
            diablo-combined-center-utm10-70pct.tif<br>
            <br>
            ogrinfo -al ./diablo_canyon_detail_clipper.shp<br>
            //Extent: (XXXX, YYYY) - (XXXX, YYYY)<br>
            <br>
            gdal_translate -projwin XXXX YYYY XXXX YYYY
            diablo-combined-center-utm10-70pct.tif
            diablo-combined-center-utm10-70pct-box.tif<br>
            <br>
            gdalwarp -co COMPRESS=DEFLATE -cutline
            ./diablo_canyon_detail_clipper.shp
            diablo-combined-center-utm10-70pct-box.tif
            diablo-combined-center-utm10-70pct-cutout.tif<br>
            <br>
            Can anyone help?<br>
            <br>
            Thanks!<br>
            <font color="#888888">
              <br>
              -- <br>
              Michael Corey<br>
              <br>
              _______________________________________________<br>
              gdal-dev mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.osgeo.org/mailman/listinfo/gdal-dev"
                target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
            </font></blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        Best regards,<br>
        Chaitanya kumar CH.<br>
        /t&#643;a&#618;&#952;&#601;nj&#601;/ /k&#650;m&#593;r/ <br>
        +91-9494447584<br>
        17.2416N 80.1426E<br>
      </div>
    </blockquote>
  </body>
</html>