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 <[EMAIL PROTECTED]>
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user