aboutsummaryrefslogtreecommitdiff
path: root/pkg/tbtables/fitsio/fttbit.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/fttbit.f
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'pkg/tbtables/fitsio/fttbit.f')
-rw-r--r--pkg/tbtables/fitsio/fttbit.f18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkg/tbtables/fitsio/fttbit.f b/pkg/tbtables/fitsio/fttbit.f
new file mode 100644
index 00000000..3733f100
--- /dev/null
+++ b/pkg/tbtables/fitsio/fttbit.f
@@ -0,0 +1,18 @@
+C----------------------------------------------------------------------
+ subroutine fttbit(bitpix,status)
+
+C test that bitpix has a legal value
+
+ integer bitpix,status
+ character value*20
+
+ if (status .gt. 0)return
+
+ if (bitpix .ne. 8 .and. bitpix .ne. 16 .and. bitpix .ne. 32
+ & .and. bitpix .ne. -32 .and. bitpix .ne. -64)then
+ status=211
+ write(value,1000)bitpix
+1000 format(i20)
+ call ftpmsg('Illegal BITPIX value: '//value)
+ end if
+ end