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/curfit/cvcoeff.gx | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'math/curfit/cvcoeff.gx')
-rw-r--r-- | math/curfit/cvcoeff.gx | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/math/curfit/cvcoeff.gx b/math/curfit/cvcoeff.gx new file mode 100644 index 00000000..46c58c0f --- /dev/null +++ b/math/curfit/cvcoeff.gx @@ -0,0 +1,26 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +$if (datatype == r) +include "curfitdef.h" +$else +include "dcurfitdef.h" +$endif + +# CVCOEFF -- Procedure to fetch the number and magnitude of the coefficients. + +$if (datatype == r) +procedure cvcoeff (cv, coeff, ncoeff) +$else +procedure dcvcoeff (cv, coeff, ncoeff) +$endif + +pointer cv # curve descriptor +PIXEL coeff[ARB] # the coefficients of the fit +int ncoeff # the number of coefficients + +begin + ncoeff = CV_NCOEFF(cv) + + # fetch coefficients + call amov$t (COEFF(CV_COEFF(cv)), coeff, ncoeff) +end |