aboutsummaryrefslogtreecommitdiff
path: root/noao/imred/vtel/writetape.cl
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/imred/vtel/writetape.cl
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/imred/vtel/writetape.cl')
-rw-r--r--noao/imred/vtel/writetape.cl45
1 files changed, 45 insertions, 0 deletions
diff --git a/noao/imred/vtel/writetape.cl b/noao/imred/vtel/writetape.cl
new file mode 100644
index 00000000..76bb23f2
--- /dev/null
+++ b/noao/imred/vtel/writetape.cl
@@ -0,0 +1,45 @@
+#{ WRITETAPE -- Write five images to a vacuum telescope tape. The
+# script accepts the name of the mag tape device and the general input
+# image filename from the user. Writetape appends a digit [1-5] to the
+# file name for each file to be written.
+
+# getmtape,s,a,,,,Mag tape device to write to
+# getname,s,a,,,,Root filename for the 5 images
+# magtape,s,h
+# imname,s,h
+
+{
+
+ imname = getname
+ magtape = getmtape
+
+ if (access(imname//"1.imh")) {
+ writevt (imname//"1", magtape//"1600[1]")
+ } else {
+ print (imname//"1 not accessable")
+ }
+
+ if (access(imname//"2.imh")) {
+ writevt (imname//"2", magtape//"1600[2]")
+ } else {
+ print (imname//"2 not accessable")
+ }
+
+ if (access(imname//"3.imh")) {
+ writevt (imname//"3", magtape//"1600[3]")
+ } else {
+ print (imname//"3 not accessable")
+ }
+
+ if (access(imname//"4.imh")) {
+ writevt (imname//"4", magtape//"1600[4]")
+ } else {
+ print (imname//"4 not accessable")
+ }
+
+ if (access(imname//"5.imh")) {
+ writevt (imname//"5", magtape//"1600[5]")
+ } else {
+ print (imname//"5 not accessable")
+ }
+}