FORTRAN Generation
(/./ftp/cats/J/A_A/325/473)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/325/473 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-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. J/A+A/325/473       HCG HI-deficiency (Huchtmeier 1997)
*================================================================================
*HI-deficiency in Hickson compact groups of galaxies
*     Huchtmeier W.K.
*    <Astron. Astrophys. 325, 473 (1997)>
*    =1997A&A...325..473H
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1'	! Observational data

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

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

      integer*4     HCG         ! HCG number (1)
      character*1   m_HCG       ! Multiplicity index on HCG
      integer*4     RAh         ! (h) Right ascension (1950.0)
      integer*4     RAm         ! (min) Right ascension (1950.0)
      integer*4     RAs         ! (s) Right ascension (1950.0)
      character*1   DE_         ! Declination sign
      integer*4     DEd         ! (deg) Declination (1950.0)
      integer*4     DEm         ! (arcmin) Declination (1950.0)
      integer*4     DEs         ! (arcsec) Declination (1950.0)
      real*4        z           ! Optical redshift
      integer*4     Nspir       ! ? Total number of spiral galaxies (2)
      integer*4     Ngal        ! ? Total number of galaxies (2)
      real*4        LB          ! (10+10solLum) Blue luminosity (3)
      real*4        SHI         ! (Jy.km/s) ? Measured HI flux
      character*1   u_SHI       ! Uncertainty flag on SHI
      real*4        Peak        ! (mJy) ? Observed peak of the line (4)
      real*4        e_Peak      ! (mJy) rms uncertainty on Peak
      integer*4     HRVHI       ! (km/s) ? HI heliocentric radial velocity (5)
      real*4        e_HRVHI     ! (km/s) ? rms uncertainty on HRVHI
      integer*4     LW50        ! (km/s) ? Linewidth at a level of 50% of line peak
      character*1   u_LW50      ! Uncertainty flag on LW50
      integer*4     LW25        ! (km/s) ? Linewidth at a level of 25% of line peak
      character*1   u_LW25      ! Uncertainty flag on LW25
      integer*4     LW20        ! (km/s) ? Linewidth at a level of 20% of line peak
      character*1   u_LW20      ! Uncertainty flag on LW20
      character*2   l_MHI_LB    ! [<=] Limit flag on MHI/LB
      real*4        MHI_LB      ! (Sun) Relative HI-content MHI/LB of the group
*Note (1): Individual notes:
*           HCG4 b and a: HI-data for the profiles at the optical velocities of
*                          components b and a
*          HCG14 c and a: HI-data for the profiles at the optical velocities of
*                          components c and a
* HCG22, HCG42 and HCG68: data from Huchtmeier (1994A&A...286..389H)
*           HCG41, HCG78: HI data correspond to individual galaxies in the
*                          velocity range searched
*Note (2): Total numbers in the brightest three magnitudes
*Note (3): Integrated blue luminosity of all member galaxies later than type E
*           within the velocity interval searched for HI
*Note (4): For non-detections, only the rms noise is shown
*Note (5): Velocity derived from the midpoint of the line at 25% and 20%
*           of the peak

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

C  Declarations for 'table2'	! *Global parameters of Hickson compact groups
                                  of galaxies (Cat. <VII/85>)

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

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

      integer*4     HCG_1       ! HCG number (1)
      integer*4     RAh_1       ! (h) Right ascension (1950.0)
      integer*4     RAm_1       ! (min) Right ascension (1950.0)
      integer*4     RAs_1       ! (s) Right ascension (1950.0)
      character*1   DE__1       ! Declination sign
      integer*4     DEd_1       ! (deg) Declination (1950.0)
      integer*4     DEm_1       ! (arcmin) Declination (1950.0)
      integer*4     DEs_1       ! (arcsec) Declination (1950.0)
      real*4        z_1         ! Optical redshift
      integer*4     HRVHI_1     ! (km/s) ? HI heliocentric radial velocity
      integer*4     Dist        ! (Mpc) Assumed distance
      real*4        LB_1        ! (10+10solLum) Blue luminosity (2)
      character*2   l_MHI       ! [<=] Limit flag on HI mass
      real*4        MHI         ! (10+9solMass) Total HI mass
      character*2   l_MHI_LB_1  ! [<=] Limit flag on MHI/LB
      real*4        MHI_LB_1    ! (Sun) HI mass to blue luminosity ratio
*Note (1): Individual notes:
*           HCG22, HCG42 and HCG68: data from Huchtmeier (1994A&A...286..389H)
*           HCG41, HCG78: HI data correspond to individual galaxies in the
*                                     velocity range searched
*Note (2): Blue luminosity of all group members later than than type E within
*           the velocity interval of the HI observations

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

C  Loading file 'table1'	! Observational data

C  Format for file interpretation

    1 format(
     +  I2,A1,1X,I2,1X,I2,1X,I2,1X,A1,I2,1X,I2,1X,I2,1X,F6.4,1X,I1,1X,
     +  I1,1X,F5.2,1X,F5.2,A1,1X,F5.1,1X,F3.1,1X,I5,1X,F4.1,1X,I4,A1,
     +  1X,I4,A1,1X,I4,A1,1X,A2,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1')
      write(6,*) '....Loading file: table1'
      do i__=1,58
        read(1,'(A96)')ar__
        read(ar__,1)
     +  HCG,m_HCG,RAh,RAm,RAs,DE_,DEd,DEm,DEs,z,Nspir,Ngal,LB,SHI,
     +  u_SHI,Peak,e_Peak,HRVHI,e_HRVHI,LW50,u_LW50,LW25,u_LW25,LW20,
     +  u_LW20,l_MHI_LB,MHI_LB
        if(ar__(31:31) .EQ. '') Nspir = iNULL__
        if(ar__(33:33) .EQ. '') Ngal = iNULL__
        if(ar__(41:45) .EQ. '') SHI = rNULL__
        if(ar__(48:52) .EQ. '') Peak = rNULL__
        if(ar__(58:62) .EQ. '') HRVHI = iNULL__
        if(ar__(64:67) .EQ. '') e_HRVHI = rNULL__
        if(ar__(69:72) .EQ. '') LW50 = iNULL__
        if(ar__(75:78) .EQ. '') LW25 = iNULL__
        if(ar__(81:84) .EQ. '') LW20 = iNULL__
        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)
     +  HCG,m_HCG,RAh,RAm,RAs,DE_,DEd,DEm,DEs,z,Nspir,Ngal,LB,SHI,
     +  u_SHI,Peak,e_Peak,HRVHI,e_HRVHI,LW50,u_LW50,LW25,u_LW25,LW20,
     +  u_LW20,l_MHI_LB,MHI_LB
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2'	! *Global parameters of Hickson compact groups
*                                  of galaxies (Cat. <VII/85>)

C  Format for file interpretation

    2 format(
     +  I3,1X,I2,1X,I2,1X,I2,1X,A1,I2,1X,I2,1X,I2,1X,F6.4,1X,I5,1X,I3,
     +  1X,F5.2,1X,A2,F5.2,1X,A2,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2')
      write(6,*) '....Loading file: table2'
      do i__=1,75
        read(1,'(A65)')ar__1
        read(ar__1,2)
     +  HCG_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,z_1,HRVHI_1,
     +  Dist,LB_1,l_MHI,MHI,l_MHI_LB_1,MHI_LB_1
        if(ar__1(31:35) .EQ. '') HRVHI_1 = iNULL__
        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)
     +  HCG_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,z_1,HRVHI_1,
     +  Dist,LB_1,l_MHI,MHI,l_MHI_LB_1,MHI_LB_1
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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