FORTRAN Generation
(/./ftp/cats/J/A_AS/112/291)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_AS/112/291 into FORTRAN code for loading all data files into arrays.

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+AS/112/291      VRI photometry of wide double stars  (Sinachopoulos+ 1995)
*================================================================================
*VRI photometry of wide double stars with A- type primaries.
*     Sinachopoulos D., Cuypers J., Lampens P., Oblak E., van Dessel E.L.
*    <Astron. Astrophys. Suppl. Ser. 112, 291 (1995)>
*    =1995A&AS..112..291S        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1'	! VRI photometry of A-type double stars

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

      character*10  IDS        (nr__) ! IDS (Eq. 1900) code of the double star as
*                                   listed in WDS (Worley and Douglass, 1984)
      character*9   HIC        (nr__) ! Hipparcos Input Catalogue or
*                                   Durchmusterung number
      character*1   m_IDS      (nr__) ! Multiplicity index on star name
      real*4        Vmag       (nr__) ! (mag) V magnitude
      real*4        e_Vmag     (nr__) ! (mag) rms uncertainty on V magnitude
      real*4        V_R        (nr__) ! (mag) V-R color index
      real*4        e_V_R      (nr__) ! (mag) rms uncertainty on V-R
      real*4        V_I        (nr__) ! (mag) V-I color index
      real*4        e_V_I      (nr__) ! (mag) rms uncertainty on V-I
      integer*4     o_Vmag     (nr__) ! Number of measurements

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

C  Declarations for 'table2'	! Relation between Spectral type and (V-I)_0_
                                  index

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

      character*3   Sp         (nr__1) ! Spectral type
      real*4        V_Imin     (nr__1) ! (mag) Minimun V-I color index
      real*4        V_Imax     (nr__1) ! (mag) ? Maximun V-I color index

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

C  Declarations for 'table3'	! Computed versus literature spectral types of
                                  34 primaries

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

      character*10  IDS_1      (nr__2) ! IDS (Eq. 1900) name
      character*3   SpCal      (nr__2) ! Calculated spectral type
      character*12  SpLit      (nr__2) ! Literature spectral type

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

C  Declarations for 'table4'	! Astrophysical parameters

      integer*4 nr__3
      parameter (nr__3=93)	! Number of records
      character*86 ar__3  	! Full-size record

      character*10  IDS_2      (nr__3) ! IDS (Eq. 1900) name
      character*12  ASp        (nr__3) ! A component spectral type
      character*5   BSp        (nr__3) ! B component spectral type
      real*4        rho        (nr__3) ! (arcsec) Angular separation
      integer*4     Dist       (nr__3) ! (pc) ? Minimum value of the distance
      integer*4     e_Dist     (nr__3) ! (pc) ? rms uncertainty on Dist
      real*4        Tan_Sep    (nr__3) ! (10+3AU) ? Tangential separation component
      real*4        e_Tan_Sep  (nr__3) ! (10+3AU) ? rms uncertainty on tangential separation
      integer*4     P          (nr__3) ! (10+3yr) ? Minimum of the orbital period
      integer*4     e_P        (nr__3) ! (10+3yr) ? rms uncertainty on P
      real*4        Vorb       (nr__3) ! (km/s) ? Maximum of orbital velocity
      real*4        e_Vorb     (nr__3) ! (km/s) ? rms uncertainty on Vorb

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

C  Loading file 'table1'	! VRI photometry of A-type double stars

C  Format for file interpretation

    1 format(
     +  1X,A10,1X,A9,3X,A1,5X,F6.3,1X,F4.3,1X,F6.3,1X,F4.3,2X,F6.3,1X,
     +  F4.3,4X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1')
      write(6,*) '....Loading file: table1'
      do i__=1,188
        read(1,'(A72)')ar__
        read(ar__,1)
     +  IDS(i__),HIC(i__),m_IDS(i__),Vmag(i__),e_Vmag(i__),V_R(i__),
     +  e_V_R(i__),V_I(i__),e_V_I(i__),o_Vmag(i__)
c    ..............Just test output...........
        write(6,1)
     +  IDS(i__),HIC(i__),m_IDS(i__),Vmag(i__),e_Vmag(i__),V_R(i__),
     +  e_V_R(i__),V_I(i__),e_V_I(i__),o_Vmag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2'	! Relation between Spectral type and (V-I)_0_
*                                  index

C  Format for file interpretation

    2 format(1X,A3,1X,F6.3,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2')
      write(6,*) '....Loading file: table2'
      do i__=1,28
        read(1,'(A18)')ar__1
        read(ar__1,2)Sp(i__),V_Imin(i__),V_Imax(i__)
        if(ar__1(13:18) .EQ. '') V_Imax(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)Sp(i__),V_Imin(i__),V_Imax(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3'	! Computed versus literature spectral types of
*                                  34 primaries

C  Format for file interpretation

    3 format(1X,A10,1X,A3,1X,A12)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3')
      write(6,*) '....Loading file: table3'
      do i__=1,34
        read(1,'(A28)')ar__2
        read(ar__2,3)IDS_1(i__),SpCal(i__),SpLit(i__)
c    ..............Just test output...........
        write(6,3)IDS_1(i__),SpCal(i__),SpLit(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4'	! Astrophysical parameters

C  Format for file interpretation

    4 format(
     +  1X,A10,1X,A12,1X,A5,1X,F5.1,1X,I3,4X,I3,1X,F4.1,6X,F3.1,1X,I4,
     +  4X,I3,1X,F4.2,4X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4')
      write(6,*) '....Loading file: table4'
      do i__=1,93
        read(1,'(A86)')ar__3
        read(ar__3,4)
     +  IDS_2(i__),ASp(i__),BSp(i__),rho(i__),Dist(i__),e_Dist(i__),
     +  Tan_Sep(i__),e_Tan_Sep(i__),P(i__),e_P(i__),Vorb(i__),
     +  e_Vorb(i__)
        if(ar__3(38:40) .EQ. '') Dist(i__) = iNULL__
        if(ar__3(45:47) .EQ. '') e_Dist(i__) = iNULL__
        if(ar__3(49:52) .EQ. '') Tan_Sep(i__) = rNULL__
        if(ar__3(59:61) .EQ. '') e_Tan_Sep(i__) = rNULL__
        if(ar__3(63:66) .EQ. '') P(i__) = iNULL__
        if(ar__3(71:73) .EQ. '') e_P(i__) = iNULL__
        if(ar__3(75:78) .EQ. '') Vorb(i__) = rNULL__
        if(ar__3(83:86) .EQ. '') e_Vorb(i__) = rNULL__
c    ..............Just test output...........
        write(6,4)
     +  IDS_2(i__),ASp(i__),BSp(i__),rho(i__),Dist(i__),e_Dist(i__),
     +  Tan_Sep(i__),e_Tan_Sep(i__),P(i__),e_P(i__),Vorb(i__),
     +  e_Vorb(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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