[GRASS-user] How to implement 2D lookup table?

Vincent Bain bain at toraval.fr
Thu May 23 06:47:54 PDT 2013


> >>> ,----
> >>> | r.mapcalc expression = "result = lookupTable[col=ageClass,
> row=dc]"
> >>> `---- 

Not a mapcalc expert, but what about turning your lookup table in a true
raster, I mean create a 3colsx7rows LUT raster with values from your
table, then use this "map" in an r.mapcalc expression, calling LUT[i,j]
to retrieve the value corresponding to ageClass i and dc j
Sorry to interfere if my proposition is stupid ;-)

Vincent



More information about the grass-user mailing list