FORTRAN Generation
(/./ftp/cats/J/A_A/598/A107)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/598/A107 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-Apr-18
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/598/A107       Candidate galaxy clusters in KiDS-DR2     (Radovich+, 2017)
*================================================================================
*Searching for galaxy clusters in  the Kilo-Degree Survey.
*    Radovich M., Puddu E., Bellagamba F., Roncarelli M., Moscardini L.,
*    Bardelli S., Grado A., Getman F., Maturi M., Huang Z., Napolitano N.,
*    McFarland J., Valentijn E., Bilicki M.
*    <Astron. Astrophys. 598, A107 (2017)>
*    =2017A&A...598A.107R        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'clusters.dat'	! Cluster positions and masses
                                 (corrected version, 27/03/2020)

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

C  J2000 position composed of: RAdeg DEdeg
      character*16  KDR2       (nr__) ! Cluster name (JHHMMSS.s+DDMMSS)
      real*8        RAdeg      (nr__) ! (deg) Cluster Right Ascension (J2000)
      real*8        DEdeg      (nr__) ! (deg) Cluster Declination (J2000)
      real*4        z          (nr__) ! Photometric redshift of cluster
      real*4        snr        (nr__) ! Signal to noise of cluster detection
      real*8        RABdeg     (nr__) ! (deg) BCG Right Ascension (J2000)
      real*8        DEBdeg     (nr__) ! (deg) BCG Declination (J2000)
      real*4        rmag       (nr__) ! (mag) BCG r band magnitude
      integer*4     N500       (nr__) ! Number of member galaxy candidates
*                                      within R500
      real*4        r500       (nr__) ! (Mpc) Radius at Delta=500
      real*4        M500       (nr__) ! (10+14Msun) Cluster mass within r500
      real*4        e_M500     (nr__) ! (10+14Msun) rms uncertainty on M500
      integer*4     N200       (nr__) ! Number of member galaxy candidates
*                                      within R500
      real*4        r200       (nr__) ! (Mpc) Radius at Delta=200
      real*4        M200       (nr__) ! (10+14Msun) Cluster mass within r200
      real*4        e_M200     (nr__) ! (10+14Msun) rms uncertainty on M200

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

C  Loading file 'clusters.dat'	! Cluster positions and masses
*                                 (corrected version, 27/03/2020)

C  Format for file interpretation

    1 format(
     +  5X,A16,1X,F7.3,1X,F7.3,1X,F4.2,1X,F4.1,1X,F9.5,1X,F9.5,1X,
     +  F5.2,1X,I2,1X,F4.2,1X,F4.2,1X,F4.2,1X,I3,1X,F4.2,1X,F4.2,1X,
     +  F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'clusters.dat')
      write(6,*) '....Loading file: clusters.dat'
      do i__=1,1543
        read(1,'(A110)')ar__
        read(ar__,1)
     +  KDR2(i__),RAdeg(i__),DEdeg(i__),z(i__),snr(i__),RABdeg(i__),
     +  DEBdeg(i__),rmag(i__),N500(i__),r500(i__),M500(i__),
     +  e_M500(i__),N200(i__),r200(i__),M200(i__),e_M200(i__)
c    ..............Just test output...........
        write(6,1)
     +  KDR2(i__),RAdeg(i__),DEdeg(i__),z(i__),snr(i__),RABdeg(i__),
     +  DEBdeg(i__),rmag(i__),N500(i__),r500(i__),M500(i__),
     +  e_M500(i__),N200(i__),r200(i__),M200(i__),e_M200(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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