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

2013-05-29 Thread Moritz Lennert
On 28/05/13 21:33, Glynn Clements wrote: But for this specific case, it's probably simpler to just generate an integer version of the slope map (if it isn't already) and use r.reclass, e.g. r.reclass input=slope output=slope.reclass rules=-EOF 0 thru 2 = 1 3 thru 5 = 2

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

2013-05-29 Thread Hamish
Glynn wrote: But for this specific case, it's probably simpler to just generate an integer version of the slope map (if it isn't already) and use r.reclass, e.g.     r.reclass input=slope output=slope.reclass rules=- EOF     0 thru 2 = 1     3 thru 5 = 2     6 thru 10 = 3     11 thru 15

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

2013-05-29 Thread Glynn Clements
Hamish wrote: But for this specific case, it's probably simpler to just generate an integer version of the slope map (if it isn't already) and use r.reclass, e.g.     r.reclass input=slope output=slope.reclass rules=- EOF     0 thru 2 = 1     3 thru 5 = 2     6 thru 10 = 3    

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

2013-05-28 Thread Micha Silver
On 27/05/2013 22:36, Marcello Benigno wrote: 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

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

2013-05-28 Thread Marcello Benigno
Micha, Thank you very for helping me. 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

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

2013-05-28 Thread Glynn Clements
Marcello Benigno wrote: 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

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

2013-05-27 Thread Micha Silver
On 27/05/2013 16:41, Marcello Benigno wrote: I'm working on the preparation of the statement of Agricultural Capacity in general terms the final map has classes ranging 1-8.   To get this map I use three themes with their respective

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

2013-05-27 Thread Marcello Benigno
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