[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unwrap modulo 2pi
"Wim G. Bouwman" <w.g.bouwman@iri.tudelft.nl> writes:
> Dear Graham,
> The function is written in PV-WAVE and NINT is a standard function giving
> the integer value as a long. I am sure that something similar does exist
> in IDL.
> In PV-WAVE you have also FIX, which returns the integer value as an
> integer.
Just curious, how does NINT do the rounding? In IDL there are FLOOR,
CEIL and ROUND which have well-behaved rounding properties (round up,
down and to-nearest, respectively). The well-known LONG function is
not consistent depending on the sign of its argument.
Craig
--
--------------------------------------------------------------------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
--------------------------------------------------------------------------