Yes, also check the manual for r.mapcalc (e.g. <a href="http://grass.fbk.eu/gdp/html_grass64/r.mapcalc.html">http://grass.fbk.eu/gdp/html_grass64/r.mapcalc.html</a>), it is described there somewhere I think<br>
<br><br><div class="gmail_quote">On Tue, Jan 10, 2012 at 3:23 PM, Rainer M Krug <span dir="ltr"><<a href="mailto:r.m.krug@gmail.com">r.m.krug@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</div><div class="im">On 10/01/12 13:17, Paulo van Breugel wrote:<br>
> When you include in any one of your multiplication a number with<br>
> at least one decimal your result should be a floating raster.<br>
> Perhaps not<br>
<br>
</div>so<br>
<br>
oldmap * 1<br>
<br>
results in a raster of the same type as oldmap,<br>
<br>
where<br>
<br>
oldmap * 1.0<br>
<br>
would result in a FCELL?<br>
<div class="im"><br>
> as easy as what you are asking for, but it shouldn't be too error<br>
> prone, should it?<br>
<br>
</div>In principal not - but I have to check the whole simulation.<br>
<br>
Thanks,<br>
<br>
Rainer<br>
<div class="im"><br>
<br>
><br>
> Paulo<br>
><br>
><br>
> On Tue, Jan 10, 2012 at 3:08 PM, Rainer M Krug <<a href="mailto:r.m.krug@gmail.com">r.m.krug@gmail.com</a><br>
</div><div><div class="h5">> <mailto:<a href="mailto:r.m.krug@gmail.com">r.m.krug@gmail.com</a>>> wrote:<br>
><br>
> On 10/01/12 12:50, Massimiliano Cannata wrote:<br>
>> Hi, not sure to have understood what you want to do but maybe<br>
>> using r.mapcalc functions: - double(x) --> convert x to<br>
>> double-precision floating point - float(x) --> convert<br>
>> x to single-precision floating point<br>
><br>
> Sorry for not being more clear.<br>
><br>
> What you suggest is exactly what I am doing - but it is very error<br>
> prone, as I have to put this into numerous calculations (this is<br>
> part of a simulation model).<br>
><br>
> What I would like to do is tho change the default type from CELL<br>
> to FCELL - i.e. whenever a new raster is created, it will *always*<br>
> and *automatically* be saved in a FCELL raster, even if it only<br>
> contains integer values, and not in a CELL raster.<br>
><br>
> Cheers,<br>
><br>
> Rainer<br>
><br>
><br>
><br>
>> Maxi<br>
><br>
>> On 01/10/2012 09:21 AM, Rainer M Krug wrote: -----BEGIN PGP<br>
>> SIGNED MESSAGE----- Hash: SHA1<br>
><br>
>> Hi<br>
><br>
>> I have huge values in my raster cells and I am manually always<br>
>> setting thrm to FCELL. Is there a possibility to instruct GRASS<br>
>> to use FCELL (or DCELL) as a default instead of CELL?<br>
><br>
>> Thanks<br>
><br>
>> Rainer<br>
><br>
><br>
>> - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc<br>
>> (Conservation Biology, UCT), Dipl. Phys. (Germany)<br>
><br>
>> Centre of Excellence for Invasion Biology Stellenbosch<br>
>> University South Africa<br>
><br>
>> Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62<br>
>> 59 98 Fax : +33 - (0)9 58 10 27 44<br>
><br>
>> Fax (D): +49 - (0)3 21 21 25 22 44<br>
><br>
</div></div>>> email: <a href="mailto:Rainer@krugs.de">Rainer@krugs.de</a> <mailto:<a href="mailto:Rainer@krugs.de">Rainer@krugs.de</a>><br>
><br>
>> Skype: RMkrug<br>
<div class="im"><br>
> _______________________________________________ grass-user mailing<br>
> list <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
</div>> <mailto:<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>><br>
<div class="im">> <a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
><br>
><br>
<br>
- --<br>
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation<br>
Biology, UCT), Dipl. Phys. (Germany)<br>
<br>
Centre of Excellence for Invasion Biology<br>
Stellenbosch University<br>
South Africa<br>
<br>
Tel : +33 - (0)9 53 10 27 44<br>
Cell: +33 - (0)6 85 62 59 98<br>
Fax : +33 - (0)9 58 10 27 44<br>
<br>
Fax (D): +49 - (0)3 21 21 25 22 44<br>
<br>
email: <a href="mailto:Rainer@krugs.de">Rainer@krugs.de</a><br>
<br>
Skype: RMkrug<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.11 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
<br>
</div>iEYEARECAAYFAk8MLcIACgkQoYgNqgF2egoSMQCePKxF92PrrqiAwqo2OLmlthyf<br>
NkgAnjfdAf6dx1lz02Rnyu4g5gkPUZi3<br>
=HmpG<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br>