FORTRAN Generation
(/./ftp/cats/J/AJ/125/1711)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/125/1711 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-17
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/125/1711       Broad Absorption Line Quasars from SDSS   (Reichard+, 2003)
*================================================================================
*A catalog of Broad Absorption Line Quasars from the
*Sloan Digital Sky Survey Early Data Release.
*    Reichard T.A., Richards G.T., Schneider D.P., Hall P.B., Tolea A.,
*    Krolik J.H., Tsvetanov Z., Vanden Berk D.E., York D.G., Knapp G.R.,
*    Gunn J.E., Brinkmann J.
*   <Astron. J. 125, 1711 (2003)>
*   =2003AJ....125.1711R
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! SDSS EDR BALQSO Catalog: Objects with 1.7<=z<=4.2

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

      character*18  SDSS       (nr__) ! SDSS object name (1)
      integer*4     PNum       (nr__) ! Plate number
      integer*4     FNum       (nr__) ! Fiber number
      integer*4     MJD        (nr__) ! (d) Modified Julian Date of observation
      integer*4     Final      (nr__) ! [0/1] Final quasar target candidate (2)
      integer*4     EDR        (nr__) ! [0/1] Early Data Release quasar target
*                                         candidate (2)
      integer*4     Ser        (nr__) ! [0/1] Early Data Release serendipity target
*                                         candidate (2)
      real*4        v20cm      (nr__) ! (mJy) ? FIRST peak flux density at 20cm (3)
      real*4        z          (nr__) ! Redshift
      real*4        i_mag      (nr__) ! (mag) Apparent i*-band magnitude (4)
      real*4        i_Mag_1    (nr__) ! (mag) Resulting absolute i*-band magnitude
      integer*4     CIV1       (nr__) ! (km/s) ? C IV balnicity index (5)
      integer*4     CIV2       (nr__) ! (km/s) ? C IV balnicity index from Tolea et al.,
*                                     2002ApJ...578L..31T (6)
      integer*4     MgII       (nr__) ! (km/s) ? Mg II balnicity index (5)
      character*1   C1         (nr__) ! [HN] Fitted composite algorithm
*                                        classification (7)
      character*1   C2         (nr__) ! [HN] The Tolea et al., 2002ApJ...578L..31T
*                                        classification (7)
      character*6   C3         (nr__) ! Visual classification (8)
      character*4   C4         (nr__) ! Overall classification (9)
      character*2   Notes      (nr__) ! Additional notes (10)
*Note (1): Using the SDSS format of J2000 right ascension (hhmmss.ss) and
*     declination ({+/-}ddmmss.s). The "J" prefix should be added.
*Note (2): Final quasar target candidate:
*      1 = Selected;
*      0 = Not selected.
*Note (3): Null value indicates that the object is undetected in the FIRST
*      survey at the ~1mJy limit.
*Note (4): Corrected for Galactic reddening using Schlegel, Finkbeiner,
*      & Davis, 1998ApJ...500..525S.
*Note (5): Computed using a fitted EDR composite spectrum as the continuum.
*Note (6): Computed using a power law with Gaussian C IV emission line as
*      the continuum.
*Note (7): Classification:
*      H = HiBAL;
*      N = Non-BALQSO.
*Note (8): A question mark means uncertainty in the previous code;
*    e.g., ``HiLo?'' means a tentative LoBAL through in a definite HiBAL.
*    HiZ = HiBAL at z>=3.90, where LoBALs could be missed because
*           {lambda}_AlIII_>9150{AA};
*    Hiz/Loz = Hi/LoBAL at z>=2.26, where LoBALs could be missed because
*           {lambda}_MgII_>9150{AA};
*    Hi = Only high-ionization lines are present;
*    Lo = Both high- and low-ionization lines are present;
*    LoZ = LoBAL at z>=3.90, where LoBALs could be missed because
*           {lambda}_AlIII_>9150{AA};
*    FeLo = High-, low-, and metastable Fe II/Fe III lines (~2600{AA},
*           or otherwise) or atypical absorption that more readily
*           classifies the object as an unusual or extreme BALQSO,
*           usually with strong iron absorption;
*    no = No broad absorption lines are present (non-BAL).
*Note (9): Overall classification:
*    Lo = LoBAL if visual inspection classified the object as a LoBAL;
*    FeLo = Visual inspection also revealed a few unusual LoBALs with
*            iron absorption (FeLoBALs);
*    Hi = The remaining objects are those classified as HiBALs by at
*          least one of the three classification methods.
*Note (10): Additional notes:
*    e: The balnicity indexes of these objects are formally zero (or
*        unmeasured), but visual inspection suggests that the objects
*        belong in this table.
*       For SDSS 0149-0114 and SDSS 1132+0104 a small change in redshift
*         would yield a positive BI.
*       In the case of SDSS 1730+5850, Hall et al., 2002ApJS..141..267H
*         found a BI greater than 10,900.
*    f: See also Hall et al., 2002ApJS..141..267H;
*    g: See also Menou et al., 2001ApJ...561..645M;
*    h: This quasar was selected for spectroscopic follow-up as a star;
*    i: This quasar was selected for spectroscopic follow-up as a galaxy.

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

