diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /math/iminterp/asigeti.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'math/iminterp/asigeti.x')
-rw-r--r-- | math/iminterp/asigeti.x | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/math/iminterp/asigeti.x b/math/iminterp/asigeti.x new file mode 100644 index 00000000..fbf1ddc1 --- /dev/null +++ b/math/iminterp/asigeti.x @@ -0,0 +1,25 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include "im1interpdef.h" +include <math/iminterp.h> + +# ASIGETI -- Procedure to fetch an asi integer parameter + +int procedure asigeti (asi, param) + +pointer asi # interpolant descriptor +int param # parameter to be fetched + +begin + switch (param) { + case II_ASITYPE: + return (ASI_TYPE(asi)) + case II_ASINSAVE: + return (ASI_NSINC(asi) * ASI_NINCR(asi) + ASI_NCOEFF(asi) + + ASI_SAVECOEFF) + case II_ASINSINC: + return (ASI_NSINC(asi)) + default: + call error (0, "ASIGETI: Unknown ASI parameter.") + } +end |