<html style="direction: ltr;">
  <head>
    <meta content="text/html; charset=windows-1255"
      http-equiv="Content-Type">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body style="direction: ltr;"
    bidimailui-detected-decoding-type="preferred-charset"
    bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 11/30/2013 11:21 AM, anna zanchetta
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAG+itfcbaWMft1e_2Q_0-WyqWFdHz8U+2u_wBk3TPHo9Cua+2w@mail.gmail.com"
      type="cite">
      <div dir="ltr"><br>
        <div>
          <div>Hi everybody,</div>
          <div><br>
          </div>
          <div>probably an old and known question:</div>
          <div>is there a way in Grass to cut rasters by a polygon (i.e.
            vector)?</div>
          <div><br>
          </div>
          <div>This is possible in Qgis, but not for multiple images (as
            Landsat bands for example),</div>
          <div>while in Grass I could do it on a series of images with
            r.mapcalc, masking one raster by another one.</div>
          <div>It would be comfortable, anyway, to use a polygon
            sometimes, especially in case of not-rectangular shapes.</div>
          <div><br>
          </div>
          <div>Does anyone have a hint?</div>
          <div><br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    The gdal uitlity "gdalwarp" has a -cutline option to clip a raster
    by a polygon. Maybe that will help. Not directly in GRASS, but it's
    easy to script and use within a GRASS session.<br>
    <br>
    <br>
    <br>
    <blockquote
cite="mid:CAG+itfcbaWMft1e_2Q_0-WyqWFdHz8U+2u_wBk3TPHo9Cua+2w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>ciao!</div>
          <div><br>
          </div>
          <div>Anna</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      This mail was received via Mail-SeCure System.<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
This mail was received via Mail-SeCure System.


</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Micha Silver
GIS Consultant, Arava Development Co.
<a class="moz-txt-link-freetext" href="http://www.surfaces.co.il">http://www.surfaces.co.il</a></pre>
  </body>
</html>