aboutsummaryrefslogtreecommitdiff
path: root/pkg/tbtables/fitsio/ftmrec.f
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 /pkg/tbtables/fitsio/ftmrec.f
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'pkg/tbtables/fitsio/ftmrec.f')
-rw-r--r--pkg/tbtables/fitsio/ftmrec.f25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/tbtables/fitsio/ftmrec.f b/pkg/tbtables/fitsio/ftmrec.f
new file mode 100644
index 00000000..aee11a60
--- /dev/null
+++ b/pkg/tbtables/fitsio/ftmrec.f
@@ -0,0 +1,25 @@
+C--------------------------------------------------------------------------
+ subroutine ftmrec(ounit,nkey,record,status)
+
+C modify the nth keyword in the CHU, by replacing it with the
+C input 80 character string.
+C
+C ounit i fortran output unit number
+C nkey i sequence number (starting with 1) of the keyword to read
+C record c 80-character string to replace the record with
+C OUTPUT PARAMETERS:
+C status i output error status (0 = ok)
+C
+C written by Wm Pence, HEASARC/GSFC, June 1991
+
+ integer ounit,nkey,status
+ character*(*) record
+ character rec*80
+
+C find the old keyword; just use REC as a temporary variable
+ call ftgrec(ounit,nkey,rec,status)
+
+ rec=record
+C overwrite the keyword with the new record
+ call ftmodr(ounit,rec,status)
+ end