[GRASS-user] Error while applying r.mapcalc to an output from GROW

António Rocha antonio.rocha at deimos.com.pt
Wed Oct 27 08:08:43 EDT 2010


Greetings

I have created a raster with the r.grow function where I attributted 
value 1 to the original+growned areas.
 From the r.info I obtain the following:
 |                                                                            
|
 |   Type of Map:  raster               Number of Categories: 
9               |
 |   Data Type:    
CELL                                                       |
 |   Rows:         
6991                                                       |
 |   Columns:      
8171                                                       |
 |   Total Cells:  
57123461                                                   |
 |        Projection: UTM (zone 
-24)                                          |
 |            N: 9305500.00000001    S: 9095770.00000001   Res:    
30         |
 |            E:     689130    W:     444000   Res:    
30                     |
 |   Range of data:    min = 1  max = 
1                                       |

 |   
Comments:                                                                |
 |    r.grow input="myscript.tmpcloud at National" output="grow02" radius=1 
m\   |
 |    etric="euclidean" old=1 
new=1                                           |

Where I obtain this:

506505.949964|9267207.442575||1|grown cells
or
506782.475461|9265066.600014||*| for the non-grown values

Then I applied this expression:
if( grow02 at National ==null(),1,0)

but from this output I obtain only NULLS. Maybe this is a problem 
related with the output of r.grow. can anyone give me a clue?
Thanks
Antonio


__________ Information from ESET NOD32 Antivirus, version of virus signature database 5567 (20101027) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




More information about the grass-user mailing list