FORTRAN Generation
(/./ftp/cats/J/A_A/356/141)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/356/141 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 2026-Oct-09
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/356/141     BV photometry for components of HIP doubles  (Fabricius+ 2000)
*================================================================================
*Two-colour photometry for 9473 components of close Hipparcos double
*and multiple stars
*    Fabricius C., Makarov V.V.
*   <Astron. Astrophys. 356, 141 (2000)>
*   =2000A&A...356..141F
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'catalog.dat'	! *Catalogue of B_T_, V_T_ magnitudes for
                                  individual components.

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

      integer*4     HIP         ! Hipparcos (Cat. I/239) identification number
      integer*4     Nc          ! [1/4] Number of resolved components
      character*1   m_HIP       ! Component identification letter
      real*4        Hp          ! (mag) Hipparcos Hp magnitude from DMSA (1)
      real*4        e_Hp        ! (mag) Standard error of Hp from DMSA (1)
      character*1   RefC        ! Reference component id letter
      real*4        Sep         ! (arcsec) [0.3/12.5]? Separation from DMSA (1)
      real*4        PA          ! (deg) [0,360[? Position angle from DMSA (1)
      real*4        BTmag       ! (mag) Observed B_T_ magnitude
      real*4        e_BTmag     ! (mag) Standard error of B_T_ magnitude
      real*4        VTmag       ! (mag) Observed V_T_ magnitude
      real*4        e_VTmag     ! (mag) Standard error of V_T_ magnitude
      real*4        S_N         ! [4/900] Signal-to noise ratio
*Note (1): DMSA = Double and Multiple Systems Annex of the Hipparcos catalog

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

C  Loading file 'catalog.dat'	! *Catalogue of B_T_, V_T_ magnitudes for
*                                  individual components.

C  Format for file interpretation

    1 format(
     +  I6,1X,I1,1X,A1,1X,F6.3,1X,F5.3,1X,A1,1X,F6.3,1X,F5.1,1X,F5.2,
     +  1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'catalog.dat')
      write(6,*) '....Loading file: catalog.dat'
      do i__=1,9473
        read(1,'(A66)')ar__
        read(ar__,1)
     +  HIP,Nc,m_HIP,Hp,e_Hp,RefC,Sep,PA,BTmag,e_BTmag,VTmag,e_VTmag,
     +  S_N
        if(ar__(27:32) .EQ. '') Sep = rNULL__
        if(ar__(34:38) .EQ. '') PA = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  HIP,Nc,m_HIP,Hp,e_Hp,RefC,Sep,PA,BTmag,e_BTmag,VTmag,e_VTmag,
     +  S_N
c    .......End.of.Just test output...........
      end do
      close(1)

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