<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bidimailui-charset-is-forced="true"
    bidimailui-detected-decoding-type="latin-charset" text="#000000"
    bgcolor="#ffffff">
    Hello<br>
    <br>
    On 24/10/2010 19:29, ALT SHN wrote:<br>
    <br>
    Regarding your first question, (convert floating point raster to
    integer) you can use:<br>
    r.mapcalc "int_raster = int(fp_raster)<br>
    <br>
    <blockquote
      cite="mid:AANLkTinEp9RzdOOiAq9N6jLD1NDGnX+6VMfqAV68S1t_@mail.gmail.com"
      type="cite"><span class="Apple-style-span" style="font-family:
        arial,sans-serif; font-size: 12.5px; border-collapse: collapse;">Hello
        users,
        <div><br>
        </div>
        <div>I really could use some hints regarding this problem.</div>
        <div><br>
        </div>
        <div>I want to generate a new raster from the following
          expression (using r.mapcalculator from QGIS GRASS plugin):</div>
        <div><br>
        </div>
        <div>A*0.5+B*0.05+C*0.2+D*0.2+E*0.05<br clear="all">
          <br>
        </div>
        <div>All rasters are integer16 geotiff anda have the same
          resolution. I just get this message:</div>
        <div><br>
        </div>
        <div><span style="font-weight: 600;">r.mapcalculator
            amap=A@PERMANENT bmap=B@PERMANENT cmap=C@PERMANENT
            dmap=D@PERMANENT emap=E@PERMANENT =
            formula=A*0.5+B*0.05+C*0.2+D*0.2+E*0.05 outfile=Erosao</span>
        </div>
      </span></blockquote>
    <br>
    Here, I think you want to skip the '@' character.<br>
    BTW, you can just run the above straight within r.mapcalc also:<br>
    r.mapcalc "Erosao = <span class="Apple-style-span"
      style="font-family: arial,sans-serif; font-size: 12.5px;
      border-collapse: collapse;">A*0.5 + B*0.05 + C*0.2 + D*0.2 +
      E*0.05"</span>
    <blockquote
      cite="mid:AANLkTinEp9RzdOOiAq9N6jLD1NDGnX+6VMfqAV68S1t_@mail.gmail.com"
      type="cite"><span class="Apple-style-span" style="font-family:
        arial,sans-serif; font-size: 12.5px; border-collapse: collapse;">
        <div>
          <p style="margin: 0px; text-indent: 0px;"><span>r.mapcalc
              "Erosao" = "( " "A@PERMANENT" @PERMANENT" *0.5+ "
              "B@PERMANENT" @PERMANENT" *0.05+ " "C@PERMANENT"
              @PERMANENT" *0.2+ " "D@PERMANENT" @PERMANENT" *0.2+ "
              "E@PERMANENT" @PERMANENT" *0.05)"</span></p>
          <p style="margin: 0px; text-indent: 0px;"><span>Illegal
              filename. Character not allowed.</span></p>
          <p style="margin: 0px; text-indent: 0px;">
            <span>Invalid map</span></p>
          <p style="margin: 0px; text-indent: 0px;"><span>Parse error</span></p>
          <p style="margin: 0px; text-indent: 0px;">
          </p>
          <p style="margin: 0px; text-indent: 0px;"><img
              moz-do-not-send="true">Calculating Erosao. Try expert
            mode.</p>
          <p style="margin: 0px; text-indent: 0px;">
            <span style="font-weight: 600;">Finished with error</span></p>
          <p style="margin: 0px; text-indent: 0px;"><span
              style="font-weight: 600;"><br>
            </span></p>
          <p style="margin: 0px; text-indent: 0px;">
            I suspect something very basic is missing but I don&acute;t know
            what could it be!!</p>
          <p style="margin: 0px; text-indent: 0px;"><span
              style="font-weight: 600;"><br>
            </span></p>
          <p style="margin: 0px; text-indent: 0px;"><span
              style="font-weight: 600;">Andre</span></p>
        </div>
      </span><br>
      -- <br>
      ---------------------------------------------------------------<br>
      Associa&ccedil;&atilde;o Leonel Trindade<br>
      SOCIEDADE DE HIST&Oacute;RIA NATURAL<br>
      <br>
      Apartado 25 2564-909 Torres Vedras Portugal<br>
      Sede e Biblioteca: rua Cavaleiros da Espora Dourada, 27A 2560
      Torres Vedras<br>
      <br>
      Laborat&oacute;rio de Paleontologia e Paleoecologia: Pol&iacute;gono Industrial
      do Alto do Ameal 2565-641 Ramalhal<br>
      <a moz-do-not-send="true" href="http://alt-shn.blogspot.com">http://alt-shn.blogspot.com</a><br>
      <a moz-do-not-send="true" href="http://www.alt-shn.org">www.alt-shn.org</a><br>
      <br>
      This mail was received via Mail-SeCure System.<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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="62">-- 
Micha Silver
<a class="moz-txt-link-freetext" href="http://www.surfaces.co.il/">http://www.surfaces.co.il/</a>
Arava Development Co.  +972-52-3665918
</pre>
  </body>
</html>