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