r.mapcalc, floating point

Malcolm Williamson malcolm at cast.uark.edu
Fri Oct 24 09:52:22 EDT 1997


Try simply inserting a decimal point in the value "1000": "1000.0". This 
should force floating point calculations.
--
Malcolm D. Williamson - GIS Specialist           E-mail: malcolm at cast.uark.edu
Center for Advanced Spatial Technologies      Telephone: (501) 575-6159
Ozark Rm. 12                                        Fax: (501) 575-5218 
University of Arkansas              
Fayetteville, AR 72701                            http://www.cast.uark.edu


On Thu, 23 Oct 1997 grass at genie.saff.utah.edu wrote:

> Help please,
> here is the simple r.mapcalc I'd like to run:
> 	snoele12_37 = 228*exp(1.2,elevation/1000)
> It runs, however the 'elevation/1000' doesn't seem to hold a floating
> point during the evaluation.  Therefore the only values in my map are 228,
> 274 which equals 228*exp(1.2,1) and 328 which equals 228*exp(1.2,2).  I
> would really like all values in between.  Any suggestions?
> 
> Jason Carey
> Snow Hydrology
> University of Utah
> 
> 



More information about the grass-user mailing list