FORTRAN Generation
(/./ftp/cats/J/MNRAS/392/448)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/392/448 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-Mar-29
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/MNRAS/392/448     Rotational velocities of early-type binaries   (Howe+, 2009)
*================================================================================
*An analysis of vsin(i) correlations in early-type binaries.
*    Howe K.S., Clarke C.J.
*   <Mon. Not. R. Astron. Soc., 392, 448-454 (2009)>
*   =2009MNRAS.392..448H
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablea1.dat'	! vsin(i) measurements for the components of the
                              early-type binaries in our sample

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

      integer*4     HD         (nr__) ! HD number
      character*1   m_HD       (nr__) ! [AB] Multiplicity index on HD
      character*11  SpType     (nr__) ! MK spectral type
      real*4        vsini      (nr__) ! (km/s) Rotational velocity
      integer*4     e_vsini    (nr__) ! (km/s) ? rms uncertainty on vsini
      real*4        Sep        (nr__) ! (AU) Separation
      real*4        Rad        (nr__) ! (solRad) Stellar radius
      character*1   n_Rad      (nr__) ! [*] Method to estimate the stellar radius (1)
      character*4   Ref        (nr__) ! References, detailed in refs.dat file
*Note (1): The flag is:
*      * = values of stellar radii taken from the references listed
*  blank = stellar radii are estimated from the spectral type

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

C  Declarations for 'refs.dat'	! References

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

      integer*4     Ref_1      (nr__1) ! Reference number
      character*19  BibCode    (nr__1) ! BibCode
      character*21  Aut        (nr__1) ! Author's name
      character*57  Com        (nr__1) ! Comments

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

C  Loading file 'tablea1.dat'	! vsin(i) measurements for the components of the
*                              early-type binaries in our sample

C  Format for file interpretation

    1 format(I6,A1,1X,A11,1X,F5.1,1X,I2,1X,E7.3,1X,F5.2,A1,1X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea1.dat')
      write(6,*) '....Loading file: tablea1.dat'
      do i__=1,230
        read(1,'(A48)')ar__
        read(ar__,1)
     +  HD(i__),m_HD(i__),SpType(i__),vsini(i__),e_vsini(i__),
     +  Sep(i__),Rad(i__),n_Rad(i__),Ref(i__)
        if(ar__(27:28) .EQ. '') e_vsini(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  HD(i__),m_HD(i__),SpType(i__),vsini(i__),e_vsini(i__),
     +  Sep(i__),Rad(i__),n_Rad(i__),Ref(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    2 format(I2,1X,A19,1X,A21,1X,A57)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,20
        read(1,'(A102)')ar__1
        read(ar__1,2)Ref_1(i__),BibCode(i__),Aut(i__),Com(i__)
c    ..............Just test output...........
        write(6,2)Ref_1(i__),BibCode(i__),Aut(i__),Com(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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