aboutsummaryrefslogtreecommitdiff
path: root/pkg/tbtables/fitsio/ftgkye.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/ftgkye.f
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'pkg/tbtables/fitsio/ftgkye.f')
-rw-r--r--pkg/tbtables/fitsio/ftgkye.f26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkg/tbtables/fitsio/ftgkye.f b/pkg/tbtables/fitsio/ftgkye.f
new file mode 100644
index 00000000..9477ba34
--- /dev/null
+++ b/pkg/tbtables/fitsio/ftgkye.f
@@ -0,0 +1,26 @@
+C--------------------------------------------------------------------------
+ subroutine ftgkye(iunit,keywrd,rval,comm,status)
+
+C read a real*4 value and the comment string from a header record
+C
+C iunit i fortran input unit number
+C keywrd c keyword name
+C OUTPUT PARAMETERS:
+C rval r output keyword value
+C comm c output keyword comment
+C status i returned error status (0=ok)
+C
+C written by Wm Pence, HEASARC/GSFC, June 1991
+
+ character*(*) keywrd,comm
+ integer iunit,status
+ character value*35
+ real rval
+
+C find the keyword and return value and comment as character strings
+ call ftgkey(iunit,keywrd,value,comm,status)
+
+C convert character string to real
+C datatype conversion will be performed if necessary and if possible
+ call ftc2r(value,rval,status)
+ end