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/ftghad.f | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pkg/tbtables/fitsio/ftghad.f (limited to 'pkg/tbtables/fitsio/ftghad.f') diff --git a/pkg/tbtables/fitsio/ftghad.f b/pkg/tbtables/fitsio/ftghad.f new file mode 100644 index 00000000..5c64d01a --- /dev/null +++ b/pkg/tbtables/fitsio/ftghad.f @@ -0,0 +1,30 @@ +C---------------------------------------------------------------------- + subroutine ftghad(iunit,curhdu,nxthdu) + +C return the starting byte address of the CHDU and the next HDU. + +C curhdu i starting address of the CHDU +C nxthdu i starting address of the next HDU + +C written by Wm Pence, HEASARC/GSFC, May, 1995 + + integer iunit,curhdu,nxthdu + +C COMMON BLOCK DEFINITIONS:-------------------------------------------- + integer nb,ne + parameter (nb = 20) + parameter (ne = 200) + integer bufnum,chdu,hdutyp,maxhdu,hdstrt,hdend,nxthdr,dtstrt + integer nxtfld + logical wrmode + common/ft0001/bufnum(199),chdu(nb),hdutyp(nb),maxhdu(nb), + & wrmode(nb),hdstrt(nb,ne),hdend(nb),nxthdr(nb),dtstrt(nb),nxtfld +C END OF COMMON BLOCK DEFINITIONS----------------------------------- + + integer ibuff,hdunum + + ibuff=bufnum(iunit) + hdunum=chdu(ibuff) + curhdu=hdstrt(ibuff,hdunum) + nxthdu=hdstrt(ibuff,hdunum+1) + end -- cgit