FORTRAN Generation
(/./ftp/cats/J/A_A/324/877)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/324/877 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 2026-Apr-23
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/324/877    HI properties of spiral and irregular galaxies (Broeils+, 1997)
*================================================================================
*Short 21-cm WSRT observations of spiral and irregular galaxies. HI properties.
*    Broeils A.H., Rhee M.-H.
*   <Astron. Astrophys., 324, 877-887 (1997)>
*   =1997A&A...324..877B    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Properties of the sample galaxies

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

      character*7   Name       (nr__) ! Galaxy name
      character*1   n_Name     (nr__) ! [a] Note on Name (1)
      character*4   MType      (nr__) ! Morphological type
      integer*4     DHI        (nr__) ! (kpc) HI diameter defined by a surface density
*                                    of 1M_{sun}_/pc^2^
      integer*4     D25        (nr__) ! (kpc) Optical diameter defined at the
*                                   25th mag/arcsec^2^ isophote and corrected for
*                                   Galactic and internal extinctions following
*                                   Tully & Fouque (1985ApJS...58...67T)
      integer*4     Reff       (nr__) ! (kpc) HI effective radius, enclosing 50% of the
*                                   HI mass
      real*4        MHI        (nr__) ! (10+10Msun) Total HI mass
      real*4        Mtot       (nr__) ! (10+10Msun) Total mass enclosed inside the HI diameter
*                                   DHI (see text)
      real*4        MHI_LB     (nr__) ! (Msun/Lsun) HI-mass-to-blue-luminosity ratio (2)
      real*4        MHI_LH     (nr__) ! (Msun/Lsun) ?=-  HI-mass-to-near-infrared-luminosity
*                                   ratio (3)
      real*4        MHI_Mtot   (nr__) ! HI-mass-to-total-mass ratio
      real*4        v_sigHI_   (nr__) ! (Msun/pc+2) Mean value of the HI surface density, averaged
*                                   over the whole HI disc (see text)
      integer*4     Vmax       (nr__) ! (km/s) Maximum rotation velocity
*Note (1): a: The heliocentric velocity of DDO 185 in paper I (Broeils &
*  van Woerden, 1994A&AS..107..129B) was mistakenly listed as 373km/s
*  . It should be 140km/s. The adopted distance (and all the distance-dependent
*  parameters) will remain the same, since they are based on membership in the
*  M 101 group.
*Note (2): The total blue luminosity has been corrected for Galactic and internal
*  extinctions following Tully & Fouque (1985ApJS...58...67T).
*Note (3): The near-infrared luminosity has been taken from Tormen & Burstein
*  (1995, Cat. J/ApJS/96/123), which has been corrected for Galactic extinction.

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

C  Loading file 'table1.dat'	! Properties of the sample galaxies

C  Format for file interpretation

    1 format(
     +  A7,A1,1X,A4,1X,I3,1X,I2,1X,I2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F4.2,
     +  1X,F4.2,1X,F4.2,1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,108
        read(1,'(A58)')ar__
        read(ar__,1)
     +  Name(i__),n_Name(i__),MType(i__),DHI(i__),D25(i__),Reff(i__),
     +  MHI(i__),Mtot(i__),MHI_LB(i__),MHI_LH(i__),MHI_Mtot(i__),
     +  v_sigHI_(i__),Vmax(i__)
        if (idig(ar__(41:44)).EQ.0) MHI_LH(i__) =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),n_Name(i__),MType(i__),DHI(i__),D25(i__),Reff(i__),
     +  MHI(i__),Mtot(i__),MHI_LB(i__),MHI_LH(i__),MHI_Mtot(i__),
     +  v_sigHI_(i__),Vmax(i__)
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