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 /pkg/xtools/icfit/icvshowd.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'pkg/xtools/icfit/icvshowd.x')
-rw-r--r-- | pkg/xtools/icfit/icvshowd.x | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkg/xtools/icfit/icvshowd.x b/pkg/xtools/icfit/icvshowd.x new file mode 100644 index 00000000..45b7ae85 --- /dev/null +++ b/pkg/xtools/icfit/icvshowd.x @@ -0,0 +1,48 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include "icfit.h" + +# IC_VSHOW -- Show fit parameters in verbose mode. + +procedure ic_vshowd (ic, file, cv, x, y, wts, npts, gt) + +pointer ic # ICFIT pointer +char file[ARB] # Output file +pointer cv # Curfit pointer +double x[ARB] # Ordinates +double y[ARB] # Abscissas +double wts[ARB] # Weights +int npts # Number of data points +pointer gt # Graphics tools pointer + +int fd, open() +errchk open, ic_fvshowd + +begin + fd = open (file, APPEND, TEXT_FILE) + IC_GT(ic) = gt + call ic_fvshowd (ic, cv, x, y, wts, npts, fd) + call close (fd) +end + + +# IC_XYSHOW -- List data as x, y, fit, weight lines on output. + +procedure ic_xyshowd (ic, file, cv, x, y, w, npts) + +pointer ic # ICFIT pointer +char file[ARB] # Output file +pointer cv # Pointer to curfit structure +double x[npts] # Array of x data values +double y[npts] # Array of y data values +double w[npts] # Array of weight data values +int npts # Number of data values + +int fd, open() +errchk open, ic_fxyshowd + +begin + fd = open (file, APPEND, TEXT_FILE) + call ic_fxyshowd (ic, cv, x, y, w, npts, fd) + call close (fd) +end |