FORTRAN Generation
(/./ftp/cats/J/ApJ/838/45)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/838/45 into FORTRAN code for loading all data files into arrays.

Note that special values are assigned to unknown or unspecified numbers (also called NULL numbers); when necessary, the coordinate components making up the right ascension and declination are converted into floating-point numbers representing these angles in degrees.



      program load_ReadMe
C=============================================================================
C  F77-compliant program generated by readme2f_1.81 (2015-09-23), on 2024-Apr-20
C=============================================================================
*  This code was generated from the ReadMe file documenting a catalogue
*  according to the "Standard for Documentation of Astronomical Catalogues"
*  currently in use by the Astronomical Data Centers (CDS, ADC, A&A)
*  (see full documentation at URL http://vizier.u-strasbg.fr/doc/catstd.htx)
*  Please report problems or questions to   
C=============================================================================

      implicit none
*  Unspecified or NULL values, generally corresponding to blank columns,
*  are assigned one of the following special values:
*     rNULL__    for unknown or NULL floating-point values
*     iNULL__    for unknown or NULL   integer      values
      real*4     rNULL__
      integer*4  iNULL__
      parameter  (rNULL__=--2147483648.)  	! NULL real number
      parameter  (iNULL__=(-2147483647-1))	! NULL int  number
      integer    idig			! testing NULL number

C=============================================================================
Cat. J/ApJ/838/45  eta Carinae obs. around the 2014 X-ray minimum  (Corcoran+, 2017)
*================================================================================
*The 2014 X-ray minimum of {eta} Carinae as seen by Swift.
*    Corcoran M.F., Liburd J., Morris D., Russell C.M.P., Hamaguchi K.,
*    Gull T.R., Madura T.I., Teodoro M., Moffat A.F.J., Richardson N.D.,
*    Hillier D.J., Damineli A., Groh J.H.
*   <Astrophys. J., 838, 45-45 (2017)>
*   =2017ApJ...838...45C    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table1.dat'	! Swift X-ray telescope observations

      integer*4 nr__
      parameter (nr__=91)	! Number of records
      character*88 ar__   	! Full-size record

      integer*4     ObsID      (nr__) ! Swift Observation ID
      character*10  Date       (nr__) ! ("Y/M/D") UT date of the Swift observation
      real*8        MJD        (nr__) ! (d) [56752.7/57018.1] Modified Julian Date,
*                                      JD-2400000.5
      real*4        Delta      (nr__) ! (d) [0.01/1.7] Observation length in fraction
*                                      of a day ({Delta})
      real*4        Phi        (nr__) ! [2.9/3.1] Phase ({phi}) (G1)
      real*4        Exp        (nr__) ! (s) [348/5671]? Exposure time
      real*4        Flux       (nr__) ! (10-13W/m2) [0.03/3.8] Swift-XRT 2-10keV Flux,
*                                      in 10^-10^erg/s/cm2
      real*4        e_Flux     (nr__) ! (10-13W/m2) [0.01/1] Uncertainty in Flux
      real*4        HR         (nr__) ! [-0.8/0.4] Hardness Ratio (1)
      real*4        e_HR       (nr__) ! [0.02/0.2] Uncertainty in HR
      real*4        NH         (nr__) ! (10+22cm-2) [2.3/46.5] Column density (N_H_)
      real*4        E_NH       (nr__) ! (10+22cm-2) [0.1/83] Upper uncertainty in NH
      real*4        e_NH_1     (nr__) ! (10+22cm-2) [0.1/37] Lower uncertainty in NH
*Note (1): Hardness ratios calculated according to Eq. 1:
*          HR=(C_7_-C_3_)/(C_7_+C_3_) where C_7_ and C_3_ are the gross counts
*          in the 7+/-0.5 and 3+/-0.5keV bands, respectively.

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table2.dat'	! Log of RXTE observations and corrected fluxes

      integer*4 nr__1
      parameter (nr__1=1345)	! Number of records
      character*76 ar__1  	! Full-size record

      character*15  Obs        (nr__1) ! Observing Sequence, YYYYMMDDHH UT
      real*8        MJD_1      (nr__1) ! (d) [50122.6/55923.8] Modified Julian Date,
*                                     JD-2400000.5
      real*4        Delta_1    (nr__1) ! (d) [0.001/0.04] Observation length in fraction
*                                     of a day ({Delta})
      real*4        Phi_1      (nr__1) ! [-0.4/2.6] Phase ({phi}) (G1)
      integer*4     Exp_1      (nr__1) ! (s) [16/2672]? Exposure time
      real*4        Flux_1     (nr__1) ! (10-13W/m2) [0.2/3.7] RXTE 2-10keV flux,
*                                     in 10^-10^erg/s/cm2
      real*4        e_Flux_1   (nr__1) ! (10-13W/m2) [0.01/0.3] Uncertainty in Flux
      real*4        Fluxc      (nr__1) ! (10-13W/m2) [-0.08/3.6] Corrected Flux,
*                                     in 10^-10^erg/s/cm2 (1)
      real*4        Rate       (nr__1) ! (ct/s) [2/37] Net count rate
      real*4        e_Rate     (nr__1) ! (ct/s) [0.1/2] Uncertainty in Rate
      real*4        Bkg        (nr__1) ! (ct/s) [10/21] Background count rate
*Note (1): Flux corrected according to Eq. 2:
*          Corr. RXTE Flux = (derived RXTE flux-0.314)/0.939

C=============================================================================

C  Loading file 'table1.dat'	! Swift X-ray telescope observations

C  Format for file interpretation

    1 format(
     +  I8,1X,A10,1X,F10.4,1X,F5.3,1X,F5.3,1X,F6.1,1X,F4.2,1X,F4.2,1X,
     +  F5.2,1X,F4.2,1X,F5.2,1X,F5.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,91
        read(1,'(A88)')ar__
        read(ar__,1)
     +  ObsID(i__),Date(i__),MJD(i__),Delta(i__),Phi(i__),Exp(i__),
     +  Flux(i__),e_Flux(i__),HR(i__),e_HR(i__),NH(i__),E_NH(i__),
     +  e_NH_1(i__)
        if(ar__(44:49) .EQ. '') Exp(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  ObsID(i__),Date(i__),MJD(i__),Delta(i__),Phi(i__),Exp(i__),
     +  Flux(i__),e_Flux(i__),HR(i__),e_HR(i__),NH(i__),E_NH(i__),
     +  e_NH_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'table2.dat'	! Log of RXTE observations and corrected fluxes

C  Format for file interpretation

    2 format(
     +  A15,1X,F9.3,1X,F5.3,1X,F6.3,1X,I4,1X,F4.2,1X,F4.2,1X,F5.2,1X,
     +  F5.2,1X,F4.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,1345
        read(1,'(A76)')ar__1
        read(ar__1,2)
     +  Obs(i__),MJD_1(i__),Delta_1(i__),Phi_1(i__),Exp_1(i__),
     +  Flux_1(i__),e_Flux_1(i__),Fluxc(i__),Rate(i__),e_Rate(i__),
     +  Bkg(i__)
        if(ar__1(40:43) .EQ. '') Exp_1(i__) = iNULL__
c    ..............Just test output...........
        write(6,2)
     +  Obs(i__),MJD_1(i__),Delta_1(i__),Phi_1(i__),Exp_1(i__),
     +  Flux_1(i__),e_Flux_1(i__),Fluxc(i__),Rate(i__),e_Rate(i__),
     +  Bkg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================
      stop
      end