FORTRAN Generation
(/./ftp/cats/J/MNRAS/426/296)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/426/296 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-20
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/MNRAS/426/296   Compact Groups of galaxies from 2MASX    (Diaz-Gimenez+, 2012)
*================================================================================
*Compact groups of galaxies selected by stellar mass:
*the 2MASS compact group catalogue.
*    Diaz-Gimenez E., Mamon G.A., Pacheco M., Mendes De Oliveira C., Alonso M.V.
*   <Mon. Not. R. Astron. Soc., 426, 296-316 (2012)>
*   =2012MNRAS.426..296D
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablec1.dat'	! CGs after velocity filtering in the 2MASS XSC

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg       ! (deg) Right Ascension J2000
      real*8        DEdeg       ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     CG          ! [1/85] Group identification number
      integer*4     RAh         ! (h) CG centre Right ascension (J2000)
      integer*4     RAm         ! (min) CG centre Right ascension (J2000)
      integer*4     RAs         ! (s) CG centre Right ascension (J2000)
      character*1   DE_         ! CG centre Declination sign (J2000)
      integer*4     DEd         ! (deg) CG centre Declination (J2000)
      integer*4     DEm         ! (arcmin) CG centre Declination (J2000)
      integer*4     DEs         ! (arcsec) CG centre Declination (J2000)
      integer*4     RV          ! (km/s) Median radial velocity
      integer*4     Ng          ! Number of galaxy members in the CG in the
*                                   range of 3mag from the brightest member
      real*4        Kmagb       ! (mag) Extinction-corrected K-band apparent magnitude
*                                   of the brightest galaxy
      real*4        muK         ! (mag/arcsec2) Extinction-corrected K-band group surface
*                                   brightness
      real*4        theta       ! (arcmin) Angular diameter {theta}_G_ of the smallest
*                                   circumscribed circle to the group
      real*4        v_Rij_      ! (kpc) Median projected separation among galaxies
*                                   (in kpc/h, Ho=100h.km/s/Mpc)
      real*4        b_a         ! [0/1] Apparent group elongation
      integer*4     sigma       ! (km/s) Radial velocity dispersion of the galaxies
*                                   in the CG
      real*4        H0_tcr      ! Dimensionless crossing time
      integer*4     M_L         ! (Msun/Lsun) Mass-to-light ratio in the K band
*                                   (in h*M_{sun}_/L_{sun}_, Ho=100h.km/s/Mpc)
      character*35  CID         ! Cross-identification with other group
*                                   catalogues (1)
*Note (1): Acronyms used for cross-IDs:
*     AM = Arp+Madore Southern Peculiar Galaxies and Associations
*          (Arp & Madore 1987, Cat. VII/170)
*    Arp = Arp Peculiar Galaxies (Arp 1966, Cat. VII/74)
*    HCG = Hickson Compact Group (Hickson 1982, Cat. VII/213)
*   HDCE = high-density-contrast groups - erratum version (Crook et al. 2008,
*          ApJ, 685, 1320 erratum to 2007ApJ...655..790C)
*    KPG = Karachentsev Isolated Pairs of Galaxies Catalogue
*          (Karachentsev 1972, Cat. VII/77)
*    KTG = Karachentsev Isolated Triplets of Galaxies Catalogue (Karachentsev,
*          Karachentsev & Lebedev 1988, Cat. VII/83)
*    KTS = Karachentseva Triple System (Karachentseva & Karachentsev 2000,
*          Cat. J/PAZh/77/569)
*    M60 = Mamon (1989A&A...219...98M, 2008A&A...486..113M)
*   Rose = Rose Compact Groups of Galaxies (Rose 1977ApJ...211..311R)
*   RSCG = Redshift Survey Compact Group (Barton et al. 1996AJ....112..871B)
*    SCG = Southern Compact Group (Prandoni et al. 1994AJ....107.1235P ;
*          Iovino 2002AJ....124.2471I)
*  UZC-CG = Updated Zwicky Catalogue-Compact Group (Focardi & Kelm 2002,
*           Cat. J/A+A/391/35)
*    USGC = UZC/SSRS2 Group Catalogue (Ramella et al. 2002, Cat. J/AJ/123/2976)
*      VV = Interacting galaxies catalogue (Vorontsov-Velyaminov, Noskova &
*           Arkhipova 2001, Cat. VII/236)
*     WBL = White+Bliton+Bhavsar groups (White et al. 1999, Cat. J/AJ/118/2014)

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

