[GRASS-user] grass 6.3.0 solaris 10 install errors

Glynn Clements glynn at gclements.plus.com
Wed Oct 15 06:22:25 EDT 2008


Brian Clark wrote:

> 3) Error with unresolved variable FP_NAN
> 
> 
>     To fix edited file under build directory /imagery/i.atcorr/main.cpp
>     and added the variable FP_NAN:

While that will allow it to compile, it will still produce incorrect
output (zeroes where it should produce nulls).

If you're going to the trouble of manually editing that file, you may
as well fix the bug at the same time, by changing the line:

	if(isnan(vis[col]) || isnan(alt[col]) || isnan(buf[col])) {buf[col] = FP_NAN; continue;}

to the code used in 6.4 and 7.0:

	if(vis && G_is_f_null_value(&vis[col]) || 
	   alt && G_is_f_null_value(&alt[col]) || 
	          G_is_f_null_value(&buf[col]))
	{
	    G_set_f_null_value(&buf[col], 1);
	    continue;
	}

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list