FORTRAN Generation
(/./ftp/cats/J/AJ/130/1345)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/130/1345 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-Mar-28
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/AJ/130/1345      Optical-infrared colors of CORALS QSOs       (Ellison+, 2005)
*================================================================================
*The optical-infrared colors of CORALS QSOs: searching for dust reddening
*associated with high-redshift damped Ly{alpha} systems.
*    Ellison S.L., Hall P.B., Lira P.
*   <Astron. J., 130, 1345-1357 (2005)>
*   =2005AJ....130.1345E
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! CORALS QSO magnitudes

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

      character*9   QSO        (nr__) ! The QSO name
      real*4        z          (nr__) ! Redshift from emission lines
      real*4        Bjmag      (nr__) ! (mag) ? The UKST B_j_ magnitude
      real*4        Bmag       (nr__) ! (mag) ? The B band magnitude
      real*4        e_Bmag     (nr__) ! (mag) ? Error in Bmag
      real*4        Vmag       (nr__) ! (mag) ? The V band magnitude
      real*4        e_Vmag     (nr__) ! (mag) ? Error in Vmag
      real*4        Ksmag      (nr__) ! (mag) ? The K_s_ band magnitude
      real*4        e_Ksmag    (nr__) ! (mag) ? Error in Ksmag
      character*9   Ref        (nr__) ! Photometry reference (1)
*Note (1): Photometry reference: This work, or FWW00 = Francis, Whiting & Webster
*          (2000PASA...17...56F).

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

C  Declarations for 'table3.dat'	! Normalized colors and intervening absorber properties
                           for CORALS QSOs with near-simultaneous B-K colors

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

      character*9   QSO_1      (nr__1) ! QSO name
      real*4        zem        (nr__1) ! ? Redshift from emission lines
      real*4        zabs       (nr__1) ! ? Absorption redshift
      real*4        N_HI       (nr__1) ! ([cm-2]) ? HI column density
      real*4        B_K        (nr__1) ! (mag) ? Normalized (B-K) color index
      real*4        e_B_K      (nr__1) ! (mag) ? Error in B-K
      character*1   l__Zn_H_   (nr__1) ! Upper limit flag on [Zn/H]
      real*4        v_Zn_H_    (nr__1) ! ([Sun]) ? [Zn/H] abundance
      real*4        v_Fe_H_    (nr__1) ! ([Sun]) ? [Fe/H] abundance
      integer*4     Ref_1      (nr__1) ! ? Abundance origin (1)
*Note (1): Abundance references, defined as follows:
*    1 = Akerman et al. 2005A&A...440..499A
*    2 = Ellison & Lopez 2001A&A...380..117E

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

C  Loading file 'table2.dat'	! CORALS QSO magnitudes

C  Format for file interpretation

    1 format(
     +  A9,1X,F5.3,1X,F4.1,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,
     +  F4.2,1X,A9)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,66
        read(1,'(A64)')ar__
        read(ar__,1)
     +  QSO(i__),z(i__),Bjmag(i__),Bmag(i__),e_Bmag(i__),Vmag(i__),
     +  e_Vmag(i__),Ksmag(i__),e_Ksmag(i__),Ref(i__)
        if(ar__(17:20) .EQ. '') Bjmag(i__) = rNULL__
        if(ar__(22:26) .EQ. '') Bmag(i__) = rNULL__
        if(ar__(28:31) .EQ. '') e_Bmag(i__) = rNULL__
        if(ar__(33:37) .EQ. '') Vmag(i__) = rNULL__
        if(ar__(39:42) .EQ. '') e_Vmag(i__) = rNULL__
        if(ar__(44:48) .EQ. '') Ksmag(i__) = rNULL__
        if(ar__(50:53) .EQ. '') e_Ksmag(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  QSO(i__),z(i__),Bjmag(i__),Bmag(i__),e_Bmag(i__),Vmag(i__),
     +  e_Vmag(i__),Ksmag(i__),e_Ksmag(i__),Ref(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Normalized colors and intervening absorber properties
*                           for CORALS QSOs with near-simultaneous B-K colors

C  Format for file interpretation

    2 format(
     +  A9,1X,F5.3,1X,F5.3,1X,F5.2,2X,F5.2,1X,F4.2,1X,A1,F5.2,1X,F5.2,
     +  1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,42
        read(1,'(A54)')ar__1
        read(ar__1,2)
     +  QSO_1(i__),zem(i__),zabs(i__),N_HI(i__),B_K(i__),e_B_K(i__),
     +  l__Zn_H_(i__),v_Zn_H_(i__),v_Fe_H_(i__),Ref_1(i__)
        if(ar__1(11:15) .EQ. '') zem(i__) = rNULL__
        if(ar__1(17:21) .EQ. '') zabs(i__) = rNULL__
        if(ar__1(23:27) .EQ. '') N_HI(i__) = rNULL__
        if(ar__1(30:34) .EQ. '') B_K(i__) = rNULL__
        if(ar__1(36:39) .EQ. '') e_B_K(i__) = rNULL__
        if(ar__1(42:46) .EQ. '') v_Zn_H_(i__) = rNULL__
        if(ar__1(48:52) .EQ. '') v_Fe_H_(i__) = rNULL__
        if(ar__1(54:54) .EQ. '') Ref_1(i__) = iNULL__
c    ..............Just test output...........
        write(6,2)
     +  QSO_1(i__),zem(i__),zabs(i__),N_HI(i__),B_K(i__),e_B_K(i__),
     +  l__Zn_H_(i__),v_Zn_H_(i__),v_Fe_H_(i__),Ref_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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