[GRASS-user] Set default cell type to FCELL?

Rainer M Krug r.m.krug at gmail.com
Tue Jan 10 07:08:05 EST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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:      Rainer at krugs.de
> 
> Skype:      RMkrug -----BEGIN PGP SIGNATURE----- Version: GnuPG
> v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla -
> http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAk8LP5AACgkQoYgNqgF2egqIMwCfeWPRNyLlu9ZamOmLcECGoisV 
> 81cAn0TBNu2YW7ugZ2o5eq/9XW6lvyV9 =eGtL -----END PGP SIGNATURE-----
>> _______________________________________________ grass-user
>> mailing list grass-user at lists.osgeo.org 
>> 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:      Rainer at krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8MKiUACgkQoYgNqgF2egqmOQCfR0VP+5VYGRK0r6ePFxIZ+Oa1
snQAnRLfyjq9JJFwZzAhDZuEoGA7x1s6
=vCXE
-----END PGP SIGNATURE-----


More information about the grass-user mailing list