From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- math/iminterp/asigeti.x | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 math/iminterp/asigeti.x (limited to 'math/iminterp/asigeti.x') 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 + +# 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 -- cgit