FORTRAN Generation
(/./ftp/cats/VII/256)

Conversion of standardized ReadMe file for file /./ftp/cats/VII/256 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-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. VII/256       Groups of Galaxies from CfA2 Redshift Survey  (Mahtessian++, 2010)
*================================================================================
*The List of Groups of Galaxies Based on CfA2 Redshift Survey.
*     Mahtessian A.P., Movsessian V.G.
*   <Astrophysics, 53, 70 (2010)>
*   =2010Ap.....53...70M
*   =2010Afz....53...83M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Data of groups members

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

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

      integer*4     Group      (nr__) ! Number of group
      character*11  Galaxy     (nr__) ! Galaxy name, as in CfA2 (Cat. J/ApJS/121/287)
      integer*4     RAh        (nr__) ! (h) Right ascension (1950)
      real*4        RAm        (nr__) ! (min) [0/60] Right ascension (1950)
      character*1   DE_        (nr__) ! Declination sign (1950)
      integer*4     DEd        (nr__) ! (deg) Declination (1950)
      integer*4     DEm        (nr__) ! (arcmin) [0/60] Declination (1950)
      real*4        magc       (nr__) ! (mag) Apparent magnitude of galaxy corrected from
*                                 galactic absorption (Sandage,
*                                 1973ApJ...183..711S) and by K damping (Yang
*                                 et al., 2005MNRAS.356.1293Y.)
      integer*4     RVc        (nr__) ! (km/s) Virgo-centric radial velocities of galaxy
*                                (Mahtessian, 1997Ap.....40..285M)
      character*5   T          (nr__) ! Morphological type of galaxy by CfA2
*                                  (99 means, that the type is unknown)
      integer*4     RVC_1      (nr__) ! (km/s) Radial velocities of galaxy relative to the
*                                 group centre
      real*4        RC         (nr__) ! (Mpc) Projected distance of galaxy to group centre
      real*4        MAG        (nr__) ! (mag) Absolute magnitude of galaxy
      real*4        Lum        (nr__) ! (solLum) Luminosity of galaxy

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

C  Declarations for 'table2.dat'	! Mean parameters of groups

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

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

      integer*4     Group_1    (nr__1) ! Group number
      integer*4     RAh_1      (nr__1) ! (h) A mean right ascension of group (1950)
      real*4        RAm_1      (nr__1) ! (min) [0/60] A mean right ascension of group (1950)
      character*1   DE__1      (nr__1) ! Declination sign (1950)
      integer*4     DEd_1      (nr__1) ! (deg) A mean declination of group (1950)
      integer*4     DEm_1      (nr__1) ! (arcmin) [0/60] A mean declination of group (1950)
      integer*4     Ng         (nr__1) ! Number of visible members of group
      integer*4     VG         (nr__1) ! (km/s) Mean Virgocentric velocity of group
      integer*4     sigma      (nr__1) ! (km/s) A dispersion of radial velocity of members
*                                 of group
      real*4        Rmean      (nr__1) ! (Mpc) Mean distance of members of group from its
*                                 centre
      real*4        Rmax       (nr__1) ! (Mpc) Group radius: the greatest distance of
*                                 members of group from its centre
      real*4        Lobs       (nr__1) ! (solLum) Total luminosity of visible members of group
      real*4        Ltot       (nr__1) ! (solLum) Total luminosity both visible, and invisible
*                                 members of group
      real*4        FIC        (nr__1) ! (%) Relative quantity of false members of groups
*                                 in percentage (Mahtessian, 1998Ap.....41..308M)

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

C  Loading file 'table1.dat'	! Data of groups members

C  Format for file interpretation

    1 format(
     +  I4,1X,A11,2X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F5.2,1X,I5,1X,A5,1X,
     +  I5,1X,F4.2,1X,F6.2,1X,E8.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,6787
        read(1,'(A77)')ar__
        read(ar__,1)
     +  Group(i__),Galaxy(i__),RAh(i__),RAm(i__),DE_(i__),DEd(i__),
     +  DEm(i__),magc(i__),RVc(i__),T(i__),RVC_1(i__),RC(i__),
     +  MAG(i__),Lum(i__)
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  Group(i__),Galaxy(i__),RAh(i__),RAm(i__),DE_(i__),DEd(i__),
     +  DEm(i__),magc(i__),RVc(i__),T(i__),RVC_1(i__),RC(i__),
     +  MAG(i__),Lum(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Mean parameters of groups

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,1971
        read(1,'(A69)')ar__1
        read(ar__1,2)
     +  Group_1(i__),RAh_1(i__),RAm_1(i__),DE__1(i__),DEd_1(i__),
     +  DEm_1(i__),Ng(i__),VG(i__),sigma(i__),Rmean(i__),Rmax(i__),
     +  Lobs(i__),Ltot(i__),FIC(i__)
        RAdeg_1(i__) = rNULL__
        DEdeg_1(i__) = 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(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
        if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
        if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
        if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
        if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  Group_1(i__),RAh_1(i__),RAm_1(i__),DE__1(i__),DEd_1(i__),
     +  DEm_1(i__),Ng(i__),VG(i__),sigma(i__),Rmean(i__),Rmax(i__),
     +  Lobs(i__),Ltot(i__),FIC(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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