FORTRAN Generation
(/./ftp/cats/J/PAZh/34/446)

Conversion of standardized ReadMe file for file /./ftp/cats/J/PAZh/34/446 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 2017-Nov-17
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/PAZh/34/446  Dynamical study of wide pairs of stars from WDS  (Kiyaeva+, 2008)
*================================================================================
*Dynamical study of wide pairs of stars based on data from the WDS catalog.
*    Kiyaeva O.V., Kiselev A.A., Izmailov I.S.
*   <Pis'ma Astron. Zh. 34, 446 (2008)>
*   =2008PAZh...34..446K
*   =2008AstL...34..405K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Optical binaries

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

      integer*4     Seq         ! [1/392] Running number
      character*10  WDS         ! WDS number of pair
      character*13  Name        ! Pair identificator
      character*1   n_Name      ! [r] Feature: pair is due to the star
*                                         catalog with rectilineal motion
      integer*4     Nobs        ! Number of observations
      integer*4     Obs1        ! (yr) Oldest observation
      integer*4     Obs2        ! (yr) Most recent observation
      real*4        Epoch       ! (yr) Middle epoch of observations
      real*8        rho         ! (arcsec) Distance between components
      real*4        e_rho       ! (arcsec) Standard error of rho
      real*4        mu          ! (arcsec/yr) Relative motion
      real*4        e_mu        ! (arcsec/yr) Standard error of mu
      real*4        plx         ! (mas) Parallax
      real*4        e_plx       ! (mas) Standard error of plx
      real*8        Mass        ! (solMass) Dynamical mass

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

C  Loading file 'table2.dat'	! Optical binaries

C  Format for file interpretation

    1 format(
     +  I3,1X,A10,1X,A13,3X,A1,1X,I3,1X,I4,1X,I4,1X,F6.1,3X,F7.3,1X,
     +  F6.3,2X,F6.4,2X,F6.4,2X,F6.2,2X,F4.2,4X,F9.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,396
        read(1,'(A113)')ar__
        read(ar__,1)
     +  Seq,WDS,Name,n_Name,Nobs,Obs1,Obs2,Epoch,rho,e_rho,mu,e_mu,
     +  plx,e_plx,Mass
c    ..............Just test output...........
        write(6,1)
     +  Seq,WDS,Name,n_Name,Nobs,Obs1,Obs2,Epoch,rho,e_rho,mu,e_mu,
     +  plx,e_plx,Mass
c    .......End.of.Just test output...........
      end do
      close(1)

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