From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- pkg/tbtables/fitsio/ftghdn.f | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pkg/tbtables/fitsio/ftghdn.f (limited to 'pkg/tbtables/fitsio/ftghdn.f') diff --git a/pkg/tbtables/fitsio/ftghdn.f b/pkg/tbtables/fitsio/ftghdn.f new file mode 100644 index 00000000..a93a4588 --- /dev/null +++ b/pkg/tbtables/fitsio/ftghdn.f @@ -0,0 +1,26 @@ +C---------------------------------------------------------------------- + subroutine ftghdn(iunit,hdunum) + +C return the number of the current header data unit. The +C first HDU (the primary array) is number 1. + +C iunit i fortran unit number +C hdunum i returned number of the current HDU +C +C written by Wm Pence, HEASARC/GSFC, March, 1993 + + integer iunit,hdunum + +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----------------------------------- + + hdunum=chdu(bufnum(iunit)) + end -- cgit