FORTRAN Generation
(/./ftp/cats/VIII/99)

Conversion of standardized ReadMe file for file /./ftp/cats/VIII/99 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. VIII/99             Catalogue of Radio Stars              (Wendker, 2001)
*================================================================================
*Catalogue of Radio Stars, 2001 update
*     Wendker H.J.
*    <Astron. Astrophys. Suppl. Ser. 109, 177 (1995)>
*    =2015yCat.8099....0W
*    =1995A&AS..109..177W
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'stars.dat'	! Positions and designations of the stars

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

C  1950 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg       ! (deg) Right Ascension 1950
      real*8        DEdeg       ! (deg)     Declination 1950
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     Seq         ! [1/3699]+ Running number
      character*1   Det         ! [D] for stars detected in radio
      character*19  Name        ! Main designation
      character*17  Alias       ! Other name
      integer*4     RAh         ! (h) Right Ascension 1950 (hours)
      integer*4     RAm         ! (min) Right Ascension 1950 (minutes)
      real*4        RAs         ! (s) Right Ascension 1950 (seconds)
      character*1   DE_         ! Declination 1950 (sign)
      integer*4     DEd         ! (deg) Declination 1950 (degrees)
      integer*4     DEm         ! (arcmin) Declination 1950 (minutes)
      real*4        DEs         ! (arcsec) [0/60[? Declination 1950 (seconds)
      character*7   Ref         ! Reference of position (details in "refs.dat")

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

C  Declarations for 'radio.dat'	! Radio data

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

      integer*4     Seq_1       ! [1/3699] Star number, as in file "stars"
      integer*4     Freq        ! (MHz) Frequency of radio measurement
      character*1   l_Smax      ! Limit flag on Smax
      real*8        Smax        ! (mJy) Maximum Flux at Freq
      character*1   l_Smin      ! Limit flag on Smin
      real*8        Smin        ! (mJy) Minimum Flux at Freq
      integer*4     r_Smax      ! ? Reference of Fluxes (details in "refs.dat")
      character*56  Notes       ! Remarks and notes about the radio flux

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

C  Declarations for 'refs.dat'	! References to the radio data

      integer*4 nr__2
      parameter (nr__2=1424)	! Number of records
      character*121 ar__2  	! Full-size record

      integer*4     Ref_1       ! Reference number
      character*19  Bibcode     ! The 19-digit bibcode
      character*95  Text        ! Text of reference

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

C  Loading file 'stars.dat'	! Positions and designations of the stars

C  Format for file interpretation

    1 format(
     +  I4,A1,1X,A19,1X,A17,3X,I2,1X,I2,1X,F6.3,2X,A1,I2,1X,I2,1X,
     +  F5.2,1X,A7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'stars.dat')
      write(6,*) '....Loading file: stars.dat'
      do i__=1,3699
        read(1,'(A80)')ar__
        read(ar__,1)
     +  Seq,Det,Name,Alias,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Ref
        if(ar__(68:72) .EQ. '') DEs = rNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  Seq,Det,Name,Alias,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Ref
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'radio.dat'	! Radio data

C  Format for file interpretation

    2 format(I4,2X,I6,2X,A1,F10.3,1X,A1,F10.3,3X,I4,3X,A56)

C  Effective file loading

      open(unit=1,status='old',file=
     +'radio.dat')
      write(6,*) '....Loading file: radio.dat'
      do i__=1,11639
        read(1,'(A103)')ar__1
        read(ar__1,2)Seq_1,Freq,l_Smax,Smax,l_Smin,Smin,r_Smax,Notes
        if(ar__1(41:44) .EQ. '') r_Smax = iNULL__
c    ..............Just test output...........
        write(6,2)Seq_1,Freq,l_Smax,Smax,l_Smin,Smin,r_Smax,Notes
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References to the radio data

C  Format for file interpretation

    3 format(I4,2X,A19,1X,A95)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,1424
        read(1,'(A121)')ar__2
        read(ar__2,3)Ref_1,Bibcode,Text
c    ..............Just test output...........
        write(6,3)Ref_1,Bibcode,Text
c    .......End.of.Just test output...........
      end do
      close(1)

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