FORTRAN Generation
(/./ftp/cats/J/AZh/86/23)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AZh/86/23 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-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/AZh/86/23 Radio source 111MHz interplan. scintillation. I  (Tyul'bashev, 2009)
*================================================================================
*A Study of Radio Sources using Interplanetary Scintillations at 111 MHz.
*Core-Dominated Sources.
*    Tyul'bashev S.A.
*   <Astron. Zh. 86, 23 (2009)>
*   =2009AZh....86...23T
*   =2009ARep...53...19T
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Estimates of flux densities for scintillating
                              components at 111MHz

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

      character*9   Source      ! Source name (BHHMM+DDd)
      character*8   OName       ! Other name of the source
      character*2   l_DS        ! [<=] Limit flag on DS
      real*4        DS          ! (Jy) Estimated 111MHz flux-density fluctuation
      real*4        DS2         ! (Jy) ? Second value of 111MHz flux-density
*                                    fluctuation when interval
      character*1   u_DS        ! [?] Uncertainty flag on DeltaS
      character*1   l_eps       ! Limit flag in eps
      real*4        eps         ! (deg) ?=- Mean solar elongation of the source during
*                                      the observation
      character*2   l_Ssct      ! [<=] Limit flag on Ssct
      real*4        Ssct        ! (Jy) ?=- Estimated 111MHz flux density of the
*                                      scintillating component
      character*1   u_Ssct      ! [?] Uncertainty flag on Sscint
      character*7   Date        ! ("MM/YYYY") Observation date (1)
      character*7   Date2       ! ("MM/YYYY") Second observation date when interval
*Note (1): The 1996 observations where carried out at 102.5MHz.

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

C  Loading file 'table1.dat'	! Estimates of flux densities for scintillating
*                              components at 111MHz

C  Format for file interpretation

    1 format(
     +  A9,2X,A8,2X,A2,F4.2,1X,F3.1,1X,A1,3X,A1,F5.1,3X,A2,F4.2,1X,A1,
     +  2X,A7,1X,A7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,80
        read(1,'(A70)')ar__
        read(ar__,1)
     +  Source,OName,l_DS,DS,DS2,u_DS,l_eps,eps,l_Ssct,Ssct,u_Ssct,
     +  Date,Date2
        if(ar__(29:31) .EQ. '') DS2 = rNULL__
        if (idig(ar__(38:42)).EQ.0) eps =  rNULL__
        if (idig(ar__(48:51)).EQ.0) Ssct =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Source,OName,l_DS,DS,DS2,u_DS,l_eps,eps,l_Ssct,Ssct,u_Ssct,
     +  Date,Date2
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