C  Declarations for 'table2.dat'	! Supplementary SDSS EDR BALQSO Catalog

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

      character*18  SDSS_1     (nr__1) ! SDSS object name (1)
      integer*4     PNum_1     (nr__1) ! Plate number
      integer*4     FNum_1     (nr__1) ! Fiber number
      integer*4     MJD_1      (nr__1) ! (d) Modified Julian Date of observation
      integer*4     Final_1    (nr__1) ! [0/1] Final quasar target candidate (2)
      integer*4     EDR_1      (nr__1) ! [0/1] Early Data Release quasar target
*                                         candidate (2)
      integer*4     Ser_1      (nr__1) ! [0/1] Early Data Release serendipity target
*                                         candidate (2)
      real*4        v20cm_1    (nr__1) ! (mJy) ? FIRST peak flux density at 20cm (3)
      real*4        z_1        (nr__1) ! Redshift
      real*4        i_mag_2    (nr__1) ! (mag) Apparent i*-band magnitude (4)
      real*4        i_Mag_3    (nr__1) ! (mag) Resulting absolute i*-band magnitude
      integer*4     CIV1_1     (nr__1) ! (km/s) ? C IV balnicity index (5)
      integer*4     CIV2_1     (nr__1) ! (km/s) ? C IV balnicity index from Tolea et al.,
*                                     2002ApJ...578L..31T (6)
      integer*4     MgII_1     (nr__1) ! (km/s) ? Mg II balnicity index (5)
      character*1   C1_1       (nr__1) ! [HN] Fitted composite algorithm
*                                        classification (7)
      character*1   C2_1       (nr__1) ! [HN] The Tolea et al., 2002ApJ...578L..31T
*                                        classification (7)
      character*6   C3_1       (nr__1) ! Visual classification (8)
      character*4   C4_1       (nr__1) ! Overall classification (9)
      character*2   Notes_1    (nr__1) ! Additional notes (10)
*Note (1): Using the SDSS format of J2000 right ascension (hhmmss.ss) and
*     declination ({+/-}ddmmss.s). The "J" prefix should be added.
*Note (2): Final quasar target candidate:
*      1 = Selected;
*      0 = Not selected.
*Note (3): Null value indicates that the object is undetected in the FIRST
*      survey at the ~1mJy limit.
*Note (4): Corrected for Galactic reddening using Schlegel, Finkbeiner,
*      & Davis, 1998ApJ...500..525S.
*Note (5): Computed using a fitted EDR composite spectrum as the continuum.
*Note (6): Computed using a power law with Gaussian C IV emission line as
*      the continuum.
*Note (7): Classification:
*      H = HiBAL;
*      N = Non-BALQSO.
*Note (8): A question mark means uncertainty in the previous code;
*    e.g., ``HiLo?'' means a tentative LoBAL through in a definite HiBAL.
*    HiZ = HiBAL at z>=3.90, where LoBALs could be missed because
*           {lambda}_AlIII_>9150{AA};
*    Hiz/Loz = Hi/LoBAL at z>=2.26, where LoBALs could be missed because
*           {lambda}_MgII_>9150{AA};
*    Hi = Only high-ionization lines are present;
*    Lo = Both high- and low-ionization lines are present;
*    LoZ = LoBAL at z>=3.90, where LoBALs could be missed because
*           {lambda}_AlIII_>9150{AA};
*    FeLo = High-, low-, and metastable Fe II/Fe III lines (~2600{AA},
*           or otherwise) or atypical absorption that more readily
*           classifies the object as an unusual or extreme BALQSO,
*           usually with strong iron absorption;
*    no = No broad absorption lines are present (non-BAL).
*Note (9): Overall classification:
*    Lo = LoBAL if visual inspection classified the object as a LoBAL;
*    FeLo = Visual inspection also revealed a few unusual LoBALs with
*            iron absorption (FeLoBALs);
*    Hi = The remaining objects are those classified as HiBALs by at
*          least one of the three classification methods.
*Note (10): Additional notes:
*    e: The balnicity indexes of these objects are formally zero (or
*        unmeasured), but visual inspection suggests that the objects
*        belong in this table.
*       For SDSS 0149-0114 and SDSS 1132+0104 a small change in redshift
*         would yield a positive BI.
*       In the case of SDSS 1730+5850, Hall et al., 2002ApJS..141..267H
*         found a BI greater than 10,900.
*    f: See also Hall et al., 2002ApJS..141..267H;
*    g: See also Menou et al., 2001ApJ...561..645M;
*    h: This quasar was selected for spectroscopic follow-up as a star;
*    i: This quasar was selected for spectroscopic follow-up as a galaxy.

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

