FORTRAN Generation
(/./ftp/cats/J/A_A/643/A138)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/643/A138 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+A/643/A138      Possible runaway stars list          (Maiz Apellaniz+, 2020)
*================================================================================
*The Villafranca catalog of Galactic OB groups. I. Systems with O2-O3.5 stars.
*    Maiz Apellaniz J., Crespo Bellido P., Barba R.H., Fernandez Aranda R.,
*    Sota A.
*   <Astron. Astrophys., 643, A138 (2020)>
*   =2020A&A...643A.138M    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablea2.dat'	! Possible runaway stars

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

      character*5   Group      (nr__) ! Group ID (O-NNN)
      integer*8     GaiaDR2    (nr__) ! Gaia DR2 ID
      character*23  OName      (nr__) ! Other ID
      character*1   n_OName    (nr__) ! [+] Note on Oname (1)
      real*8        Plx        (nr__) ! (mas) Gaia DR2 parallax
      real*4        e_Plx      (nr__) ! (mas) Gaia DR2 parallax error
      real*8        Gmag       (nr__) ! (mag) Gaia DR2 G magnitude
      real*4        GBP_GRP    (nr__) ! (mag) Gaia DR2 BP-RP colour index
*Note (1): Note as follows:
*   + = Target with bad RUWE

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

C  Loading file 'tablea2.dat'	! Possible runaway stars

C  Format for file interpretation

    1 format(A5,2X,I19,1X,A23,A1,1X,F7.4,1X,F6.4,1X,F7.4,1X,F6.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea2.dat')
      write(6,*) '....Loading file: tablea2.dat'
      do i__=1,60
        read(1,'(A81)')ar__
        read(ar__,1)
     +  Group(i__),GaiaDR2(i__),OName(i__),n_OName(i__),Plx(i__),
     +  e_Plx(i__),Gmag(i__),GBP_GRP(i__)
c    ..............Just test output...........
        write(6,1)
     +  Group(i__),GaiaDR2(i__),OName(i__),n_OName(i__),Plx(i__),
     +  e_Plx(i__),Gmag(i__),GBP_GRP(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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