FORTRAN Generation
(/./ftp/cats/J/A_A/464/377)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/464/377 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 2024-Apr-18
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+A/464/377       HIP binaries with radial velocities      (Frankowski+, 2007)
*================================================================================
*Proper-motion binaries in the Hipparcos Catalogue Comparison with radial
*velocity data.
*    Frankowski A., Jancart S., Jorissen A.
*   <Astron. Astrophys. 464, 377 (2007)>
*   =2007A&A...464..377F
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Stars flagged as proper-motion binaries

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

      integer*4     HIP        (nr__) ! Hipparcos (Cat. <I/239>) catalogue number
      real*8        chi2       (nr__) ! chi2 characterizing the difference between
*                                 Hipparcos and Tycho-2 proper motions (see Eq.1)
      real*8        Pr_chi2    (nr__) ! Left-side cumulative chi2 probability
*                                 (from 0 to chi2)
      character*1   DMSA       (nr__) ! [579VX] Code from the Hipparcos double and
*                                        multiple system annex (1)
      character*1   SB9        (nr__) ! [O-] O: orbit available in SB9, <V/122>
      character*1   GCC        (nr__) ! [Bbc-] Flag characterizing the variability of
*                                       radial velocity in the Geneva-Copenhagen
*                                       Catalogue, Cat. V/117 (2)
      character*1   K_M        (nr__) ! [BObc-] Flag characterizing the variability of
*                                 radial velocity in the Famaey et al. (2005,
*                                 <J/A+A/430/165>) catalogue (K & M giants) (2)
      character*40  Rem        (nr__) ! Various remarks (3)
*Note (1): HIP double and multiple system code as follows:
*      5 = 5 parameters (single-star) solution
*      7 = 7 parameters (acceleration) solution
*      9 = 9 parameters (acceleration) solution
*      X = stochastic solution
*Note (2): Variability of radial velocity flag as follows:
*      c = constant radial-velocity at the level Prob(chi2(Vr))>0.01
*      b = suspected spectroscopic binary at the level 0.001<Prob(chi2(Vr))<=0.01
*      B = spectroscopic binary: Prob (chi2(Vr))<=0.001
*      O = spectroscopic orbit available
*Note (3): used abbreviations:
*     Ba = barium star
*     sB-lm? = suspected binary with low-mass companion
*     triple = triple system
*    triple? = candidate triple system
*    perspective acc. = spurious proper-motion binary due to 
*                       perspective acceleration

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

C  Loading file 'table2.dat'	! Stars flagged as proper-motion binaries

C  Format for file interpretation

    1 format(I6,1X,F8.2,3X,F7.5,3X,A1,3X,A1,3X,A1,3X,A1,3X,A40)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,3565
        read(1,'(A84)')ar__
        read(ar__,1)
     +  HIP(i__),chi2(i__),Pr_chi2(i__),DMSA(i__),SB9(i__),GCC(i__),
     +  K_M(i__),Rem(i__)
c    ..............Just test output...........
        write(6,1)
     +  HIP(i__),chi2(i__),Pr_chi2(i__),DMSA(i__),SB9(i__),GCC(i__),
     +  K_M(i__),Rem(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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