FORTRAN Generation
(/./ftp/cats/J/A_A/461/397)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/461/397 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-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/A+A/461/397       RASS-SDSS galaxy cluster survey. V.      (Popesso+, 2007)
*================================================================================
*RASS-SDSS galaxy cluster survey. V. The X-ray-underluminous Abell clusters.
*    Popesso P., Biviano A., Boehringer H., Romaniello M.
*   <Astron. Astrophys., 461, 397-410 (2007)>
*   =2007A&A...461..397P
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablea1.dat'	! List the properties of the 137 spectroscopically
                              confirmed Abell systems extracted from the
                              SDSS DR3, used in this paper

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

      integer*4     ACO         ! Name of the Abell cluster
      integer*4     Nmemb       ! Number of cluster members
*                                       within 1 Abell radius
      real*4        zc          ! Cluster mean redshift
      integer*4     sigmac      ! (km/s) Cluster velocity dispersion
      integer*4     e_sigmac    ! (km/s) rms uncertainty on sigmac
      real*4        M200        ! (10+14solMass) Cluster mass within r_200_
      real*4        M200r       ! (10+14solMass) ?=- Cluster mass within r200 calculated
*                                          using only the cluster red members
      real*4        e_M200      ! (10+14solMass) Fractional error on M200 and M200,red
      real*4        r200        ! (Mpc) Cluster virial radius
      real*4        Lopt        ! (10+12solLum) Cluster optical luminosity
      real*4        e_Lopt      ! (10+12solLum) rms uncertainty on Lopt
      real*4        LX          ! (10+41W/m2) Cluster X-ray luminosity in the ROSAT
*                                       energy band (0.1-2.4keV)
      real*4        e_LX        ! (10+41W/m2) Fractional error on the X-ray luminosity
      real*4        PDS         ! Dressler & Shectman (1988AJ.....95..985D)
*                                       probability that a cluster does not
*                                       contain substructures (1)
      integer*4     Xcl         ! [0/2] X-ray class (2)
*Note (1): Values <0.1 indicate clusters that are likely to contain substructures
*Note (2): X-ray class as follows:
*      0 = normal X-ray emitting cluster
*      1 = Abell systems with less the 3{sigma} X-ray detection
*      2 = X-ray non-detected Abell Clusters

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

C  Loading file 'tablea1.dat'	! List the properties of the 137 spectroscopically
*                              confirmed Abell systems extracted from the
*                              SDSS DR3, used in this paper

C  Format for file interpretation

    1 format(
     +  4X,I4,1X,I3,1X,F6.4,1X,I4,1X,I3,1X,F5.2,1X,F5.2,1X,F4.2,1X,
     +  F3.1,1X,F5.2,1X,F4.2,1X,F5.3,1X,F4.2,1X,F4.2,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea1.dat')
      write(6,*) '....Loading file: tablea1.dat'
      do i__=1,137
        read(1,'(A78)')ar__
        read(ar__,1)
     +  ACO,Nmemb,zc,sigmac,e_sigmac,M200,M200r,e_M200,r200,Lopt,
     +  e_Lopt,LX,e_LX,PDS,Xcl
        if (idig(ar__(36:40)).EQ.0) M200r =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  ACO,Nmemb,zc,sigmac,e_sigmac,M200,M200r,e_M200,r200,Lopt,
     +  e_Lopt,LX,e_LX,PDS,Xcl
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end