[GRASS5] [bug #2116] (grass) error when trying to execute the function to r.binfer
Request Tracker
grass-bugs at intevation.de
Fri Sep 19 17:53:32 EDT 2003
this bug's URL: http://intevation.de/rt/webrt?serial_num=2116
-------------------------------------------------------------------------
Subject: error when trying to execute the function to r.binfer
Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Downloaded precompiled Binaries
GRASS Version: Current Stable: 5.0.2
I try to use the function to r.binfer but I receive an error: Prior probabilities don't sum to 1.0 (found sum of 0.000000).
I tested in the version (Current Stable: 5.0.2), using the conectiva linux 9, and scripts of example (avalanche, bugs).
seeing the code source of the archive table.c, the 0 variable ddd does not receive value some. This 0 variable is used for a test that finishes failing and printing the error message.
prior_check = 0.0;
for(temp2 = temp->next;temp2 != (struct symtab *)0;temp2 = temp2->next ) {
prior_check += temp2->element.val->desc.infr->prior_prob;
}
if ( ( prior_check < 0.995 ) || ( prior_check > 1.005 ) ) {
fprintf(stderr,"Error: Prior probabilities don't sum to 1.0 (found sum of %f)\n", prior_check);
exit(0);
}
thanks in advance
-----------------------------
Jean Samarone Almeida Ferreira
jean at ucpel.tche.br
Ciência da Computação - UCPel
----------------------------
-------------------------------------------- Managed by Request Tracker
More information about the grass-dev
mailing list