FORTRAN Generation
(/./ftp/cats/J/A_A/599/A70)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/599/A70 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-19
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/599/A70       Young moving group M-dwarf multiplicity     (Janson+, 2017)
*================================================================================
*Binaries among low-mass stars in nearby young moving groups.
*    Janson M., Durkan S., Hippler S., Dai X., Brandner W., Schlieder J.,
*    Bonnefoy M., Henning T.
*    <Astron. Astrophys. 599, A70 (2017)>
*    =2017A&A...599A..70J        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Full sample summary

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

      character*17  v2MASS     (nr__) ! 2MASS identifier (JHHMMSSss+DDMMSSs)
      character*4   SpType     (nr__) ! Spectral type
      character*4   YMG        (nr__) ! Young Moving Group assignment
      character*4   r_YMG      (nr__) ! Reference for the YMG assignment (1)
      real*4        Jmag       (nr__) ! (mag) Apparent J-band magnitude from 2MASS
      real*4        pmRA       (nr__) ! (mas/yr) Proper motion along right ascension
      real*4        pmDE       (nr__) ! (mas/yr) Proper motion along declination
      real*4        Dist       (nr__) ! (pc) Distance to the target
      character*4   Method     (nr__) ! Method for determining the distance (2)
      integer*4     Mult       (nr__) ! Multiplicity count (3)
*Note (1): Reference for the association allocation as follows:
*   BII  = Re-evaluation in this work with BANYANII, based on ambiguous
*           classification in previous works
*   GBII = Re-evaluation based on GAIA data
*   G15  = Gagne et al., 2015ApJ...798...73G
*   K14  = Kraus et al., 2014AJ....147..146K
*   M13  = Malo et al., 2013ApJ...762...88M
*   M14  = Malo et al., 2014ApJ...788...81M
*Note (2): Method of distance estimation as follows:
*   Plx  = Parallax
*   Kin  = Kinematics
*   Spec = Spectroscopic
*Note (3): The number of components seen in the AstraLux images
*   (i.e. 1 is single, etc).

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

C  Declarations for 'table2.dat'	! Astrometric properties

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

      character*17  v2MASS_1   (nr__1) ! 2MASS identifier
      character*5   Pair       (nr__1) ! Pair identifier (1)
      real*4        Sep        (nr__1) ! (arcsec) Separation at the given epoch
      real*4        e_Sep      (nr__1) ! (arcsec) Separation error
      real*4        PA         (nr__1) ! (deg) Position angle at the given epoch
      real*4        e_PA       (nr__1) ! (deg) Position angle error
      real*8        Epoch      (nr__1) ! (yr) Epoch of observation
      character*1   CPM        (nr__1) ! Common Proper Motion flag (2)
      character*3   r_CPM      (nr__1) ! Reference for CPM determination (3)
*Note (1): Pair displays false triple effect -- possibly subject to a
*   180 deg ambiguity.
*Note (2): Flag for CPM as follows:
*   Y = if proven CPM
*   N = if non-CPM
*   U = if undetermined
*   I = if implied (see paper)
*Note (3): CPM reference as follows:
*  TP = This paper
* WDS = The Washington Double Star catalogue (Mason et al., 2001, Cat. I/281/)
* B15 = Bowler et al., 2015ApJS..216....7B
* C10 = Chauvin et al., 2010A&A...509A..52C
* D99 = Delfosse et al., 1999A&A...350L..39D
* D13 = Delorme et al., 2013A&A...553L...5D
* E15 = Elliott et al., 2015A&A...580A..88E
* J01 = Jayawardhana & Brandeker, 2001ApJ...561L.111J

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

C  Declarations for 'table3.dat'	! Photometric properties

      integer*4 nr__2
      parameter (nr__2=51)	! Number of records
      character*51 ar__2  	! Full-size record

      character*17  v2MASS_2   (nr__2) ! 2MASS identifier
      character*2   Pair_1     (nr__2) ! Pair identifier
      real*4        dzmag      (nr__2) ! (mag) z'-band magnitude difference
      real*4        e_dzmag    (nr__2) ! (mag) z'-band magnitude error
      real*4        M1         (nr__2) ! (Msun) Estimated mass of the primary
      real*4        M2         (nr__2) ! (Msun) Estimated mass of the secondary
      integer*4     a          (nr__2) ! (AU) Estimated semi-major axis
      integer*4     Porb       (nr__2) ! (yr) Estimated orbital period

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

C  Loading file 'table1.dat'	! Full sample summary

C  Format for file interpretation

    1 format(
     +  A17,1X,A4,1X,A4,1X,A4,1X,F5.2,1X,F6.1,1X,F6.1,1X,F6.1,1X,A4,
     +  1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,181
        read(1,'(A66)')ar__
        read(ar__,1)
     +  v2MASS(i__),SpType(i__),YMG(i__),r_YMG(i__),Jmag(i__),
     +  pmRA(i__),pmDE(i__),Dist(i__),Method(i__),Mult(i__)
c    ..............Just test output...........
        write(6,1)
     +  v2MASS(i__),SpType(i__),YMG(i__),r_YMG(i__),Jmag(i__),
     +  pmRA(i__),pmDE(i__),Dist(i__),Method(i__),Mult(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Astrometric properties

C  Format for file interpretation

    2 format(
     +  A17,1X,A5,2X,F6.3,1X,F5.3,1X,F5.1,1X,F3.1,1X,F7.2,1X,A1,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,70
        read(1,'(A61)')ar__1
        read(ar__1,2)
     +  v2MASS_1(i__),Pair(i__),Sep(i__),e_Sep(i__),PA(i__),e_PA(i__),
     +  Epoch(i__),CPM(i__),r_CPM(i__)
c    ..............Just test output...........
        write(6,2)
     +  v2MASS_1(i__),Pair(i__),Sep(i__),e_Sep(i__),PA(i__),e_PA(i__),
     +  Epoch(i__),CPM(i__),r_CPM(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Photometric properties

C  Format for file interpretation

    3 format(A17,1X,A2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F5.3,1X,I3,1X,I5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,51
        read(1,'(A51)')ar__2
        read(ar__2,3)
     +  v2MASS_2(i__),Pair_1(i__),dzmag(i__),e_dzmag(i__),M1(i__),
     +  M2(i__),a(i__),Porb(i__)
c    ..............Just test output...........
        write(6,3)
     +  v2MASS_2(i__),Pair_1(i__),dzmag(i__),e_dzmag(i__),M1(i__),
     +  M2(i__),a(i__),Porb(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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