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/xtools/clgcurfit.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/xtools/clgcurfit.x')
-rw-r--r-- | pkg/xtools/clgcurfit.x | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkg/xtools/clgcurfit.x b/pkg/xtools/clgcurfit.x new file mode 100644 index 00000000..89818c1a --- /dev/null +++ b/pkg/xtools/clgcurfit.x @@ -0,0 +1,29 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <math/curfit.h> + +# CLGCURFIT -- Get the curve type and order for the curfit package. +# +# Prompt1 is issued for the curve type. The curve type is entered +# as a minimum abbreviation string with clgwrd. The allowed strings +# are legendre, chebyshev, and spline3. Prompt2 is issued to get +# the order. + +procedure clgcurfit (prompt1, prompt2, curve_type, order) + +char prompt1[ARB], prompt2[ARB] +int curve_type +int order + +char str[SZ_LINE] +int i, curtypes[3], clgwrd(), clgeti() +errchk clgwrd + +data curtypes/LEGENDRE, CHEBYSHEV, SPLINE3/ + +begin + + i = clgwrd (prompt1, str, SZ_LINE, ",legendre,chebyshev,spline3,") + curve_type = curtypes[i] + order = clgeti (prompt2) +end |