aboutsummaryrefslogtreecommitdiff
path: root/pkg/tbtables/fitsio/ftghdn.f
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /pkg/tbtables/fitsio/ftghdn.f
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/tbtables/fitsio/ftghdn.f')
-rw-r--r--pkg/tbtables/fitsio/ftghdn.f26
1 files changed, 26 insertions, 0 deletions
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