[GRASS-user] Concatenate raster values

Nikos Alexandris nik at nikosalexandris.net
Tue May 30 08:34:59 PDT 2017


Dear community,

is it possible to concatenate raster pixel values using r.mapcalc or/and
existing modules?


Something like the following examples

- expression = "product_20 = concatenate(20, input_map)":  a value of 88
  in the "input_map" would mean the value 2088 (or 20088) in the output
  "product_20" map.

- expression = "product_25 = concatenate(25, input_map)":  a value of 13
in the "input_map" would result in the value 2513 (or 25013) in the output
"product_25" map.

- expression = "product_nb = concatenate( product_20, product_25):
finally, the output pixel value, derived from the above examples, would be
"2008825013".

Thank you, Nikos


More information about the grass-user mailing list