FORTRAN Generation
(/./ftp/cats/J/A_A/449/929)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/449/929 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-Mar-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/449/929       HI observations of Coma Supercluster        (Gavazzi+, 2006)
*================================================================================
*HI observations of galaxies. II. The Coma Supercluster.
*    Gavazzi G., O'neil K., Boselli A., Van Driel W.
*   <Astron. Astrophys., 449, 929-935 (2006)>
*   =2006A&A...449..929G
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table4.dat'	! Basic HI properties of late-type members to the
                            Coma Supercluster (including the "homunculus legs")

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

      character*8   CGCG        ! CGCG (Cat. VII/49) designation
      character*3   Type        ! Type of galaxy
      real*4        mpg         ! (mag) Apparent photographic magnitude
      character*8   Cloud       ! Membership as defined in Gavazzi et al.
*                                     (1999A&AS..136..227G)
      integer*4     Vrec        ! (km/s) Recessional velocity
      character*1   l_logMHI    ! Limit flag on logMHI
      real*4        logMHI      ! ([solMass]) ?=- HI mass or mass limit
      integer*4     r_logMHI    ! ?=- Reference for logMHI
      character*1   l_DefHI     ! limit flag on DefHI
      real*4        DefHI       ! ?=- HI deficiency parameter as defined in
*                                     Haynes & Giovanelli (1984AJ.....89..758H)
      integer*4     Qual        ! ?=- Quality flag (1)
*Note (1): Quality flag as follows:
*      1 = high signal-to-noise, double-horned profile
*      2 = high signal-to-noise, single-horned profile
*      3 = low signal-to-noise profile whose measured
*          line parameters are not reliable
*      4 = low signal-to-noise profile whose measured
*          line parameters are not reliable
*      5 = unpublished profiles

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

C  Declarations for 'refs.dat'	! References

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

      integer*4     Ref         ! Reference number
      character*19  BibCode     ! BibCode
      character*20  Aut         ! Author's name
      character*40  Com         ! Comments

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

C  Loading file 'table4.dat'	! Basic HI properties of late-type members to the
*                            Coma Supercluster (including the "homunculus legs")

C  Format for file interpretation

    1 format(
     +  A8,1X,A3,1X,F4.1,1X,A8,1X,I4,1X,A1,F5.2,1X,I3,1X,A1,F5.2,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,315
        read(1,'(A51)')ar__
        read(ar__,1)
     +  CGCG,Type,mpg,Cloud,Vrec,l_logMHI,logMHI,r_logMHI,l_DefHI,
     +  DefHI,Qual
        if (idig(ar__(34:38)).EQ.0) logMHI =  rNULL__
        if (r_logMHI .EQ. 45) r_logMHI =  iNULL__
        if (idig(ar__(45:49)).EQ.0) DefHI =  rNULL__
        if (Qual .EQ. 45) Qual =  iNULL__
c    ..............Just test output...........
        write(6,1)
     +  CGCG,Type,mpg,Cloud,Vrec,l_logMHI,logMHI,r_logMHI,l_DefHI,
     +  DefHI,Qual
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    2 format(I3,1X,A19,1X,A20,A40)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,26
        read(1,'(A84)')ar__1
        read(ar__1,2)Ref,BibCode,Aut,Com
c    ..............Just test output...........
        write(6,2)Ref,BibCode,Aut,Com
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end