[GRASS-user] Exporting raster maps into structured ascii file
(X, Y, value, ...., value)
Nikos Alexandris
nikos.alexandris at felis.uni-freiburg.de
Wed Nov 5 09:31:58 EST 2008
On Wed, 2008-11-05 at 10:38 +0000, Corrado wrote:
> Dear friends,
>
> I have some 36 raster maps in one location, in the mapset PERMANENT: 12 for
> the average monthly precipitation, 12 for the min temperature, 12 for the max
> temperature. They are on the same region at the same resolution, with nsres =
> ewres (2000).
>
> I would like to ouput (export) them into a text (CSV) file in the format:
>
> coordinate X, coordinate Y, value from map 1, ....., value from map 36
>
> is that possible? if it is possible, how?
>
> Thanks!
Corrado,
check also if r.stats -x does what you need. I created some .csv file
that look like
row,column,map1value,map2value,map3value,...
With r.stats -gx you can also have the coordinates printed out.
I have a terrible (=from beginners like me) script.
Cheers, Nikos
More information about the grass-user
mailing list