FORTRAN Generation
(/./ftp/cats/J/ApJ/766/109)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/766/109 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 2026-Aug-15
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/766/109  Color/age/metallicity gradients of E galaxies  (Kim+, 2013)
*================================================================================
*Optical-near-infrared color gradients and merging history of elliptical
*galaxies.
*    Kim D., Im M.
*   <Astrophys. J., 766, 109 (2013)>
*   =2013ApJ...766..109K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! List of ellipticals and their properties

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

      integer*4     Seq        (nr__) ! [24/3726] Kaviraj, 2010, J/MNRAS/406/382
*                                    catalog identifier
      real*4        z          (nr__) ! [0.01/0.05] redshift
      real*4        reffr      (nr__) ! (arcsec) [1.6/27] The r band effective radius
      real*4        reffK      (nr__) ! (arcsec) [1.6/18] The K band effective radius
      real*4        g_g_r      (nr__) ! The (g-r) color gradient (1)
      real*4        e_g_g_r    (nr__) ! Uncertainty in g(g-r)
      real*4        g_r_K      (nr__) ! [-1.8/1.1] The (r-K) color gradient (1)
      real*4        e_g_r_K    (nr__) ! Uncertainty in g(r-K)
      real*4        g_g_K      (nr__) ! The (g-K) color gradient (1)
      real*4        e_g_g_K    (nr__) ! Uncertainty in g(g-K)
      real*4        g_t        (nr__) ! [-1.4/4.8] The age gradient (2)
      real*4        e_g_t      (nr__) ! [0/3.3] Uncertainty in g(t)
      real*4        g_Z        (nr__) ! [-2.7/1.7] The metallicity gradient (2)
      real*4        e_g_Z      (nr__) ! Uncertainty in g(Z)
      real*4        KMag       (nr__) ! (mag) [-24.4/-21.3] Absolute K band AB magnitude
      real*4        e_KMag     (nr__) ! (mag) [0/0.05] Uncertainty in KMag
      real*4        logM_      (nr__) ! ([Msun]) [10.6/11.9] Log stellar mass from KMag
      real*4        e_logM_    (nr__) ! ([Msun]) [0/0.02] Uncertainty in logM*
      real*4        B_T        (nr__) ! [0.5/1] Bulge to total light ratio
      character*1   Type       (nr__) ! [RTD] Morpological type: R=relaxed,
*                                    T=tidal-feature, D=dust-feature.
*Note (1): the gradient of color (a-b) g(a-b)={nabla}(a-b) is:
*    {nabla}(a-b) = {Delta}(SB(a)-SB(b))/{Delta}log(r/r_eff_(b))
*Note (2): grandients defined by:
*    {nabla}(t) = {Delta}log(t)/{Delta}log(r/r_eff_(K))
*    {nabla}(Z) = {Delta}log(Z)/{Delta}log(r/r_eff_(K))

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

C  Loading file 'table2.dat'	! List of ellipticals and their properties

C  Format for file interpretation

    1 format(
     +  I4,1X,F6.4,1X,F5.2,1X,F5.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,
     +  F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F6.2,1X,F4.2,
     +  1X,F5.2,1X,F4.2,1X,F4.2,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,205
        read(1,'(A108)')ar__
        read(ar__,1)
     +  Seq(i__),z(i__),reffr(i__),reffK(i__),g_g_r(i__),e_g_g_r(i__),
     +  g_r_K(i__),e_g_r_K(i__),g_g_K(i__),e_g_g_K(i__),g_t(i__),
     +  e_g_t(i__),g_Z(i__),e_g_Z(i__),KMag(i__),e_KMag(i__),
     +  logM_(i__),e_logM_(i__),B_T(i__),Type(i__)
c    ..............Just test output...........
        write(6,1)
     +  Seq(i__),z(i__),reffr(i__),reffK(i__),g_g_r(i__),e_g_g_r(i__),
     +  g_r_K(i__),e_g_r_K(i__),g_g_K(i__),e_g_g_K(i__),g_t(i__),
     +  e_g_t(i__),g_Z(i__),e_g_Z(i__),KMag(i__),e_KMag(i__),
     +  logM_(i__),e_logM_(i__),B_T(i__),Type(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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