FORTRAN Generation
(/./ftp/cats/J/MNRAS/450/3904)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/450/3904 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 2024-Apr-19
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/MNRAS/450/3904     Quasars narrow absorption lines from SDSS     (Chen+, 2015)
*================================================================================
*Narrow absorption lines with two observations from the Sloan Digital Sky Survey.
*    Chen Z.-F., Gu Q.-S., Chen Y.-M., Cao Y.
*   <Mon. Not. R. Astron. Soc., 450, 3904-3919 (2015)>
*   =2015MNRAS.450.3904C    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablea1.dat'	! Catalog of C IV {lambda}{lambda}1548, 1551
                                Absorption Systems

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

      character*18  SDSS        ! SDSS identifier (HHMMSS.ss+DDMMSS.s)
      real*4        zem         ! Redshift derived from emission lines
      real*4        zabs        ! Redshift derived from absorption lines
      integer*4     Plate_S     ! SDSS-I/II plate identifier
      integer*4     MJD_S       ! (d) Modified Julian Date of the observation
      integer*4     Fiber_S     ! SDSS-I/II fiber identifier
      real*4        EW1548_S    ! (0.1nm) SDSS-I/II Rest equivalent width of
*                                   C IV 1548{AA} (G1)
      real*4        e_EW1548_S  ! (0.1nm) SDSS-I/II EW1548-S divided by its 1{sigma}
*                                   error
      real*4        EW1551_S    ! (0.1nm) SDSS-I/II Rest equivalent width of
*                                   C IV 1551{AA} (G1)
      real*4        e_EW1551_S  ! (0.1nm) SDSS-I/II EW1551-S divided by its 1{sigma}
*                                   error
      integer*4     Plate_B     ! BOSS plate identifier
      integer*4     MJD_B       ! (d) Modified Julian Date of the observation
      integer*4     Fiber_B     ! BOSS fiber identifier
      real*4        EW1548_B    ! (0.1nm) BOSS Rest equivalent width of C IV 1548{AA}
*                                   (G1)
      real*4        e_EW1548_B  ! (0.1nm) BOSS EW1548-B divided by its 1{sigma} error
      real*4        EW1551_B    ! (0.1nm) BOSS Rest equivalent width of C IV 1551{AA}
*                                   (G1)
      real*4        e_EW1551_B  ! (0.1nm) BOSS EW1551-B divided by its 1{sigma} error

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

C  Declarations for 'tablea2.dat'	! Catalog of Mg II {lambda}{lambda}2796, 2803
                                Absorption Systems

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

      character*18  SDSS_1      ! SDSS identifier (HHMMSS.ss+DDMMSS.s)
      real*4        zem_1       ! Redshift derived from emission lines
      real*4        zabs_1      ! Redshift derived from absorption lines
      integer*4     Plate_S_1   ! SDSS-I/II plate identifier
      integer*4     MJD_S_1     ! (d) Modified Julian Date of the observation
      integer*4     Fiber_S_1   ! SDSS-I/II fiber identifier
      real*4        EW2796_S    ! (0.1nm) SDSS-I/II Rest equivalent width of
*                                   Mg II 2796{AA} (G1)
      real*4        e_EW2796_S  ! (0.1nm) SDSS-I/II EW2796-S divided by its 1{sigma}
*                                   error
      real*4        EW2803_S    ! (0.1nm) SDSS-I/II Rest equivalent width of
*                                   Mg II 2803{AA} (G1)
      real*4        e_EW2803_S  ! (0.1nm) SDSS-I/II EW2803-S divided by its 1{sigma}
*                                   error
      integer*4     Plate_B_1   ! SDSS-III plate identifier
      integer*4     MJD_B_1     ! (d) Modified Julian Date of the observation
      integer*4     Fiber_B_1   ! BOSS fiber identifier
      real*4        EW2796_B    ! (0.1nm) BOSS Rest equivalent width of Mg II 2796{AA}
*                                   (G1)
      real*4        e_EW2796_B  ! (0.1nm) BOSS  EW2796-B divided by its 1{sigma} error
      real*4        EW2803_B    ! (0.1nm) BOSS Rest equivalent width of Mg II 2803{AA}
*                                   (G1)
      real*4        e_EW2803_B  ! (0.1nm) BOSS EW2803-B divided by its 1{sigma} error

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

C  Loading file 'tablea1.dat'	! Catalog of C IV {lambda}{lambda}1548, 1551
*                                Absorption Systems

C  Format for file interpretation

    1 format(
     +  A18,1X,F6.4,1X,F6.4,1X,I4,1X,I5,1X,I4,1X,F4.2,1X,F4.2,1X,F4.2,
     +  1X,F4.2,1X,I4,1X,I5,1X,I4,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea1.dat')
      write(6,*) '....Loading file: tablea1.dat'
      do i__=1,3580
        read(1,'(A104)')ar__
        read(ar__,1)
     +  SDSS,zem,zabs,Plate_S,MJD_S,Fiber_S,EW1548_S,e_EW1548_S,
     +  EW1551_S,e_EW1551_S,Plate_B,MJD_B,Fiber_B,EW1548_B,e_EW1548_B,
     +  EW1551_B,e_EW1551_B
c    ..............Just test output...........
        write(6,1)
     +  SDSS,zem,zabs,Plate_S,MJD_S,Fiber_S,EW1548_S,e_EW1548_S,
     +  EW1551_S,e_EW1551_S,Plate_B,MJD_B,Fiber_B,EW1548_B,e_EW1548_B,
     +  EW1551_B,e_EW1551_B
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tablea2.dat'	! Catalog of Mg II {lambda}{lambda}2796, 2803
*                                Absorption Systems

C  Format for file interpretation

    2 format(
     +  A18,1X,F6.4,1X,F6.4,1X,I4,1X,I5,1X,I4,1X,F4.2,1X,F4.2,1X,F4.2,
     +  1X,F4.2,1X,I4,1X,I5,1X,I4,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea2.dat')
      write(6,*) '....Loading file: tablea2.dat'
      do i__=1,1808
        read(1,'(A104)')ar__1
        read(ar__1,2)
     +  SDSS_1,zem_1,zabs_1,Plate_S_1,MJD_S_1,Fiber_S_1,EW2796_S,
     +  e_EW2796_S,EW2803_S,e_EW2803_S,Plate_B_1,MJD_B_1,Fiber_B_1,
     +  EW2796_B,e_EW2796_B,EW2803_B,e_EW2803_B
c    ..............Just test output...........
        write(6,2)
     +  SDSS_1,zem_1,zabs_1,Plate_S_1,MJD_S_1,Fiber_S_1,EW2796_S,
     +  e_EW2796_S,EW2803_S,e_EW2803_S,Plate_B_1,MJD_B_1,Fiber_B_1,
     +  EW2796_B,e_EW2796_B,EW2803_B,e_EW2803_B
c    .......End.of.Just test output...........
      end do
      close(1)

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