[GRASS5] [bug #1372] (grass) r.mapcalc: strange multiplication bug

guest user via RT grass-bugs at intevation.de
Thu Oct 24 11:56:53 EDT 2002


Just an update: Without int() it works.
See below.

With round() it also fails.

r.mapcalc 'pippo2=100000 * glomm'
pippo2 = (mul(double(100000),glomm[0,0]))
r.info pippo2%
 100%
baez:insubri 195%r.info pippo2
 +---------------------------------------------------------------------------
-+
 | Layer:    pippo2                         Date: Thu Oct 24 17:53:34 2002   
 |
 | Mapset:   erdemolo                       Login of Creator: fontana        
 |
 | Location: pat                                                             
 |
 | DataBase: /mpa_gdata/ssi/BIO/GRASS_DATA/data                              
 |
 | Title:     ( pippo2 )                                                     
 |
 |---------------------------------------------------------------------------
-|
 |                                                                           
 |
 |   Type of Map:  raster              Number of Categories: 255             
 |
 |   Data Type:    DCELL                                                     
 |
 |   Rows:         3251                                                      
 |
 |   Columns:      3871                                                      
 |
 |   Total Cells:  12584621                                                  
 |
 |        Projection: Transverse Mercator (zone 0)                           
 |
 |            N:    5157109    S:    5059581   Res: 29.9993848               
 |
 |            E:    1728648    W:    1612512   Res: 30.00154999              
 |
 |   Range of data:    min =  -46615364858.646423 max = 46615364858.646423   
 |
 |                                                                           
 |
 |   Data Source:                                                            
 |
 |                                                                           
 |
 |                                                                           
 |
 |                                                                           
 |
 |   Data Description:                                                       
 |
 |    generated by r.mapcalc                                                 
 |
 |                                                                           
 |
 |                                                                           
 |
 +---------------------------------------------------------------------------
-+


-------------------------------------------- Managed by Request Tracker




More information about the grass-dev mailing list