FORTRAN Generation
(/./ftp/cats/J/A_A/614/A82)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/614/A82 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-Oct-11
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/614/A82 Cluster candidates for joint X-rays and SZ surveys (Tarrio+, 2018)
*================================================================================
*A matched filter approach for blind joint detection of galaxy clusters in
*X-ray and SZ surveys.
*    Tarrio P., Melin J.-B., Arnaud M.
*   <Astron. Astrophys., 614, A82 (2018)>
*   =2018A&A...614A..82T    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablec1.dat'	! List of candidates for P_FA_=3.40x10^-6^,
                                 ordered according to their significance

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     Seq        (nr__) ! [1/225] Sequential number
      real*8        GLON       (nr__) ! (deg) Galactic longitude
      real*8        GLAT       (nr__) ! (deg) Galactic latitude
      real*8        RAdeg      (nr__) ! (deg) Right ascension (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination (J2000)
      real*4        v_S_N_J    (nr__) ! Joint S/N
      real*4        v_S_N_sz   (nr__) ! SZ component of the joint S/N
      real*4        qJ         (nr__) ! Joint threshold
      real*4        v_S_N_J_qJ (nr__) ! Difference between the S/N and the threshold
      real*4        Signi      (nr__) ! Significance, calculated as explained in
*                                    Sect. 4
      character*18  PSZ2       (nr__) ! PSZ2 name (PSZ2 GLLL.ll+BB.bb)
*                                    (Cat. J/A+A/594/A27)
      character*16  SPT        (nr__) ! SPT name (SPT-CLJHHMM-DDMM)
*                                    (Cat. J/ApJS/216/27)
      character*16  MCXC       (nr__) ! MCXC name (RXC JHHMM.m+DDMM)
*                                    (Cat. J/A+A/534/A109)
      character*10  Abell      (nr__) ! Abell name (ABELL NNNN or ACOS NNNN)
*                                    (Cat. VII/4)
      real*4        z          (nr__) ! ? Redshift of the matching cluster (1)
      real*4        M500       (nr__) ! (10+14Msun) ? Mass estimation using the SZ redshift or
*                                    the MCXC redshift (the former is shown if
*                                    both are available)
*Note (1): if several are available, we preferentially show the SZ redshift,
*  then the MCXC redshift, and finally the Abell redshift

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

C  Loading file 'tablec1.dat'	! List of candidates for P_FA_=3.40x10^-6^,
*                                 ordered according to their significance

C  Format for file interpretation

    1 format(
     +  I3,1X,F7.3,1X,F7.3,1X,F7.3,1X,F7.3,1X,F6.2,1X,F5.2,1X,F4.2,1X,
     +  F6.2,1X,F5.2,1X,A18,1X,A16,1X,A16,1X,A10,1X,F4.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablec1.dat')
      write(6,*) '....Loading file: tablec1.dat'
      do i__=1,225
        read(1,'(A141)')ar__
        read(ar__,1)
     +  Seq(i__),GLON(i__),GLAT(i__),RAdeg(i__),DEdeg(i__),
     +  v_S_N_J(i__),v_S_N_sz(i__),qJ(i__),v_S_N_J_qJ(i__),Signi(i__),
     +  PSZ2(i__),SPT(i__),MCXC(i__),Abell(i__),z(i__),M500(i__)
        if(ar__(132:135) .EQ. '') z(i__) = rNULL__
        if(ar__(137:141) .EQ. '') M500(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Seq(i__),GLON(i__),GLAT(i__),RAdeg(i__),DEdeg(i__),
     +  v_S_N_J(i__),v_S_N_sz(i__),qJ(i__),v_S_N_J_qJ(i__),Signi(i__),
     +  PSZ2(i__),SPT(i__),MCXC(i__),Abell(i__),z(i__),M500(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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