[GRASS-user] i.histo.match error
Luís Mário Ribeiro
luis.mario at adai.pt
Thu Mar 7 01:19:09 PST 2013
Thank you Ana and Nikos,
The version I have was instaled yesterday again and the error subsisted. I
found the log of the last change
(http://trac.osgeo.org/grass/changeset/54833) and manually edited my
"i.histo.match.py", changing "fs" for "separator".
All is working now but I have no idea how or why grass instaled an old
version :)
Best regards
luis
-----Mensagem original-----
De: Anna Kratochvílová [mailto:kratochanna at gmail.com]
Enviada: quarta-feira, 6 de Março de 2013 19:57
Para: Luís Mário Ribeiro
Cc: Nikos Alexandris; GRASS user list
Assunto: Re: [GRASS-user] i.histo.match error
On Wed, Mar 6, 2013 at 11:16 AM, Luís Mário Ribeiro <luis.mario at adai.pt>
wrote:
> Hello list,
>
> Changed the names of 2 files to not have any "." and rerun
> histo.match. A different error showed.
> I copy below the output window contents. It refers to an error in "
r.stats"
> (ERROR: Sorry, <fs> is not a valid parameter)
It seems that you need a newer version of i.histo.match, this was fixed
couple of weeks ago [1].
Regards,
Anna
[1]
http://trac.osgeo.org/grass/changeset/54833/grass-addons/grass7/imagery/i.hi
sto.match/i.histo.match.py
> Does anyone know what I'm doing wrong?
>
> _________
> (Wed Mar 06 10:12:17 2013)
>
> i.histo.match --overwrite
> input=2030312007052_3 at histomatch,2030322007052_3 at histomatch max=1000
> Description:
> Generates area statistics for raster map layers.
> Keywords:
> raster, statistics
> Usage:
> r.stats [-1AacplgxrnNCi] input=name[,name,...] [output=name]
> [separator=character] [nv=string] [nsteps=value] [--overwrite]
> [--verbose] [--quiet]
> Flags:
> -1 One cell (range) per line
> -A Print averaged values instead of intervals
> -a Print area totals
> -c Print cell counts
> -p Print APPROXIMATE percents (total percent may not be
> 100%)
> -l Print category labels
> -g Print grid coordinates (east and north)
> -x Print x and y (column and row)
> -r Print raw indexes of fp ranges (fp maps only)
> -n Suppress reporting of any NULLs
> -N Suppress reporting of NULLs when all values are NULL
> -C Report for cats fp ranges (fp maps only)
> -i Read fp map as integer (use map's quant rules)
> --o Allow output files to overwrite existing files
> --v Verbose module output
> --q Quiet module output
> Parameters:
> input Name of input raster map(s)
> output Name for output file (if omitted or "-" output
> to stdout)
> separator Field separator
> Special characters: newline, space, comma, tab
> default: space
> nv String representing no data cell value
> default: *
> nsteps Number of fp subranges to collect stats from
> default: 255
> ERROR: Sorry, <fs> is not a valid parameter
> Description:
> Generates area statistics for raster map layers.
> Keywords:
> raster, statistics
> Usage:
> r.stats [-1AacplgxrnNCi] input=name[,name,...] [output=name]
> [separator=character] [nv=string] [nsteps=value] [--overwrite]
> [--verbose] [--quiet]
> Flags:
> -1 One cell (range) per line
> -A Print averaged values instead of intervals
> -a Print area totals
> -c Print cell counts
> -p Print APPROXIMATE percents (total percent may not be
> 100%)
> -l Print category labels
> -g Print grid coordinates (east and north)
> -x Print x and y (column and row)
> -r Print raw indexes of fp ranges (fp maps only)
> -n Suppress reporting of any NULLs
> -N Suppress reporting of NULLs when all values are NULL
> -C Report for cats fp ranges (fp maps only)
> -i Read fp map as integer (use map's quant rules)
> --o Allow output files to overwrite existing files
> --v Verbose module output
> --q Quiet module output
> Parameters:
> input Name of input raster map(s)
> output Name for output file (if omitted or "-" output
> to stdout)
> separator Field separator
> Special characters: newline, space, comma, tab
> default: space
> nv String representing no data cell value
> default: *
> nsteps Number of fp subranges to collect stats from
> default: 255
> ERROR: Sorry, <fs> is not a valid parameter (Wed Mar 06 10:12:25 2013)
> Command finished (8 sec)
>
> _____
>
>
>
>
> -----Mensagem original-----
> De: grass-user-bounces at lists.osgeo.org
> [mailto:grass-user-bounces at lists.osgeo.org] Em nome de Luís Mário
> Ribeiro
> Enviada: quarta-feira, 6 de Março de 2013 09:30
> Para: 'Nikos Alexandris'
> Cc: grass-user at lists.osgeo.org
> Assunto: Re: [GRASS-user] i.histo.match error
>
> [>]Good morning and thanks... Will try changing the "." (which was
> added by Grass when performing i.topo.corr).
> Best regards, luis
>
>
>
>
> Luís Mário Ribeiro wrote:
> ..
>> Been using histo.match thru the GUI. The command that appears in the
>> output window is (in this example just 3 images):
>
>> i.histo.match
>>
>
input=normalized.LT52030312007052MPS00_tr_reflec3_int at histomatch,normalized.
>> LT52030312007052MPS00_tr_reflec4_int at histomatch,normalized.LT52030312
>> 0
>> 07180 M PS00_tr_reflec3_int at histomatch max=1000
> ..
>
> I guess (not sure though) it is the same error once pointed to me by
> Luca
> Delucchi: the "." in the input raster map names is not allowed :-(.
>
> You need to rename them... Maybe a quick test first to be sure.
> Shrink your region and test. Be sure you have beforehand a MASK or
> else which you use to set the computational region. Or, export your
> current working region in a vector map? (<-- v.in.region).
>
> Hope it works, Nikos
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
> _______________________________________________
> 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