[GRASS-user] Exporting raster maps into structured ascii file (X, Y, value, ...., value)

Daniel Victoria daniel.victoria at gmail.com
Wed Nov 5 05:51:12 EST 2008


Hi,

Take a look at the r.what man page...
http://grass.osgeo.org/gdp/html_grass63/r.what.html

I did something similar but for a few points. What you will have to do
is create a list with the x,y coordinates that you want and then pass
it to r.what

You could create your x,y list by hand or, using r.to.vect and convert
one of your rasters to points...

Cheers
Daniel


On Wed, Nov 5, 2008 at 8:38 AM, Corrado <ct529 at york.ac.uk> 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 Topi
>
> Global Climate Change & Biodiversity Indicators
> Area 18,Department of Biology
> University of York, York, YO10 5YW, UK
> Phone: + 44 (0) 1904 328645, E-mail: ct529 at york.ac.uk
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>


More information about the grass-user mailing list