A mapcalc expression, involving somewhat long(er) temporary map names, stored in the output raster map's history, looks like: ``` Comments: if((tmp.32493.16.tmp.32493.11.tmp.32493.6.recreation_potential == 1 && tmp.32493.17.recreation_opportunity == 1), 1, if((tmp.32493.16.tmp.32493.11.tmp.32493.6.recreation_potential == 1 && tmp.32493.17.recreation_opportunity == 2), 2, if((tmp.32493.16.tmp.32493.11.tmp.32493.6.recreation_potential == 1 && tmp.32493.17.recreation_opportunity == 3), 3, if((tmp.32493.16.tmp.32493.11.tmp.32493.6.recreation_potential == 2 && tmp.32493.17.recreation_opportunity == 1), 4, if((tmp.32493.16.tmp.32493.11.tmp.32493.6.recreation_potential == 2 && tmp.32493.17.recreation_opportunity == 2), 5, if((tmp.32493.16.tmp.32493.11.tmp.32493.6.recreation_potential == 2 && tmp.32493.17.recreation_opportunity == 3), 6, if((tmp.32493.16.tmp.32493.11.tmp.32493.6.recreation_potential == 3 && tmp.32493.17.recreation_opportunity == 1), 7, if((tmp.32493.16.tmp.32493.11.tmp.32493.6.recreation_potential == 3 && tmp.32493.17.recreation_opportunity == 2), 8, if((tmp.32493.16.tmp.32493.11.tmp.32493.6.recreation_potential == 3 && tmp.32493.17.recreation_opportunity == 3), 9))))))))) ```
Any smart ideas on how to post-process this to get rid of all 'tmp.32493.16.tmp.32493.11.tmp.32493.6.' parts?
Standard string manipulation utilities? Or, rather, build an "fake" expression with the original map names just for the sake of having a cleaner history? Thank you, Nikos
signature.asc
Description: PGP signature
_______________________________________________ grass-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/grass-dev
