FORTRAN Generation
(/./ftp/cats/J/ApJ/499/112)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/499/112 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-18
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/499/112       HST CFRS and LDSS redshift surveys. I.   (Brinchmann+ 1998)
*================================================================================
*Hubble space telescope imaging of the CFRS and LDSS redshift surveys.
*I. Morphological properties.
*       Brinchmann J., Abraham R., Schade D., Tresse L., Ellis R.S., Lilly S.,
*       Le Fevre O., Glazebrook K., Hammer F., Colless M., Crampton D.,
*       Broadhurst T.
*      <Astrophys. J. 499, 112 (1998)>
*      =1998ApJ...499..112B      (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Data for objects in the survey

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

      real*8        ID          ! Identification number
      real*4        z           ! ? Redshift
      character*1   n_z         ! [g] Note on z (1)
      real*4        F814W       ! (mag) ? F814W magnitude
      real*4        BMag        ! (mag) ? Absolute B_AB_ magnitude
      character*1   n_BMag      ! [hi] Note on BMag (2)
      integer*4     Class       ! Redhsift confidence class (3)
      integer*4     MClass      ! Eyeball morphological classification for the
*                                   object
      real*4        A           ! ? Uncorrected rotational asymmetry factor
      real*4        C           ! ? Uncorrected central concentration index
      integer*4     MClassAC    ! AC morphological classification (4)
      integer*4     EW_OII_     ! (0.1nm) ? [O II] equivalent width (5)
      integer*4     e_EW_OII_   ! (0.1nm) ? rms uncertainty on EW[OII]
      character*7   Origin      ! Origin (6)
      character*14  OldID       ! Old identification (7)
*Note (1): g: The object is clearly extended, but was given z=0 in in the CFRS
*              survey
*Note (2): h: The HST photometry here is uncertain, and M_AB_ is based on the
*              original b_J_ photometry
*          i: The absolute magnitude is the original Autofib absolute magnitude
*              based on b_J_ transformed to AB
*Note (3): Each object identification was assigned a confidence class.
*          The notation was set to classes 0-4, 8, 9, 12-14, 91-94 as follow:
*           0-4: 0: when no redshift could be assigned
*                1: probability of 50% that the measurement was correct
*                2: probability of more than 75% that the measurement was correct
*                3: measurement at least 95% secure
*                4: unquestionably correct identification
*           8-9: 8: object for which the algorithm indicates that the emission
*                    line is [O II]{lambda}3727
*                9: object for which the redshift ambiguity still could not be
*                    resolved
*         12-14: QSO are identified with the same quality notation 1-4 as
*                 galaxies, but a 1 is placed in front, e.g.,
*                 14 is a very secure QSO.
*         91-94: Objects which do not belong to the main catalog, either because
*                 they have I_AB_=22.5 or I_AB_<17.5, because of instrumental
*                 problems but have a redshift determination, or whose photometry
*                 was adjusted fainter than I_AB_=22.5 after the spectroscopic
*                 observation, are kept in a supplemental catalog and are
*                 identified by a 9 in front of the confidence class, e.g., 93.
*                 The objects in this supplemental catalog may thus have biases
*                 that will not be present in the statistically complete sample.
*          For the LDSS objects this has been transformed to the CFRS system by
*           assigning note = 4 to confident redshifts, note = 2 to less secure
*           redshifts, and 0 to failures.
*          For the few LDSS objects for which there is no confidence class, we
*           have assigned note = -1.
*          For CFRS 03.1027, the original "39" value was modified in "9", as in
*           table1 of Cat. <J/ApJ/455/88>
*Note (4): AC classification for the object using the division lines in Fig. 8.
*Note (5): For the CFRS objects this is from Hammer et al. (1997,
*           Cat. <J/ApJ/481/49>);
*          for the LDSS objects it is from the Autofib survey
*           (Ellis et al., 1996MNRAS.280..235E)
*Note (6): CFRS: Canada-France Redhsift Survey, Lilly et al.,
*           1995ApJ...455...50L;  Le Fevre et al. 1995, Cat. <J/ApJ/455/60>
*          GRTH: Groth et al., 1994BAAS..185.5309G
*        LDSS-1: Low-Dispersion Survey Spectrograph (Colless et al.,
*           1993MNRAS.261...19C)
*        LDSS-2: Low-Dispersion Survey Spectrograph (Glazebrook et al., 1995)
*           Cat. <J/MNRAS/273/157>)
*       Autofib: Autofib Survey (Ellis et al., 1996MNRAS.280..235E)
*Note (7): The identification given in the original LDSS paper

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

C  Loading file 'table2.dat'	! Data for objects in the survey

C  Format for file interpretation

    1 format(
     +  F8.5,1X,F5.3,A1,1X,F5.2,1X,F6.2,A1,1X,I2,1X,I2,1X,F5.3,1X,
     +  F5.3,1X,I2,1X,I3,1X,I2,1X,A7,1X,A14)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,341
        read(1,'(A80)')ar__
        read(ar__,1)
     +  ID,z,n_z,F814W,BMag,n_BMag,Class,MClass,A,C,MClassAC,EW_OII_,
     +  e_EW_OII_,Origin,OldID
        if(ar__(10:14) .EQ. '') z = rNULL__
        if(ar__(17:21) .EQ. '') F814W = rNULL__
        if(ar__(23:28) .EQ. '') BMag = rNULL__
        if(ar__(37:41) .EQ. '') A = rNULL__
        if(ar__(43:47) .EQ. '') C = rNULL__
        if(ar__(52:54) .EQ. '') EW_OII_ = iNULL__
        if(ar__(56:57) .EQ. '') e_EW_OII_ = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  ID,z,n_z,F814W,BMag,n_BMag,Class,MClass,A,C,MClassAC,EW_OII_,
     +  e_EW_OII_,Origin,OldID
c    .......End.of.Just test output...........
      end do
      close(1)

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