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 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-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/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       (nr__) ! SDSS object identification number
      real*4        z          (nr__) ! Redshift
      real*8        RAdeg      (nr__) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000)
      integer*4     sigma      (nr__) ! (km/s) Velocity Dispersion
      integer*4     e_sigma    (nr__) ! (km/s) Error in sigma (1)
      character*1   l_Age      (nr__) ! [<] Limit flag on Age
      integer*4     Age        (nr__) ! (Myr) Galaxy Age of best-fit SSP model
      integer*4     e_Age      (nr__) ! (Myr) ? Error in Age (1)
      real*4        v_Z_H_     (nr__) ! Metallicity of best-fit SSP model
      real*4        e__Z_H_    (nr__) ! 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     (nr__1) ! SDSS object identification number
      character*19  Name       (nr__1) ! SDSS designation (JHHMMSS.ss+DDMMSS.s)
      real*4        z_1        (nr__1) ! Redshift
      character*1   l_Rec      (nr__1) ! [<] Limit flag on Rec
      real*4        Rec        (nr__1) ! (kpc) Circularized half-light radius of
*                                   the single-profile model (1)
      real*4        e_Rec      (nr__1) ! (kpc) ? Error in Rec
      real*4        n          (nr__1) ! ? Sersic index of the single-profile model
      real*4        e_n        (nr__1) ! ? Error in n
      real*4        b_a        (nr__1) ! ? Axial ratio of the single-profile model
      real*4        e_b_a      (nr__1) ! ? Error in b/a
      character*2   Filter     (nr__1) ! [g'r'i'z'] CFHT MegaCam filter
      real*4        HWFM       (nr__1) ! (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(i__),z(i__),RAdeg(i__),DEdeg(i__),sigma(i__),
     +  e_sigma(i__),l_Age(i__),Age(i__),e_Age(i__),v_Z_H_(i__),
     +  e__Z_H_(i__)
        if(ar__(61:64) .EQ. '') e_Age(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  SDSS(i__),z(i__),RAdeg(i__),DEdeg(i__),sigma(i__),
     +  e_sigma(i__),l_Age(i__),Age(i__),e_Age(i__),v_Z_H_(i__),
     +  e__Z_H_(i__)
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(i__),Name(i__),z_1(i__),l_Rec(i__),Rec(i__),e_Rec(i__),
     +  n(i__),e_n(i__),b_a(i__),e_b_a(i__),Filter(i__),HWFM(i__)
        if(ar__1(57:60) .EQ. '') e_Rec(i__) = rNULL__
        if(ar__1(62:65) .EQ. '') n(i__) = rNULL__
        if(ar__1(67:70) .EQ. '') e_n(i__) = rNULL__
        if(ar__1(72:75) .EQ. '') b_a(i__) = rNULL__
        if(ar__1(77:80) .EQ. '') e_b_a(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  SDSS_1(i__),Name(i__),z_1(i__),l_Rec(i__),Rec(i__),e_Rec(i__),
     +  n(i__),e_n(i__),b_a(i__),e_b_a(i__),Filter(i__),HWFM(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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