FORTRAN Generation
(/./ftp/cats/J/A_A/604/A43)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/604/A43 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 2026-Jun-08
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/604/A43       HI in nearby radio sources               (Maccagni+, 2017)
*================================================================================
*Kinematics and physical conditions of H I in nearby radio sources.
*The last survey of the old Westerbork Synthesis Radio Telescope.
*    Maccagni F.M., Morganti R., Oosterloo T.A., Gereb K., Maddox N.
*   <Astron. Astrophys., 604, A43 (2017)>
*   =2017A&A...604A..43M    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablea1.dat'	! *Table of sources

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

      character*19  Source      ! Source name (JHHMMSS.ss+DDMMSS.s)
      character*1   n_Source    ! [*] Note on Source (1)
      real*4        zopt        ! Optical redshift measured from the
*                                   SDSS spectrum
      real*8        S1_4GHz     ! (mJy) Flux density at 1.4GHz
      real*4        P1_4GHz     ! (W/Hz) Radio power at 1.4GHz
      character*1   RType       ! [CEI] Radio type (2)
      character*5   WType       ! WISE type (3)
      character*1   l_Noise     ! Limit flag on Noise
      real*4        Noise       ! (mJy) 3{sigma} detection limit of the HI spectrum
      real*4        tauPeak     ! ?=- Peak optical depth of the HI detection
      real*4        Inttaudv    ! (km/s) ?=- Integrated optical depth of the HI line
      real*4        FWHM        ! (km/s) ?=- Full width at half maximum
      real*4        e_FWHM      ! (km/s) ?=- rms uncertainty on FWHM
      real*4        FW20        ! (km/s) ?=- Full width at 20% of the peak flux
      real*4        e_FW20      ! (km/s) ?=- rms uncertainty on FW20
      real*8        Cent        ! (km/s) ?=- Position of the centroid of the line
      real*4        e_Cent      ! (km/s) ?=- rms uncertainty on Cent
*Note (1): Galaxies denoted by (*) have been presented in Gereb et al.
* (2014A&A...569A..35G), and Gereb et al. (2015, Cat.  J/A+A/575/A44.
*Note (2): Radio classification as follows:
*   C = compact source
*   E = extended source
*   I = interacting source
*Note (3): WISE colour-colour classification (see Sect. 2.2) as follows:
*   dp    = dust poor galaxy
*   12um  = 12um bright galaxy
*   4.6um = 4.6um bright galaxy

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

C  Loading file 'tablea1.dat'	! *Table of sources

C  Format for file interpretation

    1 format(
     +  A19,A1,1X,F6.4,2X,F7.2,1X,F5.2,1X,A1,1X,A5,1X,A1,F5.2,3X,F6.4,
     +  1X,F5.2,1X,F6.2,1X,F5.2,2X,F6.2,1X,F5.2,1X,F7.2,1X,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea1.dat')
      write(6,*) '....Loading file: tablea1.dat'
      do i__=1,242
        read(1,'(A114)')ar__
        read(ar__,1)
     +  Source,n_Source,zopt,S1_4GHz,P1_4GHz,RType,WType,l_Noise,
     +  Noise,tauPeak,Inttaudv,FWHM,e_FWHM,FW20,e_FW20,Cent,e_Cent
        if (idig(ar__(61:66)).EQ.0) tauPeak =  rNULL__
        if (idig(ar__(68:72)).EQ.0) Inttaudv =  rNULL__
        if (idig(ar__(74:79)).EQ.0) FWHM =  rNULL__
        if (idig(ar__(81:85)).EQ.0) e_FWHM =  rNULL__
        if (idig(ar__(88:93)).EQ.0) FW20 =  rNULL__
        if (idig(ar__(95:99)).EQ.0) e_FW20 =  rNULL__
        if (idig(ar__(101:107)).EQ.0) Cent =  rNULL__
        if (idig(ar__(109:114)).EQ.0) e_Cent =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Source,n_Source,zopt,S1_4GHz,P1_4GHz,RType,WType,l_Noise,
     +  Noise,tauPeak,Inttaudv,FWHM,e_FWHM,FW20,e_FW20,Cent,e_Cent
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