FORTRAN Generation
(/./ftp/cats/J/ApJ/534/114)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/534/114 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-16
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/ApJ/534/114       RASSCALS:  X-ray and optical study       (Mahdavi+, 2000)
*================================================================================
*The RASSCALS: an X-ray and optical study of 260 galaxy groups.
*    Mahdavi A., Bohringer H., Geller M.J., Ramella M.
*   <Astrophys. J. 534, 114 (2000)>
*   =2000ApJ...534..114M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! *The RASSCALS: Basic Properties

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

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

      character*7   RASSCALS   (nr__) ! Object designation (1)
      integer*4     RAh        (nr__) ! (h) Right ascension (J2000.0) (2)
      integer*4     RAm        (nr__) ! (min) Right ascension (J2000.0)
      real*4        RAs        (nr__) ! (s) Right ascension (J2000.0)
      character*1   DE_        (nr__) ! Declination sign (J2000.0)
      integer*4     DEd        (nr__) ! (deg) Declination (J2000.0)
      integer*4     DEm        (nr__) ! (arcmin) Declination (J2000.0)
      integer*4     DEs        (nr__) ! (arcsec) Declination (J2000.0)
      integer*4     N          (nr__) ! Number of group members
      integer*4     N17        (nr__) ! Number of group members brighter than an
*                                   absolute magnitude M_Z_=-17, corresponding to
*                                   m_Z_=15.5 for a group at cz=3200km/s
      integer*4     cz         (nr__) ! (km/s) Recession velocity
      integer*4     e_cz       (nr__) ! (km/s) rms uncertainty on cz
      real*4        logsigmap  (nr__) ! ([km/s]) Velocity dispersion of the dark matter halo
*                                    in which the galaxies are embedded
      real*4        e_logsigmap(nr__) ! ([km/s]) rms uncertainty on logsigmap
      character*1   l_logLX    (nr__) ! Limit flag on logLX
      real*4        logLX      (nr__) ! ([10-7W]) ? X-ray luminosity (in h_100_^-2^erg/s) (3)
      real*4        e_logLX    (nr__) ! ([10-7W]) ? rms uncertainty on logLX
      character*1   n_logLX    (nr__) ! [d] Note (4)
      character*20  Names      (nr__) ! Other identifications (5)
*Note (1): We first assign each system a seven-character name, beginning
*    with "NRG," "SRG," or SS2," followed by "b" or "s" (specifying the
*    angular size of the system as "big," with cz<8500km/s or "small," with
*    cz>8500km/s, respectively), followed by a three-digit number.
*Note (2): For the 59 groups with a listed X-ray luminosity, we report
*    the X-ray centroid; for the others we report the mean RA and DE of the
*    galaxies in the group.
*Note (3): Luminosity in the 0.1-2.4keV band within an aperture
*Note (4): Two X-ray luminous Abell clusters which the optical group
*    finding algorithm has confused with the field. We count these as
*    detections but do not calculate their other X-ray properties.
*Note (5): By no means complete.
*       A: Abell (Cat. <VII/4>) cluster
*     AWM: Albert et al. (1977ApJ...211..309A) Groups
*     HCG: Hickson Compact Groups (Hickson, 1982, Cat. <VII/213>)
*    MGBR: Studied in greater detail in Mahdavi et al. 1999
*     MKW: Morgan, Kayser, & White (1975ApJ...199..545M) Groups
*     PPS: Loose Groups in the Perseus-Pisces Survey
*          (Trasarti-Battistoni, 1998, Cat. <J/A+AS/130/341>)
*      ZM: Zabludoff & Mulchaey (1998, Cat. <J/ApJ/496/39>) Poor Groups

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

