FORTRAN Generation
(/./ftp/cats/J/ApJ/896/81)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/896/81 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-Aug-15
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/ApJ/896/81 HST survey of ONC in H2O 1.4um abs. band. III. (Strampelli+, 2020)
*================================================================================
*HST survey of the Orion Nebula Cluster in the H2O 1.4um absorption band.
*III. The population of substellar binary companions.
*    Strampelli G.M., Aguilar J., Pueyo L., Aparicio A., Gennaro M., Ubeda L.,
*    Robberto M.
*   <Astrophys. J., 896, 81 (2020)>
*   =2020ApJ...896...81S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! *Candidate Binaries catalog (KLIP)

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     Seq        (nr__) ! [0/96] Catalog entry number
      integer*4     WFC3IDp    (nr__) ! [56/4307] Primary ID from Catalog I
*                                   (Robberto+, 2020, J/ApJ/896/79)
      integer*4     WFC3IDc    (nr__) ! [-1/4308] Companion ID from Catalog I (1)
      character*11  Name       (nr__) ! Simbad name designation
      real*8        RAdeg      (nr__) ! (deg) [83.6/84] Primary Right Ascension (J2000)
      real*8        DEdeg      (nr__) ! (deg) [-5.7/-5.2] Primary Declination (J2000)
      real*8        m130p      (nr__) ! (mag) [11/16.81] Primary F130N filter magnitude
*                                   from Catalog I
      real*8        colorp     (nr__) ! (mag) [-0.41/0.27] Primary F130N-F139M color from
*                                   Catalog I
      real*8        e_m130p    (nr__) ! (mag) [0.0007/0.4] Uncertainty in m130p
      real*8        e_colorp   (nr__) ! (mag) [9e-5/0.1] Uncertainty in colorp
      real*8        m130c      (nr__) ! (mag) [11.16/20.1] Companion F130N filter
*                                   magnitude from aperture photometry
      real*8        colorc     (nr__) ! (mag) [-0.8/0.35] Companion F130N-F139M color
*                                   from aperture photometry
      real*8        e_m130c    (nr__) ! (mag) [0.0007/0.8] Uncertainty in m130c
      real*8        e_colorc   (nr__) ! (mag) [0.0003/0.3] Uncertainty in colorc
      real*8        Massp      (nr__) ! (Msun) [0.01/1.3] Primary mass
      real*8        Massc      (nr__) ! (Msun) [0.004/1.1] Companion mass
      real*8        e_Massp    (nr__) ! (Msun) [3.5e-5/0.4] Error in Massp
      real*8        e_Massc    (nr__) ! (Msun) [3e-5/0.5] Error in Massc
      real*4        PA         (nr__) ! (deg) [6/360] Position angle
      real*4        Sep        (nr__) ! (arcsec) [0.16/1.8] Separation between primary and
*                                   companion
      real*8        SepOriC    (nr__) ! (arcsec) [14.6/1065] Distance from teta1 OriC
*Note (1): -1 if the companion is detected through KLIP

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

C  Declarations for 'table2.dat'	! Candidate Binaries catalog (Paper I;
                               Robberto+, 2020, J/ApJ/896/79)

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     Seq_1      (nr__1) ! [0/96] Catalog entry number
      integer*4     WFC3IDp_1  (nr__1) ! [56/4307] Primary ID from Catalog I
*                                   (Robberto+, 2020, J/ApJ/896/79)
      integer*4     WFC3IDc_1  (nr__1) ! [-1/4308] Companion ID from Catalog I (1)
      character*11  Name_1     (nr__1) ! Simbad name designation
      real*8        RAdeg_1    (nr__1) ! (deg) [83.6/84] Primary Right Ascension (J2000)
      real*8        DEdeg_1    (nr__1) ! (deg) [-5.7/-5.2] Primary Declination (J2000)
      real*8        m130p_1    (nr__1) ! (mag) [11/16.81] Primary F130N filter magnitude
*                                   from Catalog I
      real*8        colorp_1   (nr__1) ! (mag) [-0.41/0.27] Primary F130N-F139M color from
*                                   Catalog I
      real*8        e_m130p_1  (nr__1) ! (mag) [0.0007/0.4] Uncertainty in m130p
      real*8        e_colorp_1 (nr__1) ! (mag) [9e-5/0.1] Uncertainty in colorp
      real*8        m130c_1    (nr__1) ! (mag) [11.16/20.1] Companion F130N filter
*                                   magnitude from aperture photometry
      real*8        colorc_1   (nr__1) ! (mag) [-0.8/0.35] Companion F130N-F139M color
