FORTRAN Generation
(/./ftp/cats/V/46/)

Conversion of standardized ReadMe file for file /./ftp/cats/V/46/ 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-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. V/46        Classical (Evolved) Algol-Type Binary Candidates (Budding 1984)
*================================================================================
*A Catalogue of Classical (Evolved) Algol-Type Binary Candidate Stars
*     Budding E.
*    <CDS Bull. No. 27, p. 91 (1984)>
*    =1984BICDS..27...91B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'catalog.dat'	! The Catalogue

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

      integer*4     ID          ! [1/414]+= Serial number of entry.
      character*1   Cont        ! [+] indicates a continuation of NEXT star
      character*9   name        ! *Name of star
      real*8        Per         ! (d) ? Period
      real*4        mass        ! (solMass) *? Mass of the primary star
      character*1   u_mass      ! [?] Uncertainty remark on mass
      character*12  Sp          ! *Spectral Type
      real*4        q           ! *? Mass ratio quoted by BD
      integer*4     subVol      ! (%) *? Subgiant volume / Roche volume
      character*1   u_subVol    ! [?] Uncertainty remark on subVol
      character*1   l_qsd       ! [<>~?] Limit or approximate flag on qsd
      real*4        qsd         ! *]0/1]? Calculated mass ratio
      character*3   n_qsd       ! Remark on qsd
      character*1   l_Depth1    ! [>] Limit flag on Depth1
      real*4        Depth1      ! (mag) *? The importance of depth of primary minimum
      character*2   n_Depth1    ! [pvVB?] Passband (as in GCVS).
      real*4        r1          ! *[0/1[? Relative radius of primary
      real*4        sd          ! *]0/1[? sd status
*Note on name:
*    Arranged in alphabetical order of constellation listing (as in the
*    General Catalogue (GCVS) of Kukarkin et al., 1969, 1970, 1971,1974)
*Note on mass:
*    The mass as given in the catalogue of Brancewicz and Dworak (1980)
*    (hereafter BD), to two decimals. Sometimes an additional entry (above
*    the BD mass) refers to some other recent estimates. This will usually
*    be for the more well known Algol systems, the mass being that quoted
*    by Giuricin and Mardirossian (1981a) (hereafter GM).
*Note on Sp:
*    The MK spectral type(s) (when available) are almost always those of
*    BD. A colon indicates uncertainty, while brackets refer to types which
*    have been indirectly inferred by certain other light curve analysts
*    (see BD for details).A few of the candidate stars are not listed by
*    BD, in which case the types are probably those quoted by Kukarkin et
*    al., (GCVS - op. cit.) or Wood et al.,(1980).
*Note on q:
*    For many systems this comes from an initial trial value which is
*    subsequently iteratively improved on, in order to make the system
*    parameters (especially those of the primary star) fit in the
*    prescribed correlations (see section 2 of the publication) to within
*    some permitted tolerance.
*Note on subVol:
*    subVol (r(L2)) indicates BD's assessment of the volumetric percentage
*    proportion of its limiting (Roche) lobe occupied by the subgiant
*    component. In a majority of cases of candidate EA2 systems BD find
*    this quantity to be less than 100 (i.e. an "undersize" implication).
*    This could, however, reflect systematic errors of some adopted
*    constant values in some of the formulae put together in order to
*    effect solutions (Budding, 1983). In any case, the proximity of r(L2)
*    to 100 is a good clue to the likelihood of an SD (semi-detached)
*    system designation.
*Note on qsd:
*    The quantity q(SD) would usually denote the mass ratio calculated
*    using BD's relative radius of the secondary component (R(2)/Sep), a
*    quantity already determined in the light curve analysis as r(2), and
*    Kopal's (1959) Table (3-2), which relates the mean relative radius of
*    the component in an sd system, i.e. one which is in contact with its
*    surrounding (inner) Roche critical surface (passing through the inner
*    Lagrangian point), to the corresponding mass ratio. Again, as with the
*    entries in mass, additional recently published values are sometimes
*    also included above the main entry for more well known systems. Other
*    possible entries for q(SD) will be referred to in the next section.
*Note on Depth1:
*    For certain eclipsing binary systems, that this is a salient
*    observational parameter, by means of which likely sd candidates may be
*    identified, was already stressed in Shapiro's (1973) thesis. This
*    quantity was utilized by Budding (1981) to select light curves of EA2
*    type. It will indeed become clear on inspection of the candidate list
*    that most of the more well known classical Algol systems have light
*    curves of this type. The value of the depth is given in magnitudes.
*Note on r1:
*    The tenth column gives the relative radius of the primary component
*    r(1), which is simply derived from (R(1)/Sep) as listed by BD. Like
*    the previously mentioned r(2), this is a quantity which would normally
*    be calculated from analysis of the photometric data, and though
*    published results of such analyses often quote its value to three or
*    more significant decimal digits, a two digit value is already an
*    optimistic assessment of the likely information content for the
*    majority of less well-known candidate stars. The extent of
*    disagreement between different sources on such parameters for even the
*    more well-known examples suggests that a two figure number is a
*    realistic datum to insert here. This quantity can, of course, be
*    combined with the mass, mass ratio and the period to allow absolute
*    sizes of the system components to be derived.
*Note on sd:
*    The sd status could be regarded as a crude probability assessment of
*    the semi-detached nature of the system. It takes the five values from
*    0.1 up to 0.9 in steps of 0.2. 0.9 will normally be placed alongside
*    the well-known cases (such as most of those in the GM list), for which
*    comparison information columns (4) and (8) is presented. A value 0.7
*    is associated with binaries of apparently similar superficial
*    properties to the 0.9 cases, but such binaries appear to be relatively
*    neglected. 0.5 goes with the binaries for which an EA2 or EA1
*    designation might be about equally likely, whereas the balance of
*    probability would seem to be against a normal sd classification for
*    the 0.3 systems. Those binaries with sd status 0.1 are regarded as
*    definitely unlikely to represent classical evolved Algol systems.

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

C  Declarations for 'remarks.dat'	! Remarks

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

      integer*4     ID_1        ! [1/414]+= Serial number of entry.
      character*9   name_1      ! *Name of star
      character*2   ref         ! *Reference to most recent well-known catalog
      character*1   l_Q         ! [<] Less than sign
      real*4        Q_1         ! *? Quality description
      character*49  rem         ! *Remarks
*Note on name:
*     The name is blank for continuation lines
*Note on ref:
*     K       Koch et al.,    (1970)
*     S       Svechnikov,     (1969)
*     T       Tchudovichev,   (1952)
*     G       Gaposchkin,     (1940)
*Note on Q:
*     The above sources usually refer to the quality of the original
*     photometric data, or give some (numerical) indication as to their
*     feelings of the overall reliability of their solutions. This has been
*     put together here under the general quality descriptor Q, which may be
*     interpreted in a similar way to the sd status measure, except that
*     (since Svechnikov's `weights' are in a scale of 1-10) the values 0.2,
*     0.4 etc. might also appear.
*Note on rem:
*     The remarks column offers a few words of additional information.
*     In order to appreciate these, however, it will be
*     necessary to understand the following abbreviations:
*     BD   The catalogue of Brancewicz and Dworak (see(4) above).
*     C    Cester et al. (1978b).
*     EA   Algol type light curve as defined by Kukarkin et al., (1969).
*     EA1, Subdivisions of the EA type designation introduced
*     EA2  by Budding (1981). EA1 refers to a pair of eclipsing
*          unevolved Main Sequence dwarfs, giving rise to a light
*          curve sometimes described as being of `Algol type';
*          though often with distinctive differences from that
*          of an EA2 type system, which refers to evolved Algols
*          forming the main subject of this article.
*     G    Gaposchkin's(1940) catalogue (see(12) and(13) above).
*     GM   Giuricin and Mardirossian (1981) (see(4) above).
*     HN   Hall and Neff (1979).
*     k    Ratio of relative radii (usually r(2)/r(1)).
*     lc   Light curve.
*     mf   Mass function.
*     min  Photometric minimum (Min II refers to the depth of the
*          secondary minimum.).
*     oc   Occultation, i.e. eclipse formed by the larger star
*          obscuring the smaller one.
*     q    Ratio of masses (i.e. M lesser/M greater = M(2)/M(1)).
*     RS   A system containing an "undersize" subgiant. Special
*          attention was called to these systems by Kopal (1959) and
*          also (using the same designation, though with a slightly
*          more restricted meaning, by Svechnikov (1969). Many
*          systems of this type have since been found to conform
*          to a special RS CVn-type designation (Hall, 1976); Morgan
*          and Eggleton, 1979). Svechnikov (1969) described these
*          as AR systems. The issue will be discussed further in
*          the next section.
*     Sz   Szafraniec (see (12) and (13) above.) Her gathered information
*          on photometry is often of interest in connection with less
*          well-known candidates.
*     sd   Semi-detached, in the sense of Kopal (1955).
*     sec  Secondary.
*     tr   Transit, i.e. eclipse formed by the smaller star obscuring
*          the larger one.

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

C  Loading file 'catalog.dat'	! The Catalogue

C  Format for file interpretation

    1 format(
     +  I3,A1,A9,2X,F9.4,2X,F5.2,A1,2X,A12,2X,F4.2,2X,I3,A1,1X,A1,
     +  F4.2,A3,1X,A1,F4.2,A2,2X,F5.3,1X,F3.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'catalog.dat')
      write(6,*) '....Loading file: catalog.dat'
      do i__=1,528
        read(1,'(A86)')ar__
        read(ar__,1)
     +  ID,Cont,name,Per,mass,u_mass,Sp,q,subVol,u_subVol,l_qsd,qsd,
     +  n_qsd,l_Depth1,Depth1,n_Depth1,r1,sd
        if(ar__(16:24) .EQ. '') Per = rNULL__
        if(ar__(27:31) .EQ. '') mass = rNULL__
        if(ar__(49:52) .EQ. '') q = rNULL__
        if(ar__(55:57) .EQ. '') subVol = iNULL__
        if(ar__(61:64) .EQ. '') qsd = rNULL__
        if(ar__(70:73) .EQ. '') Depth1 = rNULL__
        if(ar__(78:82) .EQ. '') r1 = rNULL__
        if(ar__(84:86) .EQ. '') sd = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  ID,Cont,name,Per,mass,u_mass,Sp,q,subVol,u_subVol,l_qsd,qsd,
     +  n_qsd,l_Depth1,Depth1,n_Depth1,r1,sd
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'remarks.dat'	! Remarks

C  Format for file interpretation

    2 format(I3,1X,A9,3X,A2,3X,A1,F3.1,6X,A49)

C  Effective file loading

      open(unit=1,status='old',file=
     +'remarks.dat')
      write(6,*) '....Loading file: remarks.dat'
      do i__=1,568
        read(1,'(A80)')ar__1
        read(ar__1,2)ID_1,name_1,ref,l_Q,Q_1,rem
        if(ar__1(23:25) .EQ. '') Q_1 = rNULL__
c    ..............Just test output...........
        write(6,2)ID_1,name_1,ref,l_Q,Q_1,rem
c    .......End.of.Just test output...........
      end do
      close(1)

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