C  Declarations for 'tablec2.dat'	! Galaxies in Compact Groups after the velocity
                                 filtering, identified in the 2MASX catalogue

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg_1     ! (deg) Right Ascension J2000
      real*8        DEdeg_1     ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     CG_1        ! [1/85] Group identification number
      integer*4     Gal         ! Galaxy identification number within the group
      integer*4     RAh_1       ! (h) CG centre Right ascension (J2000)
      integer*4     RAm_1       ! (min) CG centre Right ascension (J2000)
      real*4        RAs_1       ! (s) CG centre Right ascension (J2000)
      character*1   DE__1       ! CG centre Declination sign (J2000)
      integer*4     DEd_1       ! (deg) CG centre Declination (J2000)
      integer*4     DEm_1       ! (arcmin) CG centre Declination (J2000)
      real*4        DEs_1       ! (arcsec) CG centre Declination (J2000)
      real*4        Kmag        ! (mag) Galactic Extinction-corrected K-band apparent
*                                   magnitude
      real*4        Kcorr       ! (mag) k-correction in the K-band computed from
*                                   Chilingarian et al. (2010MNRAS.405.1409C) as
*                                   a function of redshift and colour (H-K)
      integer*4     RV_1        ! (km/s) Radial velocity
      integer*4     e_RV        ! (km/s) rms uncertainty on RV
      integer*4     r_RV        ! Catalogue from which the radial velocity and
*                                   errors were extracted (1)
      integer*8     objID       ! ?=0 Object ID in the SDSS database
      character*16  v2MASX      ! ID in the 2MASS database, HHMMSSss+DDMMSSs
*                                  (Cat. VII/233)
*Note (1): References for radial velocities as follows:
*   0 = NED
*   1 = main 2MRS (Huchra et al. 2012, Cat. J/ApJS/199/26)
*   2 = extra 2MRS (Huchra et al. 2012, Cat. J/ApJS/199/26)
*   3 = 2M++ redshift compilation (Lavaux & Hudson, 2011, Cat. J/MNRAS/416/2840)

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

C  Loading file 'tablec1.dat'	! CGs after velocity filtering in the 2MASS XSC

C  Format for file interpretation

    1 format(
     +  I2,1X,I2,1X,I2,1X,I2,1X,A1,I2,1X,I2,1X,I2,1X,I5,1X,I1,1X,F5.2,
     +  1X,F5.2,1X,F5.2,1X,F6.2,1X,F4.2,1X,I3,1X,F5.3,1X,I4,1X,A35)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablec1.dat')
      write(6,*) '....Loading file: tablec1.dat'
      do i__=1,85
        read(1,'(A110)')ar__
        read(ar__,1)
     +  CG,RAh,RAm,RAs,DE_,DEd,DEm,DEs,RV,Ng,Kmagb,muK,theta,v_Rij_,
     +  b_a,sigma,H0_tcr,M_L,CID
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  CG,RAh,RAm,RAs,DE_,DEd,DEm,DEs,RV,Ng,Kmagb,muK,theta,v_Rij_,
     +  b_a,sigma,H0_tcr,M_L,CID
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tablec2.dat'	! Galaxies in Compact Groups after the velocity
*                                 filtering, identified in the 2MASX catalogue

C  Format for file interpretation

    2 format(
     +  1X,I2,1X,I2,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,1X,
     +  F5.2,1X,F5.2,1X,I5,2X,I3,1X,I1,1X,I18,1X,A16)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablec2.dat')
      write(6,*) '....Loading file: tablec2.dat'
      do i__=1,364
        read(1,'(A92)')ar__1
        read(ar__1,2)
     +  CG_1,Gal,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Kmag,Kcorr,
     +  RV_1,e_RV,r_RV,objID,v2MASX
        RAdeg_1 = rNULL__
        DEdeg_1 = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
        if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
        if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
        if(DEd_1 .GE. 0) DEdeg_1=DEd_1
        if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
        if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
        if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c    ..............Just test output...........
        write(6,2)
     +  CG_1,Gal,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Kmag,Kcorr,
     +  RV_1,e_RV,r_RV,objID,v2MASX
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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