[GRASS-user] Export multiple rasters into a single textfile

Moritz Lennert mlennert at club.worldonline.be
Thu Nov 21 01:29:36 PST 2013


On 20/11/13 14:00, Johannes Radinger wrote:
> Hi,
>
> what is the fastest/most convenient way to export multiple rasters into
> a simple single text file (e.g. csv) so that the rows represent the
> single cells and the columns the values of the single rasters at that
> specific cell? The rasters (n=12) have all the same resolution and
> consist of each appr. 250000 cells.
>
> What came into my mind was to generate a point-vector (center points of
> each raster cell) and then query all rasters at the locations of these
> points (250000) but I think there must be a more direct way available in
> GRASS?

r.stats -1 input=raster1,raster2,etc

Moritz


More information about the grass-user mailing list