From: andrea a. <and...@gm...> - 2009-01-30 12:40:17
|
>> as you might note, there are variables that are used, apart of the >> $vars that come from the script. >> For example the variable 'a' is used to create variable 'aspect' which >> is used for variable 'cang'. >> >> Is that what you were asking for? >> > > Um, I didn't word my question very well... > > In that example it looks like a is a raster map (maybe temporary) - is > that right ? Hmm, in this perspective I would say yes, but isn't it the same? I.e., 'a' is a scalar local to every calculation. The calculation is done for every pixel. And for every pixel the rasters get scalars and the variables are referred to one value. So if you make a=10, that would be your variable, right? > What I was wondering was whether r.mapcalc scripts can also have > simple (scalar) local variables, or do all variables refer to rasters > ? Aha, no, 'a' in that case is not a map, it is really a variable, to which a value is associated. Andrea > > Michael > |