C  Loading file 'table1.dat'	! SDSS EDR BALQSO Catalog: Objects with 1.7<=z<=4.2

C  Format for file interpretation

    1 format(
     +  A18,1X,I3,1X,I3,1X,I5,1X,I1,1X,I1,1X,I1,1X,F5.2,1X,F5.3,1X,
     +  F5.2,1X,F6.2,1X,I5,1X,I5,1X,I4,1X,A1,1X,A1,1X,A6,1X,A4,1X,A2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,185
        read(1,'(A100)')ar__
        read(ar__,1)
     +  SDSS(i__),PNum(i__),FNum(i__),MJD(i__),Final(i__),EDR(i__),
     +  Ser(i__),v20cm(i__),z(i__),i_mag(i__),i_Mag_1(i__),CIV1(i__),
     +  CIV2(i__),MgII(i__),C1(i__),C2(i__),C3(i__),C4(i__),Notes(i__)
        if(ar__(40:44) .EQ. '') v20cm(i__) = rNULL__
        if(ar__(65:69) .EQ. '') CIV1(i__) = iNULL__
        if(ar__(71:75) .EQ. '') CIV2(i__) = iNULL__
        if(ar__(77:80) .EQ. '') MgII(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  SDSS(i__),PNum(i__),FNum(i__),MJD(i__),Final(i__),EDR(i__),
     +  Ser(i__),v20cm(i__),z(i__),i_mag(i__),i_Mag_1(i__),CIV1(i__),
     +  CIV2(i__),MgII(i__),C1(i__),C2(i__),C3(i__),C4(i__),Notes(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Supplementary SDSS EDR BALQSO Catalog

C  Format for file interpretation

    2 format(
     +  A18,1X,I3,1X,I3,1X,I5,1X,I1,1X,I1,1X,I1,1X,F5.2,1X,F5.3,1X,
     +  F5.2,1X,F6.2,1X,I5,1X,I5,1X,I4,1X,A1,1X,A1,1X,A6,1X,A4,1X,A2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,39
        read(1,'(A99)')ar__1
        read(ar__1,2)
     +  SDSS_1(i__),PNum_1(i__),FNum_1(i__),MJD_1(i__),Final_1(i__),
     +  EDR_1(i__),Ser_1(i__),v20cm_1(i__),z_1(i__),i_mag_2(i__),
     +  i_Mag_3(i__),CIV1_1(i__),CIV2_1(i__),MgII_1(i__),C1_1(i__),
     +  C2_1(i__),C3_1(i__),C4_1(i__),Notes_1(i__)
        if(ar__1(40:44) .EQ. '') v20cm_1(i__) = rNULL__
        if(ar__1(65:69) .EQ. '') CIV1_1(i__) = iNULL__
        if(ar__1(71:75) .EQ. '') CIV2_1(i__) = iNULL__
        if(ar__1(77:80) .EQ. '') MgII_1(i__) = iNULL__
c    ..............Just test output...........
        write(6,2)
     +  SDSS_1(i__),PNum_1(i__),FNum_1(i__),MJD_1(i__),Final_1(i__),
     +  EDR_1(i__),Ser_1(i__),v20cm_1(i__),z_1(i__),i_mag_2(i__),
     +  i_Mag_3(i__),CIV1_1(i__),CIV2_1(i__),MgII_1(i__),C1_1(i__),
     +  C2_1(i__),C3_1(i__),C4_1(i__),Notes_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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