~ubuntu-branches/ubuntu/karmic/grass/karmic

« back to all changes in this revision

Viewing changes to raster/r.mapcalc/r.mapcalc.html

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2009-07-13 13:34:03 UTC
  • mfrom: (3.1.15 karmic)
  • Revision ID: james.westby@ubuntu.com-20090713133403-0x81m7hb1q06zu13
Tags: 6.4.0~rc5-2
* Added a grass menu item (Hamish).
* Added a grass.menu.in template with related icon.
* Added a simple x-grass wrapper to allow running grass without a pre-running
  controlling terminal. At least it works within ordinary WMs launchers.
  (closes: #503371)
* Added newlocation.dpatch patch to manage correctly new locations.
  (closes: #533738)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
2
<html>
3
3
<head>
4
 
<title>r.mapcalc</title>
 
4
<title>GRASS GIS manual: r.mapcalc</title>
5
5
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6
6
<link rel="stylesheet" href="grassdocs.css" type="text/css">
7
7
</head>
385
385
 
386
386
 
387
387
<h3>NULL support</h3>
388
 
<menu>
 
388
<ul>
389
389
<li>Division by zero should result in NULL. 
390
390
<li>Modulus by zero should result in NULL. 
391
391
<li>     NULL-values in any arithmetic or logical operation should result
422
422
sqrt(-2) 
423
423
pow(a,b) where a is negative and b is not an integer 
424
424
</pre></div>
425
 
</menu>
 
425
</ul>
426
426
<p>
427
427
NULL support: Please note that any math performed with NULL cells always
428
428
results in a NULL value for these cells. If you want to replace a NULL cell
519
519
</pre></div>
520
520
use:
521
521
<div class="code"><pre>
522
 
                r.mapcalc &#60&#60EOF
 
522
                r.mapcalc &lt;&lt;EOF
523
523
        $GIS_OPT_OUTPUT.r = r#$GIS_OPT_FIRST * .$GIS_OPT_PERCENT + (1.0 - .$GIS_OPT_PERCENT) * r#$GIS_OPT_SECOND
524
524
        $GIS_OPT_OUTPUT.g = g#$GIS_OPT_FIRST * .$GIS_OPT_PERCENT + (1.0 - .$GIS_OPT_PERCENT) * g#$GIS_OPT_SECOND
525
525
        $GIS_OPT_OUTPUT.b = b#$GIS_OPT_FIRST * .$GIS_OPT_PERCENT + (1.0 - .$GIS_OPT_PERCENT) * b#$GIS_OPT_SECOND
671
671
Glynn Clements
672
672
 
673
673
<p>
674
 
<i>Last changed: $Date: 2009-03-06 16:17:37 +0100 (Fri, 06 Mar 2009) $</i>
 
674
<i>Last changed: $Date: 2009-05-28 10:32:21 +0200 (Thu, 28 May 2009) $</i>
675
675
 
676
676
<hr>
677
677
<p><a href="index.html">Main index</a> - <a href="raster.html">raster index</a> - <a href="full_index.html">Full index</a></p>