aboutsummaryrefslogtreecommitdiff
path: root/pkg/tbtables/fitsio/fitssppb/fsinit.x
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/tbtables/fitsio/fitssppb/fsinit.x')
-rw-r--r--pkg/tbtables/fitsio/fitssppb/fsinit.x18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkg/tbtables/fitsio/fitssppb/fsinit.x b/pkg/tbtables/fitsio/fitssppb/fsinit.x
new file mode 100644
index 00000000..85cd96de
--- /dev/null
+++ b/pkg/tbtables/fitsio/fitssppb/fsinit.x
@@ -0,0 +1,18 @@
+include "fitsio.h"
+
+procedure fsinit(funit,fname,block,status)
+
+# open a new FITS file with write access
+
+int funit # i file I/O pointer
+char fname[ARB] # i file name
+% character ffname*255
+int block # i FITS blocking factor
+int status # o error status
+
+begin
+
+call f77pak(fname ,ffname,255)
+
+call ftinit(funit,ffname,block,status)
+end