aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/photcal/debug/dginl.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /noao/digiphot/photcal/debug/dginl.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/digiphot/photcal/debug/dginl.x')
-rw-r--r--noao/digiphot/photcal/debug/dginl.x30
1 files changed, 30 insertions, 0 deletions
diff --git a/noao/digiphot/photcal/debug/dginl.x b/noao/digiphot/photcal/debug/dginl.x
new file mode 100644
index 00000000..62e93c1b
--- /dev/null
+++ b/noao/digiphot/photcal/debug/dginl.x
@@ -0,0 +1,30 @@
+include "debug.h"
+
+# DG_INLDUMP -- Dump the NLFIT and INLFIT structures into a file.
+
+procedure dg_inldump (in, nl)
+
+pointer in # INLFIT descriptor
+pointer nl # NLFIT descriptor
+
+int fd
+
+int open()
+
+begin
+ # Open the dump file.
+ iferr (fd = open (DUMPFILE, APPEND, TEXT_FILE))
+ return
+
+ # Put in the time stamp.
+ call dg_ptime (fd, "dg_inldump")
+
+ # Dump the NLFIT structure.
+ call nl_dumpr (fd, nl)
+
+ # Dump the INLFIT structure.
+ call in_dumpr (fd, in)
+
+ # Close the dump file.
+ call close (fd)
+end