FORTRAN Generation
(/./ftp/cats/J/ApJ/793/39)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/793/39 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-Mar-29
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/793/39 Spectroscopic properties of BOSS compact galaxies (Damjanov+, 2014)
*================================================================================
*The number density of quiescent compact galaxies at intermediate redshift.
*    Damjanov I., Hwang H.S., Geller M.J., Chilingarian I.
*   <Astrophys. J., 793, 39 (2014)>
*   =2014ApJ...793...39D    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Spectroscopic Properties of Compact Galaxy
                                Candidates Selected from BOSS

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

C  J2000 position composed of: RAdeg DEdeg
      integer*8     SDSS        ! SDSS object identification number
      real*4        z           ! Redshift
      real*8        RAdeg       ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg       ! (deg) Declination in decimal degrees (J2000)
      integer*4     sigma       ! (km/s) Velocity Dispersion
      integer*4     e_sigma     ! (km/s) Error in sigma (1)
      character*1   l_Age       ! [<] Limit flag on Age
      integer*4     Age         ! (Myr) Galaxy Age of best-fit SSP model
      integer*4     e_Age       ! (Myr) ? Error in Age (1)
      real*4        v_Z_H_      ! Metallicity of best-fit SSP model
      real*4        e__Z_H_     ! Error in [Z/H] (1)
*Note (1): The internal kinematics and stellar population errors are formally
*  computed statistical errors and do not include possible systematic
*  uncertainties.

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

C  Declarations for 'table2.dat'	! Structural Properties of BOSS Compact Galaxies
                                at Intermediate Redshift with Existing CFHT
                                Imaging

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

      integer*8     SDSS_1      ! SDSS object identification number
      character*19  Name        ! SDSS designation (JHHMMSS.ss+DDMMSS.s)
      real*4        z_1         ! Redshift
      character*1   l_Rec       ! [<] Limit flag on Rec
      real*4        Rec         ! (kpc) Circularized half-light radius of
*                                   the single-profile model (1)
      real*4        e_Rec       ! (kpc) ? Error in Rec
      real*4        n           ! ? Sersic index of the single-profile model
      real*4        e_n         ! ? Error in n
      real*4        b_a         ! ? Axial ratio of the single-profile model
      real*4        e_b_a       ! ? Error in b/a
      character*2   Filter      ! [g'r'i'z'] CFHT MegaCam filter
      real*4        HWFM        ! (kpc) Half width at the half maximum of the
*                                   point-spread function (2)
*Note (1): R_e,c_=R_e_.sqrt(b/a), where Re is the half-light radius along
*  the major axis and b/a is the axial ratio.
*Note (2): In units of kiloparsecs at the target's redshift, constructed by
*  combining a set of stars in the CFHT MegaCam image.

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

C  Loading file 'table1.dat'	! Spectroscopic Properties of Compact Galaxy
*                                Candidates Selected from BOSS

C  Format for file interpretation

    1 format(
     +  I19,1X,F5.3,1X,F8.4,1X,F9.6,1X,I3,1X,I2,1X,A1,1X,I5,1X,I4,1X,
     +  F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,198
        read(1,'(A75)')ar__
        read(ar__,1)
     +  SDSS,z,RAdeg,DEdeg,sigma,e_sigma,l_Age,Age,e_Age,v_Z_H_,
     +  e__Z_H_
        if(ar__(61:64) .EQ. '') e_Age = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  SDSS,z,RAdeg,DEdeg,sigma,e_sigma,l_Age,Age,e_Age,v_Z_H_,
     +  e__Z_H_
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Structural Properties of BOSS Compact Galaxies
*                                at Intermediate Redshift with Existing CFHT
*                                Imaging

C  Format for file interpretation

    2 format(
     +  I19,5X,A19,1X,F5.3,1X,A1,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,
     +  1X,F4.2,1X,A2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,14
        read(1,'(A88)')ar__1
        read(ar__1,2)
     +  SDSS_1,Name,z_1,l_Rec,Rec,e_Rec,n,e_n,b_a,e_b_a,Filter,HWFM
        if(ar__1(57:60) .EQ. '') e_Rec = rNULL__
        if(ar__1(62:65) .EQ. '') n = rNULL__
        if(ar__1(67:70) .EQ. '') e_n = rNULL__
        if(ar__1(72:75) .EQ. '') b_a = rNULL__
        if(ar__1(77:80) .EQ. '') e_b_a = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  SDSS_1,Name,z_1,l_Rec,Rec,e_Rec,n,e_n,b_a,e_b_a,Filter,HWFM
c    .......End.of.Just test output...........
      end do
      close(1)

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