FORTRAN Generation
(/./ftp/cats/J/ApJS/195/15)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJS/195/15 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/ApJS/195/15           Luminosity profiles of BCGs            (Donzelli+, 2011)
*================================================================================
*The luminosity profiles of brightest cluster galaxies.
*    Donzelli C.J., Muriel H., Madrid J.P.
*   <Astrophys. J. Suppl. Ser., 195, 15 (2011)>
*   =2011ApJS..195...15D
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! BCGs photometrical parameters

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

      character*5   Name        ! Abell cluster name (ANNNN)
      real*4        mue         ! (mag/arcsec2) Effective surface magnitude (in Rc band)
      real*4        re          ! (kpc) Effective radius (in Rc band)
      real*4        n           ! Sersic n parameter
      real*4        mu0         ! (mag/arcsec2) ? Central Rc surface magnitude
      real*4        r0          ! (kpc) ? Scale length
      real*4        MAGS        ! (mag) Absolute magnitude of the Sersic component
      real*4        MAGexp      ! (mag) ?=0 Absolute Rc magnitude of the exponential
*                                   component
      real*4        MAGtot      ! (mag) Total Rc absolute magnitude of the BCG
      real*4        S_e         ! ? Sersic to exponential component light ratio
      real*4        alpha       ! The {alpha} parameter (1)
      real*4        elli        ! Inner ellipticity (2)
      real*4        ello        ! Outer ellipticity (2)
      real*4        PAi         ! Inner position angle of the isophote (2)
      real*4        PAo         ! Outer position angle of the isophote (2)
      real*4        MAGM        ! (mag) Metric absolute magnitude, calculated at
*                                   r=14.5kpc
*Note (1): The logarithmic slope of the metric luminosity or {alpha} parameter
*     which is defined as:
*         {alpha}=d(log(L_m_))/d(log(r_m_)), 
*     where L_m_ is the total BCG luminosity within a circular aperture of
*     radius r_m_ centered on the BCG nucleus. Following Postman & Lauer
*     (1995, Cat. J/ApJ/440/28) we have calculated this parameter at r=14.5kpc.
*Note (2): The inner ellipticity (measured at 10"), outer ellipticity
*     (measured at ~23-24mag/arcsec^2^), and inner and outer position angles
*     of the isophotes where the ellipticities are measured. Position angles
*     are from north to east and the typical observed errors are ~5{deg},
*     while typical errors for ellipticities are 0.06.

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

C  Loading file 'table2.dat'	! BCGs photometrical parameters

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,430
        read(1,'(A97)')ar__
        read(ar__,1)
     +  Name,mue,re,n,mu0,r0,MAGS,MAGexp,MAGtot,S_e,alpha,elli,ello,
     +  PAi,PAo,MAGM
        if(ar__(25:29) .EQ. '') mu0 = rNULL__
        if(ar__(31:35) .EQ. '') r0 = rNULL__
        if(ar__(58:62) .EQ. '') S_e = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name,mue,re,n,mu0,r0,MAGS,MAGexp,MAGtot,S_e,alpha,elli,ello,
     +  PAi,PAo,MAGM
c    .......End.of.Just test output...........
      end do
      close(1)

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