aboutsummaryrefslogtreecommitdiff
path: root/pkg/tbtables/fitsio/ftc2ll.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/ftc2ll.f
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'pkg/tbtables/fitsio/ftc2ll.f')
-rw-r--r--pkg/tbtables/fitsio/ftc2ll.f18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkg/tbtables/fitsio/ftc2ll.f b/pkg/tbtables/fitsio/ftc2ll.f
new file mode 100644
index 00000000..83bb6d19
--- /dev/null
+++ b/pkg/tbtables/fitsio/ftc2ll.f
@@ -0,0 +1,18 @@
+C----------------------------------------------------------------------
+ subroutine ftc2ll(cval,lval,status)
+C convert a character string to a logical value
+C (assumes that the input string is left justified)
+ integer status
+ logical lval
+ character*(*) cval
+
+ if (status .gt. 0)return
+
+C convert character string to logical
+ if (cval(1:1) .eq.'T')then
+ lval=.true.
+ else
+C any other character is considered false
+ lval=.false.
+ end if
+ end