[GRASS-user] Suggestion for creating a script to create a map of agricultural capacity

Marcello Benigno benigno.marcello at gmail.com
Mon May 27 12:36:02 PDT 2013


Hi Micha,

About:

*Not sure I understand the logic of taking the highest value
*

This was defined by an agronomist, I also do not understand why =/

However, your answer is exactly what I need, did not know r.series, thank
you!

If you can help me also in this tip, I would be very grateful, I'm
reclassifying the slope as follows:

r.mapcalc class_1 = 'if(slope <= 2.0, 1, null())'
r.mapcalc class_2 = 'if(2.0 < slope <= 5, 2, null())'
r.mapcalc class_3 = 'if(5 < slope <= 10, 3, null())'
r.mapcalc class_4 = 'if(10 < slope <= 15, 4, null())'
r.mapcalc class_5 = 'if(15 < slope <= 45, 5, null())'
r.mapcalc class_6 = 'if(45 < slope <= 70, 6, null())'
r.mapcalc class_7 = 'if(slope > 70, 7, null())'

r.mapcalc slope.reclass = class_1 + class_2 + class_3 + class_4 + class_5 +
class_6 + class_7

How do I create a single expression for this problem?

Regards
-- 
*Marcello Benigno B. de Barros Filho*
Prof. do Curso Superior de Tecnologia em Geoprocessamento - IFPB
Mestre em Ciências Geodésicas e Tecnologias da Geoinformação - UFPE
Doutorando em Tecnologia Ambiental e Recursos Hídricos - UFPE
http://profmarcello.blogspot.com
http://about.me/marcello.benigno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130527/fc8b364c/attachment.html>


More information about the grass-user mailing list