C  Declarations for 'table3.dat'	! *The RASSCALS: Detailed Properties

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

      character*7   RASSCALS_1 (nr__1) ! Object designation
      real*4        logsigmap_1(nr__1) ! ([km/s]) Pojected velocity dispersion
      real*4        e_logsigmap_1(nr__1) ! ([km/s]) rms uncertainty on logsigmap
      real*4        logLX_0_25 (nr__1) ! ([10-7W]) X-ray luminosity within 0.25h_100_^-1^Mpc (1)
      real*4        e_logLX_0_25(nr__1) ! ([10-7W]) rms uncertainty on logLX(0.25) (1)
      real*4        logLX_0_5  (nr__1) ! ([10-7W]) X-ray luminosity within 0.5h_100_^-1^Mpc (1)
      real*4        e_logLX_0_5(nr__1) ! ([10-7W]) rms uncertainty on logLX(0.5) (1)
      real*4        logLX_Rxi  (nr__1) ! ([10-7W]) X-ray luminosity at NOCORE radius (1)
      real*4        e_logLX_Rxi(nr__1) ! ([10-7W]) rms uncertainty on logLX(Rxi) (1)
      real*4        Rxi        (nr__1) ! (Mpc) NOCORE radius of detected groups (2) (3)
      real*4        e_Rxi      (nr__1) ! (Mpc) rms uncertainty on Rxi
      real*4        logtc      (nr__1) ! Crossing time (=Rxi*H_0_/{sigma}_p_) (2)
      real*4        e_logtc    (nr__1) ! rms uncertainty on logtc
      real*4        fsp        (nr__1) ! Fraction of group member that are spiral
*                                    galaxies
*Note (1): in h_100_^-2^ergs/s
*Note (2): in H_0_^-1^
*Note (3): NOCORE: Nonparametric Core Radius Estimator (Mahdavi, 2000, in prep.)

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

C  Declarations for 'table4.dat'	! Cluster data

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

      character*8   Cluster    (nr__2) ! Cluster name
      real*4        z          (nr__2) ! Redshift
      real*4        logLX_1    (nr__2) ! (10-7W) 0.1-2.4 keV band X-ray luminosity (1)
      real*4        logsigmap_2(nr__2) ! ([km/s]) Projected dispersion velocity (2)
      real*4        e_logsigmap_2(nr__2) ! ([km/s]) rms uncertainty on logsigmap
*Note (1): X-ray luminosity from Markevitch, 1998ApJ...504...27M, in
*           h_100_^-2^ergs/s.  We take uncertainty in the luminosities to be 20%.
*Note (2): From Fadda et al., 1996ApJ...473..670F.

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

C  Loading file 'table2.dat'	! *The RASSCALS: Basic Properties

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,260
        read(1,'(A91)')ar__
        read(ar__,1)
     +  RASSCALS(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),N(i__),N17(i__),cz(i__),e_cz(i__),
     +  logsigmap(i__),e_logsigmap(i__),l_logLX(i__),logLX(i__),
     +  e_logLX(i__),n_logLX(i__),Names(i__)
        if(ar__(60:64) .EQ. '') logLX(i__) = rNULL__
        if(ar__(66:69) .EQ. '') e_logLX(i__) = rNULL__
        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(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  RASSCALS(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),N(i__),N17(i__),cz(i__),e_cz(i__),
     +  logsigmap(i__),e_logsigmap(i__),l_logLX(i__),logLX(i__),
     +  e_logLX(i__),n_logLX(i__),Names(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 'table3.dat'	! *The RASSCALS: Detailed Properties

C  Format for file interpretation

    2 format(
     +  A7,1X,F4.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,
     +  F4.2,1X,F4.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,59
        read(1,'(A76)')ar__1
        read(ar__1,2)
     +  RASSCALS_1(i__),logsigmap_1(i__),e_logsigmap_1(i__),
     +  logLX_0_25(i__),e_logLX_0_25(i__),logLX_0_5(i__),
     +  e_logLX_0_5(i__),logLX_Rxi(i__),e_logLX_Rxi(i__),Rxi(i__),
     +  e_Rxi(i__),logtc(i__),e_logtc(i__),fsp(i__)
c    ..............Just test output...........
        write(6,2)
     +  RASSCALS_1(i__),logsigmap_1(i__),e_logsigmap_1(i__),
     +  logLX_0_25(i__),e_logLX_0_25(i__),logLX_0_5(i__),
     +  e_logLX_0_5(i__),logLX_Rxi(i__),e_logLX_Rxi(i__),Rxi(i__),
     +  e_Rxi(i__),logtc(i__),e_logtc(i__),fsp(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Cluster data

C  Format for file interpretation

    3 format(A8,1X,F5.3,1X,F5.2,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,25
        read(1,'(A30)')ar__2
        read(ar__2,3)
     +  Cluster(i__),z(i__),logLX_1(i__),logsigmap_2(i__),
     +  e_logsigmap_2(i__)
c    ..............Just test output...........
        write(6,3)
     +  Cluster(i__),z(i__),logLX_1(i__),logsigmap_2(i__),
     +  e_logsigmap_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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