FORTRAN Generation
(/./ftp/cats/J/ApJ/706/158)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/706/158 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-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/706/158          Early-type galaxies in PEARS            (Ferreras+, 2009)
*================================================================================
*Early-type galaxies in the PEARS survey: probing the stellar populations at
*moderate redshift.
*    Ferreras I., Pasquali A., Malhotra S., Rhoads J., Cohen S., Windhorst R.,
*    Pirzkal N., Grogin N., Koekemoer A.M., Lisker T., Panagia N., Daddi E.,
*    Hathi N.P.
*   <Astrophys. J., 706, 158-169 (2009)>
*   =2009ApJ...706..158F
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Catalog of PEARS early-type galaxies: observed data

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     PEARS      (nr__) ! PEARS (Probing Evolution And Reionization
*                                  Spectroscopically) identification number
      real*8        RAdeg      (nr__) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000)
      real*4        imag       (nr__) ! (mag) The HST/ACS i-band (F775W) AB magnitude
      real*4        Re         (nr__) ! (pix) Half-light radius (1pixel=0.3arcsec)
      real*4        z          (nr__) ! Redshift
      integer*4     B_R        (nr__) ! [0/1] Red (0) or Blue (1) SED (1)
*Note (1): Blue/Red SED types are based on the visual inspection of the
*     PEARS slitless grism data.

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

C  Declarations for 'table3.dat'	! Catalog of PEARS early-type galaxies: physical
                             properties in chemical enrichment (CSP) model

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

      integer*4     PEARS_1    (nr__1) ! PEARS (Probing Evolution And Reionization
*                                   Spectroscopically) identification number
      real*4        M_         (nr__1) ! (10+10Msun) Stellar mass
      real*4        U_V        (nr__1) ! (mag) Rest-frame (U-V) color (Vega scale)
      real*4        VMag       (nr__1) ! (mag) Rest-frame absolute V-band (Vega scale)
      real*4        ReP        (nr__1) ! (kpc) Projected half-light radius
      real*4        v_t_       (nr__1) ! (Gyr) Average age
      real*4        sig_t      (nr__1) ! (Gyr) RMS of age distribution
      real*4        v_logZ_    (nr__1) ! ([Sun]) Average logarithmic metallicity
*                                   (relative to Sun)
      real*4        beta       (nr__1) ! [0/1] Outflow fraction (mass fraction of gas
*                                   ejected as a result of the ongoing
*                                   star formation)
      real*4        zF         (nr__1) ! Formation epoch, given by the redshift
*                                   at which infall starts
      real*4        logTf      (nr__1) ! ([Gyr]) Log of infall timescale

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

C  Loading file 'table1.dat'	! Catalog of PEARS early-type galaxies: observed data

C  Format for file interpretation

    1 format(I6,2X,F11.7,2X,F10.6,2X,F5.2,2X,F5.2,2X,F4.2,2X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,228
        read(1,'(A54)')ar__
        read(ar__,1)
     +  PEARS(i__),RAdeg(i__),DEdeg(i__),imag(i__),Re(i__),z(i__),
     +  B_R(i__)
c    ..............Just test output...........
        write(6,1)
     +  PEARS(i__),RAdeg(i__),DEdeg(i__),imag(i__),Re(i__),z(i__),
     +  B_R(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Catalog of PEARS early-type galaxies: physical
*                             properties in chemical enrichment (CSP) model

C  Format for file interpretation

    2 format(
     +  I6,2X,F5.2,2X,F5.2,2X,F6.2,2X,F5.2,2X,F4.2,2X,F4.2,2X,F5.2,2X,
     +  F4.2,2X,F3.1,2X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,228
        read(1,'(A72)')ar__1
        read(ar__1,2)
     +  PEARS_1(i__),M_(i__),U_V(i__),VMag(i__),ReP(i__),v_t_(i__),
     +  sig_t(i__),v_logZ_(i__),beta(i__),zF(i__),logTf(i__)
c    ..............Just test output...........
        write(6,2)
     +  PEARS_1(i__),M_(i__),U_V(i__),VMag(i__),ReP(i__),v_t_(i__),
     +  sig_t(i__),v_logZ_(i__),beta(i__),zF(i__),logTf(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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