[GRASS-user] r.mapcalc trouble

Tyler Smith tyler.smith at mail.mcgill.ca
Sun Mar 11 18:57:35 EDT 2007


On Sun, Mar 11, 2007 at 07:05:26PM +0000, Glynn Clements wrote:
> 
> 
> > I'm having some trouble with clipping a group of raster maps. I tried
> > the following:
> > 
> > r.mapcalc mean_temp_dry_clip='if(wc_mean_temp_dry && eco_clip,
> >   wc_mean_temp_dry, null())'
> 
> Are you taking into account that any cells which are zero in
> wc_mean_temp_dry will be null in the result?
> 
> Or did you mean to use:
> 
> 	!isnull(wc_mean_temp_dry) && !isnull(eco_clip)
> 

Thank you, that was the expression I should have used. Another problem
solved!

-- 
Regards,

Tyler Smith




More information about the grass-user mailing list