From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- pkg/tbtables/fitsio/ftgkyl.f | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pkg/tbtables/fitsio/ftgkyl.f (limited to 'pkg/tbtables/fitsio/ftgkyl.f') diff --git a/pkg/tbtables/fitsio/ftgkyl.f b/pkg/tbtables/fitsio/ftgkyl.f new file mode 100644 index 00000000..a4d355a5 --- /dev/null +++ b/pkg/tbtables/fitsio/ftgkyl.f @@ -0,0 +1,25 @@ +C-------------------------------------------------------------------------- + subroutine ftgkyl(iunit,keywrd,logval,comm,status) + +C read a logical 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 logval l 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*20 + logical logval + +C find the keyword and return value and comment as character strings + call ftgkey(iunit,keywrd,value,comm,status) + +C convert character string to logical + call ftc2l(value,logval,status) + end -- cgit