FORTRAN Generation
(/./ftp/cats/J/A_A/602/A100)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/602/A100 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-05
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/602/A100    Merging groups and clusters from the SDSS data (Tempel+, 2017)
*================================================================================
*Merging groups and clusters of galaxies from the SDSS data.
*The catalogue of groups and potentially merging systems.
*    Tempel E., Tuvikene T., Kipper R., Libeskind N.I.
*    <Astron. Astrophys. 602, A100 (2017)>
*    =2017A&A...602A.100T        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Catalog of galaxies

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     GalID      (nr__) ! [1/584449] Unique galaxy identification
      integer*8     specID     (nr__) ! ?=0 SDSS DR10 spectroscopic objectID
*                                    (0=missing)
      integer*8     objID      (nr__) ! SDSS DR10 photometric objectID
      integer*4     GroupID    (nr__) ! [0/88662] Group/cluster id
*                                    (0=isolated galaxy)
      integer*4     Ngal       (nr__) ! [1/254] Richness of group galaxy belongs
      integer*4     Rank       (nr__) ! [1/254] Luminosity rank within its group
      real*8        Dist_g     (nr__) ! (Mpc) Comoving distance to group centre (G1)
      real*8        zobs       (nr__) ! [-0.01/0.21] Observed redshift
      real*8        zcmb       (nr__) ! [0/0.2] Redshift (CMB rest frame)
      real*8        e_zobs     (nr__) ! Uncertainty of the redshift
      real*8        Dist       (nr__) ! (Mpc) Comoving distance (G1)
      real*8        Distcor    (nr__) ! (Mpc) Comoving distance, after suppressing the
