FPUFIX
This is a utility routine to examine a variable and fix problems that will create floating point underflow errors.
FANNING SOFTWARE CONSULTING David Fanning, Ph.D. 1645 Sheely Drive Fort Collins, CO 80526 USA Phone: 970-221-0438 E-mail: david@idlcoyote.com Coyote's Guide to IDL Programming: http://www.idlcoyote.com
Utilities
fixedData = FPUFIX(data)
data : A numerical variable to be checked for values that will cause floating point underflow errors. Suspect values are set to 0.
None.
fixedData: The output is the same as the input, except that any values that will cause subsequent floating point underflow errors are set to 0.
None.
data = FPTFIX(data)
None.
Written by David W. Fanning, from Mati Meron's example FPU_FIX. Mati's program is more robust that this (ftp://cars3.uchicago.edu/midl/), but this serves my needs and doesn't require other programs from Mati's library. 24 February 2006.