diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /math/iminterp/asigeti.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
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 |