*                                   from aperture photometry
      real*8        e_m130c_1  (nr__1) ! (mag) [0.0007/0.8] Uncertainty in m130c
      real*8        e_colorc_1 (nr__1) ! (mag) [0.0003/0.3] Uncertainty in colorc
      real*8        Massp_1    (nr__1) ! (Msun) [0.01/1.3] Primary mass
      real*8        Massc_1    (nr__1) ! (Msun) [0.004/1.1] Companion mass
      real*8        e_Massp_1  (nr__1) ! (Msun) [3.5e-5/0.4] Error in Massp
      real*8        e_Massc_1  (nr__1) ! (Msun) [3e-5/0.5] Error in Massc
      real*4        PA_1       (nr__1) ! (deg) [6/360] Position angle
      real*4        Sep_1      (nr__1) ! (arcsec) [0.16/1.8] Separation between primary and
*                                   companion
      real*8        SepOriC_1  (nr__1) ! (arcsec) [14.6/1065] Distance from teta1 OriC
*Note (1): -1 if the companion is detected through KLIP

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

C  Loading file 'table1.dat'	! *Candidate Binaries catalog (KLIP)

C  Format for file interpretation

    1 format(
     +  I2,1X,I4,1X,I4,1X,A11,1X,F11.8,1X,F12.9,1X,F7.4,1X,F8.5,1X,
     +  F7.5,1X,F7.5,1X,F8.5,1X,F8.5,1X,F7.5,1X,F7.5,1X,F8.6,1X,F8.6,
     +  1X,F8.6,1X,F8.6,1X,F6.2,1X,F4.2,1X,F10.5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,39
        read(1,'(A175)')ar__
        read(ar__,1)
     +  Seq(i__),WFC3IDp(i__),WFC3IDc(i__),Name(i__),RAdeg(i__),
     +  DEdeg(i__),m130p(i__),colorp(i__),e_m130p(i__),e_colorp(i__),
     +  m130c(i__),colorc(i__),e_m130c(i__),e_colorc(i__),Massp(i__),
     +  Massc(i__),e_Massp(i__),e_Massc(i__),PA(i__),Sep(i__),
     +  SepOriC(i__)
c    ..............Just test output...........
        write(6,1)
     +  Seq(i__),WFC3IDp(i__),WFC3IDc(i__),Name(i__),RAdeg(i__),
     +  DEdeg(i__),m130p(i__),colorp(i__),e_m130p(i__),e_colorp(i__),
     +  m130c(i__),colorc(i__),e_m130c(i__),e_colorc(i__),Massp(i__),
     +  Massc(i__),e_Massp(i__),e_Massc(i__),PA(i__),Sep(i__),
     +  SepOriC(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Candidate Binaries catalog (Paper I;
*                               Robberto+, 2020, J/ApJ/896/79)

C  Format for file interpretation

    2 format(
     +  I2,1X,I4,1X,I4,1X,A11,1X,F11.8,1X,F12.9,1X,F7.4,1X,F8.5,1X,
     +  F7.5,1X,F7.5,1X,F8.5,1X,F8.5,1X,F7.5,1X,F7.5,1X,F8.6,1X,F8.6,
     +  1X,F8.6,1X,F8.6,1X,F6.2,1X,F4.2,1X,F10.5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,58
        read(1,'(A175)')ar__1
        read(ar__1,2)
     +  Seq_1(i__),WFC3IDp_1(i__),WFC3IDc_1(i__),Name_1(i__),
     +  RAdeg_1(i__),DEdeg_1(i__),m130p_1(i__),colorp_1(i__),
     +  e_m130p_1(i__),e_colorp_1(i__),m130c_1(i__),colorc_1(i__),
     +  e_m130c_1(i__),e_colorc_1(i__),Massp_1(i__),Massc_1(i__),
     +  e_Massp_1(i__),e_Massc_1(i__),PA_1(i__),Sep_1(i__),
     +  SepOriC_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  Seq_1(i__),WFC3IDp_1(i__),WFC3IDc_1(i__),Name_1(i__),
     +  RAdeg_1(i__),DEdeg_1(i__),m130p_1(i__),colorp_1(i__),
     +  e_m130p_1(i__),e_colorp_1(i__),m130c_1(i__),colorc_1(i__),
     +  e_m130c_1(i__),e_colorc_1(i__),Massp_1(i__),Massc_1(i__),
     +  e_Massp_1(i__),e_Massc_1(i__),PA_1(i__),Sep_1(i__),
     +  SepOriC_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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