*                                    "finger-of-god" effect (G1)
      real*8        RAdeg      (nr__) ! (deg) Right ascension (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination (J2000)
      real*8        GLON       (nr__) ! (deg) Galactic longitude
      real*8        GLAT       (nr__) ! (deg) Galactic latitude
      real*8        SGLON      (nr__) ! (deg) Supergalactic longitude
      real*8        SGLAT      (nr__) ! (deg) Supergalactic latitude
      real*8        lambda     (nr__) ! (deg) SDSS survey coordinate, {lambda}
      real*8        eta        (nr__) ! (deg) SDSS survey coordinate, {eta}
      real*8        Xpos       (nr__) ! (Mpc) Cartesian x coordinate (G1)
      real*8        Ypos       (nr__) ! (Mpc) Cartesian y coordinate (G1)
      real*8        Zpos       (nr__) ! (Mpc) Cartesian z coordinate (G1)
      real*8        umag       (nr__) ! (mag) Extinction corrected Petrosian u magnitude
      real*8        gmag       (nr__) ! (mag) Extinction corrected Petrosian g magnitude
      real*8        rmag       (nr__) ! (mag) Extinction corrected Petrosian r magnitude
      real*8        imag       (nr__) ! (mag) Extinction corrected Petrosian i magnitude
      real*8        zmag       (nr__) ! (mag) Extinction corrected Petrosian z magnitude
      real*8        uMAG_1     (nr__) ! (mag) Absolute magnitude u-band, k+e-corrected (G1)
      real*8        gMAG_1     (nr__) ! (mag) Absolute magnitude g-band, k+e-corrected (G1)
      real*8        rMAG_1     (nr__) ! (mag) Absolute magnitude r-band, k+e-corrected (G1)
      real*8        iMAG_1     (nr__) ! (mag) Absolute magnitude i-band, k+e-corrected (G1)
      real*8        zMAG_1     (nr__) ! (mag) Absolute magnitude z-band, k+e-corrected (G1)
      real*8        k_e_u      (nr__) ! (mag) k+e-correction (u filter)
      real*8        k_e_g      (nr__) ! (mag) k+e-correction (g filter)
      real*8        k_e_r      (nr__) ! (mag) k+e-correction (r filter)
      real*8        k_e_i      (nr__) ! (mag) k+e-correction (i filter)
      real*8        k_e_z      (nr__) ! (mag) k+e-correction (z filter)
      real*8        ext_u      (nr__) ! (mag) Galactic extinction (u filter)
      real*8        ext_g      (nr__) ! (mag) Galactic extinction (g filter)
      real*8        ext_r      (nr__) ! (mag) Galactic extinction (r filter)
      real*8        ext_i      (nr__) ! (mag) Galactic extinction (i filter)
      real*8        ext_z      (nr__) ! (mag) Galactic extinction (z filter)
      real*4        Lr         (nr__) ! (10+10Lsun) Observed luminosity in the r-band (G1)
      real*8        w          (nr__) ! [1/9.1] Weight factor for the galaxy (1)
      real*8        pE         (nr__) ! [0/1] Probability of early-type (2)
      real*8        pS0        (nr__) ! [0/1] Probability of S0 galaxy
      real*8        pSa        (nr__) ! [0/1] Probability of Sab galaxy
      real*8        pSc        (nr__) ! [0/1] Probability of Scd galaxy
      real*8        Dist_e     (nr__) ! (Mpc) Distance from survey mask border (G1)
      real*8        Den1       (nr__) ! Environmental density at scale=1.5Mpc (G2)
      real*8        Den2       (nr__) ! Environmental density at scale=3Mpc (G2)
      real*8        Den4       (nr__) ! Environmental density at scale=6Mpc (G2)
      real*8        Den8       (nr__) ! Environmental density at scale=10Mpc (G2)
*Note (1): times Lr was used to calculate the luminosity density field
*Note (2): Data is taken from Huertas-Company et al., 2011, Cat. J/A+A/525/A157.

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

C  Declarations for 'table2.dat'	! Catalog of galaxy groups

      integer*4 nr__1
      parameter (nr__1=88662)	! Number of records
      character*295 ar__1  	! Full-size record

C  J2000 position composed of: RAdeg DEdeg
      integer*4     GroupID_1  (nr__1) ! [1/88662] Group/cluster ID
      integer*4     Ngal_1     (nr__1) ! [2/254] Richness
      real*8        RAdeg_1    (nr__1) ! (deg) Right ascension (J2000)
      real*8        DEdeg_1    (nr__1) ! (deg) Declination (J2000)
      real*8        lambda_1   (nr__1) ! (deg) SDSS survey coordinate, {lambda}
      real*8        eta_1      (nr__1) ! (deg) SDSS survey coordinate, {eta}
      real*8        Xpos_1     (nr__1) ! (Mpc) Cartesian x coordinate (G1)
      real*8        Ypos_1     (nr__1) ! (Mpc) Cartesian y coordinate (G1)
      real*8        Zpos_1     (nr__1) ! (Mpc) Cartesian z coordinate (G1)
      real*8        zcmb_1     (nr__1) ! [0/0.2] Redshift (CMB rest frame)
      real*8        Dist_c     (nr__1) ! (Mpc) Comoving distance to group center (G1)
      real*8        sig_v      (nr__1) ! (km/s) rms radial velocity deviation {sigma}_V_
      real*8        sig_sky    (nr__1) ! (Mpc) rms deviation of the distance in plane of
*                                       sky from group center {sigma}_sky_ (G1)
      real*8        Rmax       (nr__1) ! (Mpc) Maximum radius of the group (G1)
      real*4        M200       (nr__1) ! (10+12Msun) Estimated mass of the NFW profile group
      real*4        R200       (nr__1) ! (Mpc) Radius, where mean density is 200 the
*                                       Universe average density
      real*4        Lrgroup    (nr__1) ! (10+10Lsun) Observed luminosity (G1)
      real*8        w_1        (nr__1) ! [1/9.1] Weight factor for the group
      real*8        Den1_1     (nr__1) ! Environment density: 1.5Mpc (G2)
      real*8        Den2_1     (nr__1) ! Environment density: 3Mpc (G2)
      real*8        Den4_1     (nr__1) ! Environment density: 6Mpc (G2)
      real*8        Den8_1     (nr__1) ! Environment density: 10Mpc (G2)
      real*8        DnearestCl (nr__1) ! (Mpc) Distance to the nearest cluster
      integer*4     IDnearestCl(nr__1) ! ID of the nearest cluster
      integer*4     IDmerger   (nr__1) ! ID of the group in merger catalog

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

C  Declarations for 'table3.dat'	! Catalog of merging systems

      integer*4 nr__2
      parameter (nr__2=498)	! Number of records
      character*50 ar__2  	! Full-size record

      integer*4     ID         (nr__2) ! Merging system ID
      integer*4     N          (nr__2) ! Number of mergers in the system
      integer*4     IDgr1      (nr__2) ! The 1st ID of the merging group
      integer*4     IDgr2      (nr__2) ! The 2nd ID of the merging group
      integer*4     IDgr3      (nr__2) ! The 3rd ID of the merging group
      integer*4     IDgr4      (nr__2) ! The 4th ID of the merging group
      integer*4     IDgr5      (nr__2) ! The 5th ID of the merging group
      integer*4     IDgr6      (nr__2) ! The 6th ID of the merging group

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

C  Loading file 'table1.dat'	! Catalog of galaxies

C  Format for file interpretation

    1 format(
     +  I6,1X,I19,1X,I19,1X,I6,3X,I3,3X,I3,1X,F10.6,1X,F12.9,1X,F12.9,
     +  1X,F12.9,1X,F10.6,1X,F10.6,1X,F14.9,1X,F14.9,1X,F14.9,1X,
     +  F14.9,1X,F14.9,1X,F14.9,1X,F14.9,1X,F14.9,1X,F11.6,1X,F11.6,
     +  1X,F11.6,1X,F11.6,1X,F11.6,1X,F11.6,1X,F11.6,1X,F11.6,1X,
     +  F11.6,1X,F11.6,1X,F11.6,1X,F11.6,1X,F11.6,1X,F11.6,1X,F11.6,
     +  1X,F11.6,1X,F11.6,1X,F11.6,1X,F11.6,1X,F11.6,1X,F11.6,1X,
     +  F11.6,1X,F11.6,2X,E11.6,1X,F9.6,1X,F8.5,1X,F8.5,1X,F8.5,1X,
     +  F8.5,1X,F10.6,1X,F13.8,1X,F13.8,1X,F13.8,1X,F13.8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,584449
        read(1,'(A659)')ar__
        read(ar__,1)
     +  GalID(i__),specID(i__),objID(i__),GroupID(i__),Ngal(i__),
     +  Rank(i__),Dist_g(i__),zobs(i__),zcmb(i__),e_zobs(i__),
     +  Dist(i__),Distcor(i__),RAdeg(i__),DEdeg(i__),GLON(i__),
     +  GLAT(i__),SGLON(i__),SGLAT(i__),lambda(i__),eta(i__),
     +  Xpos(i__),Ypos(i__),Zpos(i__),umag(i__),gmag(i__),rmag(i__),
     +  imag(i__),zmag(i__),uMAG_1(i__),gMAG_1(i__),rMAG_1(i__),
     +  iMAG_1(i__),zMAG_1(i__),k_e_u(i__),k_e_g(i__),k_e_r(i__),
     +  k_e_i(i__),k_e_z(i__),ext_u(i__),ext_g(i__),ext_r(i__),
     +  ext_i(i__),ext_z(i__),Lr(i__),w(i__),pE(i__),pS0(i__),
     +  pSa(i__),pSc(i__),Dist_e(i__),Den1(i__),Den2(i__),Den4(i__),
     +  Den8(i__)
c    ..............Just test output...........
        write(6,1)
     +  GalID(i__),specID(i__),objID(i__),GroupID(i__),Ngal(i__),
     +  Rank(i__),Dist_g(i__),zobs(i__),zcmb(i__),e_zobs(i__),
     +  Dist(i__),Distcor(i__),RAdeg(i__),DEdeg(i__),GLON(i__),
     +  GLAT(i__),SGLON(i__),SGLAT(i__),lambda(i__),eta(i__),
     +  Xpos(i__),Ypos(i__),Zpos(i__),umag(i__),gmag(i__),rmag(i__),
     +  imag(i__),zmag(i__),uMAG_1(i__),gMAG_1(i__),rMAG_1(i__),
     +  iMAG_1(i__),zMAG_1(i__),k_e_u(i__),k_e_g(i__),k_e_r(i__),
     +  k_e_i(i__),k_e_z(i__),ext_u(i__),ext_g(i__),ext_r(i__),
     +  ext_i(i__),ext_z(i__),Lr(i__),w(i__),pE(i__),pS0(i__),
     +  pSa(i__),pSc(i__),Dist_e(i__),Den1(i__),Den2(i__),Den4(i__),
     +  Den8(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Catalog of galaxy groups

C  Format for file interpretation

    2 format(
     +  I6,1X,I5,1X,F14.9,1X,F14.9,1X,F14.9,1X,F14.9,1X,F11.6,1X,
     +  F11.6,1X,F11.6,1X,F11.8,1X,F10.6,1X,F12.6,1X,F10.6,1X,F10.6,
     +  1X,E12.5,1X,E12.5,1X,E12.5,1X,F10.6,1X,F13.8,1X,F13.8,1X,
     +  F13.8,1X,F13.8,1X,F10.6,1X,I6,1X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,88662
        read(1,'(A295)')ar__1
        read(ar__1,2)
     +  GroupID_1(i__),Ngal_1(i__),RAdeg_1(i__),DEdeg_1(i__),
     +  lambda_1(i__),eta_1(i__),Xpos_1(i__),Ypos_1(i__),Zpos_1(i__),
     +  zcmb_1(i__),Dist_c(i__),sig_v(i__),sig_sky(i__),Rmax(i__),
     +  M200(i__),R200(i__),Lrgroup(i__),w_1(i__),Den1_1(i__),
     +  Den2_1(i__),Den4_1(i__),Den8_1(i__),DnearestCl(i__),
     +  IDnearestCl(i__),IDmerger(i__)
c    ..............Just test output...........
        write(6,2)
     +  GroupID_1(i__),Ngal_1(i__),RAdeg_1(i__),DEdeg_1(i__),
     +  lambda_1(i__),eta_1(i__),Xpos_1(i__),Ypos_1(i__),Zpos_1(i__),
     +  zcmb_1(i__),Dist_c(i__),sig_v(i__),sig_sky(i__),Rmax(i__),
     +  M200(i__),R200(i__),Lrgroup(i__),w_1(i__),Den1_1(i__),
     +  Den2_1(i__),Den4_1(i__),Den8_1(i__),DnearestCl(i__),
     +  IDnearestCl(i__),IDmerger(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Catalog of merging systems

C  Format for file interpretation

    3 format(I5,1X,I2,1X,I6,1X,I6,1X,I6,1X,I6,1X,I6,1X,I6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,498
        read(1,'(A50)')ar__2
        read(ar__2,3)
     +  ID(i__),N(i__),IDgr1(i__),IDgr2(i__),IDgr3(i__),IDgr4(i__),
     +  IDgr5(i__),IDgr6(i__)
c    ..............Just test output...........
        write(6,3)
     +  ID(i__),N(i__),IDgr1(i__),IDgr2(i__),IDgr3(i__),IDgr4(i__),
     +  IDgr5(i__),IDgr6(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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