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/fttbit.f | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pkg/tbtables/fitsio/fttbit.f (limited to 'pkg/tbtables/fitsio/fttbit.f') 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 -- cgit