FORTRAN Generation
(/./ftp/cats/J/ApJ/920/122)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/920/122 into FORTRAN code for reading data files line by line.

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 2026-Oct-11
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/920/122    Candidate Ly{alpha}-emitting galaxies spectra    (Davis+, 2021)
*================================================================================
*Detection of Lyman Continuum from 3.0<z<3.5 galaxies in the HETDEX survey.
*    Davis D., Gebhardt K., Mentuch Cooper E., Chisholm J., Ciardullo R.,
*    Farrow D.J., Finkelstein S.L., Gronwall C., Gawiser E., Hill G.J.,
*    Hopp U., Jeong D., Landriau M., Liu C., Lujan Niemeyer M., Schneider D.P.,
*    Snigula J., Tuttle S.
*   <Astrophys. J., 920, 122 (2021)>
*   =2021ApJ...920..122D
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Candidate LAE galaxies for this work

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

C  Position composed of: RAdeg DEdeg
      integer*8     ID          ! Detection ID
      character*26  Name        ! HETDEX Detection Name, JHHMMSS.ss+DDMMSS.s
      real*8        RAdeg       ! (deg) [165/230] Right Ascension (ICRS)
      real*8        DEdeg       ! (deg) [48/57] Declination, decimal degrees (ICRS)
      real*4        zspec       ! [2.99/3.5] Spectroscopic redshift
      real*4        rmag        ! (mag) [23.5/26.5] r-band magnitude
      real*4        e_rmag      ! (mag) [0.04/2]?=0.000 Uncertainty in rmag (1)
*Note (1): Entries with no result are fainter than the imaging
*    magnitude limit of 26.5.

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

C  Declarations for 'table2.dat'	! Sub-sample Stacked Spectra

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

      real*8        lambda1     ! (0.1nm) [780/1378] Full sample, wavelength
      real*8        flux1       ! (10-17mW/m2) [-8.6/60]? Full sample, flux (1)
      real*4        e_flux1     ! (10-17mW/m2) [0.4/8]? Full sample, flux uncertainty (1)
      real*8        lambda2     ! (0.1nm) [782/1379]? Brightest 1/3, wavelength
      real*8        flux2       ! (10-17mW/m2) [-12/68]? Brightest 1/3, flux (1)
      real*8        e_flux2     ! (10-17mW/m2) [0.7/13]? Brightest 1/3, flux uncertainty
*                                      (1)
      real*8        lambda3     ! (0.1nm) [780/1378] Faintest 2/3, wavelength
      real*8        flux3       ! (10-17mW/m2) [-39/56]? Faintest 2/3, flux (1)
      real*8        e_flux3     ! (10-17mW/m2) [0.4/13]? Faintest 2/3, flux uncertainty
*                                      (1)
      real*8        lambda4     ! (0.1nm) [779/1378]? Faintest 1/3, wavelength
      real*8        flux4       ! (10-17mW/m2) [-18/54]? Faintest 1/3, flux (1)
      real*8        e_flux4     ! (10-17mW/m2) [0.6/21]? Faintest 1/3 flux uncertainty (1)
*Note (1): Null entries for the flux# and e_flux# are present only for alignment
*    across the four samples.

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

C  Loading file 'table1.dat'	! Candidate LAE galaxies for this work

C  Format for file interpretation

    1 format(I10,1X,A26,1X,F8.4,1X,F7.4,1X,F6.4,1X,F5.2,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,214
        read(1,'(A73)')ar__
        read(ar__,1)ID,Name,RAdeg,DEdeg,zspec,rmag,e_rmag
c    ..............Just test output...........
        write(6,1)ID,Name,RAdeg,DEdeg,zspec,rmag,e_rmag
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Sub-sample Stacked Spectra

C  Format for file interpretation

    2 format(
     +  F7.2,1X,F7.4,1X,F6.4,1X,F7.2,1X,F8.4,1X,F7.4,1X,F7.2,1X,F8.4,
     +  1X,F7.4,1X,F7.2,1X,F8.4,1X,F7.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,123
        read(1,'(A97)')ar__1
        read(ar__1,2)
     +  lambda1,flux1,e_flux1,lambda2,flux2,e_flux2,lambda3,flux3,
     +  e_flux3,lambda4,flux4,e_flux4
        if(ar__1(9:15) .EQ. '') flux1 = rNULL__
        if(ar__1(17:22) .EQ. '') e_flux1 = rNULL__
        if(ar__1(24:30) .EQ. '') lambda2 = rNULL__
        if(ar__1(32:39) .EQ. '') flux2 = rNULL__
        if(ar__1(41:47) .EQ. '') e_flux2 = rNULL__
        if(ar__1(57:64) .EQ. '') flux3 = rNULL__
        if(ar__1(66:72) .EQ. '') e_flux3 = rNULL__
        if(ar__1(74:80) .EQ. '') lambda4 = rNULL__
        if(ar__1(82:89) .EQ. '') flux4 = rNULL__
        if(ar__1(91:97) .EQ. '') e_flux4 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  lambda1,flux1,e_flux1,lambda2,flux2,e_flux2,lambda3,flux3,
     +  e_flux3,lambda4,flux4,e_flux4
c    .......End.of.Just test output...........
      end do
      close(1)

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