aboutsummaryrefslogtreecommitdiff
path: root/sys/imfort/imdele.x
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/imfort/imdele.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/imfort/imdele.x')
-rw-r--r--sys/imfort/imdele.x21
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/imfort/imdele.x b/sys/imfort/imdele.x
new file mode 100644
index 00000000..9112021c
--- /dev/null
+++ b/sys/imfort/imdele.x
@@ -0,0 +1,21 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# IMDELE -- Delete an image (both the header file and the pixel file).
+# It is not an error if there is no pixel file.
+
+procedure imdele (image, ier)
+
+% character*(*) image
+int ier # receives error status
+
+pointer sp, imname
+
+begin
+ call smark (sp)
+ call salloc (imname, SZ_PATHNAME, TY_CHAR)
+
+ call f77upk (image, Memc[imname], SZ_PATHNAME)
+ call imdelx (Memc[imname], ier)
+
+ call sfree (sp)
+end