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 /pkg/utilities/nttools/trebin/tuiset.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/utilities/nttools/trebin/tuiset.x')
-rw-r--r-- | pkg/utilities/nttools/trebin/tuiset.x | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkg/utilities/nttools/trebin/tuiset.x b/pkg/utilities/nttools/trebin/tuiset.x new file mode 100644 index 00000000..427df021 --- /dev/null +++ b/pkg/utilities/nttools/trebin/tuiset.x @@ -0,0 +1,26 @@ +include "trebin.h" + +# tuiset -- set interpolation type +# +# +# P.E. Hodge, 18-Apr-88 Subroutine created + +procedure tuiset (func, i_func) + +char func[ARB] # i: interpolation function +int i_func # o: interpolation function code +#-- +int strncmp() + +begin + if (func[1] == 'n') + i_func = I_NEAREST + else if (func[1] == 'l') + i_func = I_LINEAR + else if (strncmp (func, "poly3", 5) == 0) + i_func = I_POLY3 + else if (func[1] == 's') + i_func = I_SPLINE + else + call error (1, "unknown interpolation function") +end |