aboutsummaryrefslogtreecommitdiff
path: root/pkg/tbtables/fitsio/ftgkyj.f
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 /pkg/tbtables/fitsio/ftgkyj.f
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/tbtables/fitsio/ftgkyj.f')
-rw-r--r--pkg/tbtables/fitsio/ftgkyj.f25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/tbtables/fitsio/ftgkyj.f b/pkg/tbtables/fitsio/ftgkyj.f
new file mode 100644
index 00000000..ff0b84da
--- /dev/null
+++ b/pkg/tbtables/fitsio/ftgkyj.f
@@ -0,0 +1,25 @@
+C--------------------------------------------------------------------------
+ subroutine ftgkyj(iunit,keywrd,intval,comm,status)
+
+C read an integer 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 intval i 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,intval,status
+ character value*35
+
+C find the keyword and return value and comment as character strings
+ call ftgkey(iunit,keywrd,value,comm,status)
+
+C convert character string to integer
+C datatype conversion will be performed if necessary and if possible
+ call ftc2i(value,intval,status)
+ end