FORTRAN Generation
(/./ftp/cats/J/ApJ/633/174)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/633/174 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-20
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/633/174        Spheroidals and bulge dominated galaxies      (Treu+, 2005)
*================================================================================
*The assembly history of field spheroidals: evolution of mass-to-light ratios and
*signatures of recent star formation.
*    Treu T., Ellis R.S., Liao T.X., Van Dokkum P.G., Tozzi P., Coil A.,
*    Newman J., Cooper M.C., Davis M.
*   <Astrophys. J., 633, 174-197 (2005)>
*   =2005ApJ...633..174T
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Catalog of spheroidals and bulge dominated galaxies

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     v_TEL2005_  ! Running identification number
      real*8        RAdeg       ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg       ! (deg) Declination in decimal degrees (J2000)
      integer*4     MType       ! Morphological type (1)
      real*4        Bmag        ! (mag) ? Model F435W AB magnitude from r^1/4^
*                                      fitting (2)
      real*4        Bre         ! (arcsec) ? Effective F435W radius from r^1/4^
*                                      fitting (2)
      real*4        Vmag        ! (mag) ? Model F606W AB magnitude from r^1/4^
*                                      fitting (2)
      real*4        Vre         ! (arcsec) ? Effective F606W radius from r^1/4^
*                                      fitting (2)
      real*4        Imag        ! (mag) ? Model F814W AB magnitude from r^1/4^
*                                      fitting (2)
      real*4        Ire         ! (arcsec) ? Effective F814W radius from r^1/4^
*                                      fitting (2)
      real*4        Zmag        ! (mag) ? Model F850LP AB magnitude from r^1/4^
*                                      fitting (2)
      real*4        Zre         ! (arcsec) ? Effective F850LP radius from r^1/4^
*                                      fitting (2)
      real*4        z           ! Redshift (3)
      real*4        sigma       ! (km/s) ? Velocity dispersion (not corrected to
*                                      standard aperture)
      real*4        e_sigma     ! (km/s) ? Error on sigma
      real*4        EW_OII_     ! (0.1nm) ? Rest frame [OII] equivalent width (4)
      real*4        e_EW_OII_   ! (0.1nm) ? Error in EW[OII] (4)
      real*4        EW_Hd       ! (0.1nm) ? Rest frame H{delta} equivalent width (4)
      real*4        e_EW_Hd     ! (0.1nm) ? Error in EW(Hd) (4)
      real*8        S_N         ! (10nm-1) Observer frame S/N ratio (per Angstrom)
      integer*4     ExpTime     ! (s) Spectroscopic exposure time
*Note (1): Morphological type, defined as follows:
*     -1 = Compact;
*      0 = E;
*      1 = E/S0;
*      2 = S0;
*      3 = Sa+b.
*Note (2): Photometric parameters through the b4 filter are derived only for
*          objects at z<0.34. Formal GALFIT uncertainties on magnitudes and
*          effective radii are 0.01-0.02mags and a 1-10% in effective radii.
*          Total uncertainties on the combination of photometric parameters
*          that enters the Fundamental Plane log(R_e_-0.32SB_e_) are 0.02-0.03.
*Note (3): All redshifts are quality 4 (certain) except for object 1112
*          (quality 2, possible), and objects 243, 94, 378, 22, 804, 337, 1382,
*          1534, 454, 1452 (quality 3, likely). See paper for details.
*Note (4): In units of Angstroms. [OII] 3727{AA} and H{delta} 4101{AA} lines.

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

C  Loading file 'table1.dat'	! Catalog of spheroidals and bulge dominated galaxies

C  Format for file interpretation

    1 format(
     +  I4,1X,F9.5,1X,F8.5,1X,I2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,
     +  F5.2,1X,F5.2,1X,F5.2,1X,F4.2,1X,F6.4,1X,F6.2,1X,F6.3,1X,F5.1,
     +  1X,F4.1,1X,F5.1,1X,F3.1,1X,F7.3,1X,I5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,226
        read(1,'(A129)')ar__
        read(ar__,1)
     +  v_TEL2005_,RAdeg,DEdeg,MType,Bmag,Bre,Vmag,Vre,Imag,Ire,Zmag,
     +  Zre,z,sigma,e_sigma,EW_OII_,e_EW_OII_,EW_Hd,e_EW_Hd,S_N,
     +  ExpTime
        if(ar__(28:32) .EQ. '') Bmag = rNULL__
        if(ar__(34:38) .EQ. '') Bre = rNULL__
        if(ar__(40:44) .EQ. '') Vmag = rNULL__
        if(ar__(46:50) .EQ. '') Vre = rNULL__
        if(ar__(52:56) .EQ. '') Imag = rNULL__
        if(ar__(58:62) .EQ. '') Ire = rNULL__
        if(ar__(64:68) .EQ. '') Zmag = rNULL__
        if(ar__(70:73) .EQ. '') Zre = rNULL__
        if(ar__(82:87) .EQ. '') sigma = rNULL__
        if(ar__(89:94) .EQ. '') e_sigma = rNULL__
        if(ar__(96:100) .EQ. '') EW_OII_ = rNULL__
        if(ar__(102:105) .EQ. '') e_EW_OII_ = rNULL__
        if(ar__(107:111) .EQ. '') EW_Hd = rNULL__
        if(ar__(113:115) .EQ. '') e_EW_Hd = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  v_TEL2005_,RAdeg,DEdeg,MType,Bmag,Bre,Vmag,Vre,Imag,Ire,Zmag,
     +  Zre,z,sigma,e_sigma,EW_OII_,e_EW_OII_,EW_Hd,e_EW_Hd,S_N,
     +  ExpTime
c    .......End.of.Just test output...........
      end do
      close(1)

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