FORTRAN Generation
(/./ftp/cats/J/AJ/165/95)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/165/95 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-Oct-12
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/AJ/165/95      Identifying Exoplanets with Deep Learning. V.      (Tey+, 2023)
*================================================================================
*Identifying Exoplanets with Deep Learning.
*V. Improved Light-curve Classification for TESS Full-frame Image Observations.
*    Tey E., Moldovan D., Kunimoto M., Huang C.X., Shporer A., Daylan T.,
*    Muthukrishna D., Vanderburg A., Dattilo A., Ricker G.R., Seager S.
*   <Astron. J., 165, 95 (2023)>
*   =2023AJ....165...95T
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! *Threshold-crossing events (TCE) table

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

      integer*8     TIC        (nr__) ! TESS Input Catalog identifier
      real*8        Epoch      (nr__) ! (d) [1198/2366] BLS-detected transit center in BTJD
      real*8        Per        (nr__) ! (d) [0.06/167] BLS-detected period
      character*15  Dur        (nr__) ! (d) BLS-detected duration
      integer*8     Depth      (nr__) ! (ppm) [0/396326348810] BLS-detected depth
      real*8        Mass       (nr__) ! (Msun) [0.16/3.69]? Stellar mass via TIC 8.2
      real*8        Rad        (nr__) ! (Rsun) [0.18/151]? Stellar radius via TIC 8.2
      real*8        eRad       (nr__) ! (Rsun) [0.1/1000]? Estimated stellar radius; Section 3.2
      real*8        Tmag       (nr__) ! (mag) [0.57/13.6] TESS-band magnitude
      integer*4     Year       (nr__) ! [1/3] TESS Cycle signal was detected
      real*8        MinT       (nr__) ! (d) [1325/2362] Minimum BTJD used from the light curve
      real*8        MaxT       (nr__) ! (d) [1541/2390] Maximum BTJD used from the light curve
      character*5   Split      (nr__) ! Dataset signal was used for; test, train, or val
      character*1   CLabel     (nr__) ! Consensus label (1)
      character*1   L1         (nr__) ! Label assigned by labeller L1
      character*1   L2         (nr__) ! Label assigned by labeller L2
      character*1   L3         (nr__) ! Label assigned by labeller L3
      character*1   L4         (nr__) ! Label assigned by labeller L4
      character*1   L5         (nr__) ! Label assigned by labeller L5
      character*1   L6         (nr__) ! Label assigned by labeller L6
      character*1   L7         (nr__) ! Label assigned by labeller L7
      character*1   L8         (nr__) ! Label assigned by labeller L8
*Note (1): Final label used for training by unanimous vote or
*    discussion. When absent, we used a weighted average of the individual
*    votes for training.

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

C  Loading file 'table2.dat'	! *Threshold-crossing events (TCE) table

C  Format for file interpretation

    1 format(
     +  I10,1X,F11.6,1X,F11.7,1X,A15,1X,I12,1X,F8.6,1X,F13.9,1X,
     +  F15.10,1X,F8.5,1X,I1,1X,F11.6,1X,F11.6,1X,A5,1X,A1,1X,A1,1X,
     +  A1,1X,A1,1X,A1,1X,A1,1X,A1,1X,A1,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,24926
        read(1,'(A161)')ar__
        read(ar__,1)
     +  TIC(i__),Epoch(i__),Per(i__),Dur(i__),Depth(i__),Mass(i__),
     +  Rad(i__),eRad(i__),Tmag(i__),Year(i__),MinT(i__),MaxT(i__),
     +  Split(i__),CLabel(i__),L1(i__),L2(i__),L3(i__),L4(i__),
     +  L5(i__),L6(i__),L7(i__),L8(i__)
        if(ar__(65:72) .EQ. '') Mass(i__) = rNULL__
        if(ar__(74:86) .EQ. '') Rad(i__) = rNULL__
        if(ar__(88:102) .EQ. '') eRad(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  TIC(i__),Epoch(i__),Per(i__),Dur(i__),Depth(i__),Mass(i__),
     +  Rad(i__),eRad(i__),Tmag(i__),Year(i__),MinT(i__),MaxT(i__),
     +  Split(i__),CLabel(i__),L1(i__),L2(i__),L3(i__),L4(i__),
     +  L5(i__),L6(i__),L7(i__),L8(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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