1

I have 120 maps with the same name pattern: arc_01, arc_02, arc_03, arc_(...) and want to sum all of them in one.

Does anyone know how to do it automatically in GRASS GIS raster calculator?

  • Welcome to gis.stackexchange! Please note that a good question on this site is expected to show some degree of research on your part, i.e. what you have tried and - if applicable - code so far. For more info, you can check our faq. – underdark Sep 8 '16 at 19:21
  • 2
    Also, please do not double-post here and mailing list. – mankoff Sep 8 '16 at 19:41
7

You should consider using r.series. Perhaps something as follows will work in your case:

r.series input="`g.list pattern='arc_*' sep=,`" output=arc_sum method=sum

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.