Re: [GRASS-user] problem with export of raster data

2009-02-24 Thread FAROUX STEPHANIE
Markus Neteler wrote: On Mon, Feb 23, 2009 at 12:15 PM, FAROUX STEPHANIE stephanie.far...@meteo.fr wrote: Hello I try to export a raster integer map whose values range from - to 5880712. How can i specify that i want integer 4 bytes and not integer 2 bytes (it makes integer 2 bytes)??

Re: [GRASS-user] problem with export of raster data

2009-02-24 Thread Markus Metz
FAROUX STEPHANIE wrote: Markus Neteler wrote: On Mon, Feb 23, 2009 at 12:15 PM, FAROUX STEPHANIE stephanie.far...@meteo.fr wrote: Hello I try to export a raster integer map whose values range from - to 5880712. How can i specify that i want integer 4 bytes and not integer 2 bytes (it

[GRASS-user] convert r.report output to spreadsheet format

2009-02-24 Thread maning sambale
Hi, Looking for tips in transforming r.report output into a spreadsheet like format. -- cheers, maning -- Freedom is still the most radical idea of all -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/

Re: [GRASS-user] convert r.report output to spreadsheet format

2009-02-24 Thread Jonah Duckles
Maning, Depends on what you are doing with r.report, but you can often use r.stats instead, to output a csv file (look at docs for r.stats if you want percent or cell counts, my example assumes area counts). r.stats -an fs=, input=raster1,raster2 If you need to do a unit conversion ie m^2 to

Re: [GRASS-user] convert r.report output to spreadsheet format

2009-02-24 Thread Giovanni Pasini
maning sambale ha scritto: Hi, Looking for tips in transforming r.report output into a spreadsheet like format. Hi, I use awk (change NF and the other fields $*): r.report -n map=gri_1000_in,dem2_idw_100_slope_rec units=h,p,c | awk 'BEGIN {FS=|;OFS=|} !/---/ NF==7 {intest=$2} NF==8

Re: [GRASS-user] mapset cell size grouping

2009-02-24 Thread Nikos Alexandris
M S: Is it logical to use mapsets for different raster modeling cell sizes? I had the same problem: I needed to switch frequently between 250 and 500m (MODIS products). I tried the mutltiple-mapsets approach and found it not bad. Nonetheless, I had _not_ too many images to process (and mainly

Re: [GRASS-user] mapset cell size grouping

2009-02-24 Thread Hamish
Is it logical to use mapsets for different raster modeling cell sizes? sure, use whatever works. you can use g.mapset (no s) to change mapsets on the fly, but it might help to change the path (PS1= enviro var) to include the mapset name instead of the location name in the prompt. that's set

Re: [GRASS-user] Problem using i.cluster on GRASS GIS 6.4.0RC3

2009-02-24 Thread Hamish
sindile.bidla wrote: I get the following error when using i.cluster: ERROR: Unable to create report file (null) This is how I wrote the commands i.group group=lsat1 subgroup=lsat1

Re: [GRASS-user] convert r.report output to spreadsheet format

2009-02-24 Thread maning sambale
Thanks! An example of the r.report output: |-| | Category Information | | cell| % | | #|description | hectares|count| cover|

Re: [GRASS-user] convert r.report output to spreadsheet format

2009-02-24 Thread Miha Staut
If I understood you correctly you want to convert the below text formatted table in a spreadsheet like format. If this is the case why do not you try the OpenOffice.org calc possibility of fixed delimitation. Save the output of r.report in a file with a .csv suffix. Then open it in ooo calc and