Details Ticket 2116


Comment | Reply | Take | Resolve


Serial Number 2116
Subject error when trying to execute the function to r.binfer
Area bug
Queue grass
Requestors jean@ucpel.tche.br
Owner none
Status open
Last User Contact Never contacted
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Fri Sep 19 23:53:31 2003 (5 yr ago)
Created Fri Sep 19 23:53:31 2003 (5 yr ago)

Transaction History Ticket 2116


Fri, Sep 19 2003 23:53:31    Request created by guest  
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@ucpel.tche.br
Ciência da Computação - UCPel
---------------------------- 










Comment | Reply | Take | Resolve

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request