FORTRAN Generation
(/./ftp/cats/J/A_A/435/863)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/435/863 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.5, on 2013-May-21
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__
ter  (rNULL__=-1.e37)     	! NULL real number
      parameter  (iNULL__=-2147483647)	! NULL int  number

C=============================================================================
Cat. J/A+A/435/863   B3-VLA sample. IV: 74MHz flux densities     (Mack+, 2005)
*================================================================================
*Multi-frequency study of the B3VLA sample.
*IV. 74-MHz flux densities from VLA A-array data.
*    Mack K.-H., Vigotti M., Gregorini L., Klein U., Tschager W.,
*    Schilizzi R.T., Snellen I.A.G.
*   <Astron. Astrophys., 435, 863-870 (2005)>
*   =2005A&A...435..863M    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! 74 MHz flux densities and errors

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

      character*9   Name        ! Source name
      character*1   l_S74MHz    ! Limit flag, means that flux is a 3-sigma
*                                   upper limit
      real*4        S74MHz      ! (Jy) Flux density at 74 MHz
      real*4        e_S74MHz    ! (Jy) Error of flux density

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

C  Declarations for 'table3.dat'	! Coordinates and flux density of the components
                             of the 74MHz doubles

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

      real*8        RA_         ! (deg) Right Ascension J2000.0
      real*8        Dec         ! (deg)     Declination J2000.0
      character*9   Name_1      ! Source name
      integer*4     RAh         ! (h) Primary right ascension (J2000.0)
      integer*4     RAm         ! (min) Primary right ascension (J2000.0)
      real*4        RAs         ! (s) Primary right ascension (J2000.0)
      character*1   DE_         ! Primary declination sign (J2000.0)
      integer*4     DEd         ! (deg) Primary declination (J2000.0)
      integer*4     DEm         ! (arcmin) Primary declination (J2000.0)
      real*4        DEs         ! (arcsec) Primary declination (J2000.0)
      real*4        S74MHz_1    ! (Jy) Primary flux density at 74MHz
      real*4        e_S74MHz_1  ! (Jy) Error of primary flux density
      integer*4     RA2h        ! (h) Secondary right ascension (J2000.0)
      integer*4     RA2m        ! (min) Secondary right ascension (J2000.0)
      real*4        RA2s        ! (s) Secondary right ascension (J2000.0)
      character*1   DE2_        ! Primary declination sign (J2000.0)
      integer*4     DE2d        ! (deg) Secondary declination (J2000.0)
      integer*4     DE2m        ! (arcmin) Secondary declination (J2000.0)
      real*4        DE2s        ! (arcsec) Secondary declination (J2000.0)
      real*4        S74MHz2     ! (Jy) Secondary flux density at 74MHz
      real*4        e_S74MHz2   ! (Jy) Error of secondary flux density

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

C  Loading file 'table2.dat'	! 74 MHz flux densities and errors

C  Format for file interpretation

    1 format(A9,2X,A1,F5.2,1X,F5.2)

C  Effective file loading

      open(unit=1,file='table2.dat', status='old')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,365
        read(1,'(A47)')ar__
        read(ar__,1)Name,l_S74MHz,S74MHz,e_S74MHz
c    ..............Just test output...........
        write(6,1)Name,l_S74MHz,S74MHz,e_S74MHz
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Coordinates and flux density of the components
*                             of the 74MHz doubles

C  Format for file interpretation

    2 format(
     +  A9,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F5.2,F5.2,1X,F4.2,2X,
     +  I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F5.2,F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,file='table3.dat', status='old')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,27
        read(1,'(A78)')ar__1
        read(ar__1,2)
     +  Name_1,RAh,RAm,RAs,DE_,DEd,DEm,DEs,S74MHz_1,e_S74MHz_1,RA2h,
     +  RA2m,RA2s,DE2_,DE2d,DE2m,DE2s,S74MHz2,e_S74MHz2
c       Derive coordinates RA_ and Dec from input data
c       (RA_ and Dec are set to rNULL_ when unknown)
        RA_ = RAh
        if(RAh .GE. 0) RA_=RAh*15.
        if(RAm .GE. 0) RA_=RA_+RAm/4.
        if(RAs .GE. 0) RA_=RA_+RAs/240.
        Dec = DEd
        if(DEm .GE. 0) Dec=Dec+DEm/60.
        if(DEs .GE. 0) Dec=Dec+DEs/3600.
        if(DE_.EQ.'-'.AND.Dec.GE.0) Dec=-Dec
c    ..............Just test output...........
        write(6,2)
     +  Name_1,RAh,RAm,RAs,DE_,DEd,DEm,DEs,S74MHz_1,e_S74MHz_1,RA2h,
     +  RA2m,RA2s,DE2_,DE2d,DE2m,DE2s,S74MHz2,e_S74MHz2
        write(6,'(6H Pos: 2F8.4)') RA_,Dec
c    .......End.of.Just test output...........
      end do
      close(1)

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