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 reading data files line by line.

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         ! TESS Input Catalog identifier
      real*8        Epoch       ! (d) [1198/2366] BLS-detected transit center in BTJD
      real*8        Per         ! (d) [0.06/167] BLS-detected period
      character*15  Dur         ! (d) BLS-detected duration
      integer*8     Depth       ! (ppm) [0/396326348810] BLS-detected depth
      real*8        Mass        ! (Msun) [0.16/3.69]? Stellar mass via TIC 8.2
      real*8        Rad         ! (Rsun) [0.18/151]? Stellar radius via TIC 8.2
      real*8        eRad        ! (Rsun) [0.1/1000]? Estimated stellar radius; Section 3.2
      real*8        Tmag        ! (mag) [0.57/13.6] TESS-band magnitude
      integer*4     Year        ! [1/3] TESS Cycle signal was detected
      real*8        MinT        ! (d) [1325/2362] Minimum BTJD used from the light curve
      real*8        MaxT        ! (d) [1541/2390] Maximum BTJD used from the light curve
      character*5   Split       ! Dataset signal was used for; test, train, or val
      character*1   CLabel      ! Consensus label (1)
      character*1   L1          ! Label assigned by labeller L1
      character*1   L2          ! Label assigned by labeller L2
      character*1   L3          ! Label assigned by labeller L3
      character*1   L4          ! Label assigned by labeller L4
      character*1   L5          ! Label assigned by labeller L5
      character*1   L6          ! Label assigned by labeller L6
      character*1   L7          ! Label assigned by labeller L7
      character*1   L8          ! 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,Epoch,Per,Dur,Depth,Mass,Rad,eRad,Tmag,Year,MinT,MaxT,
     +  Split,CLabel,L1,L2,L3,L4,L5,L6,L7,L8
        if(ar__(65:72) .EQ. '') Mass = rNULL__
        if(ar__(74:86) .EQ. '') Rad = rNULL__
        if(ar__(88:102) .EQ. '') eRad = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  TIC,Epoch,Per,Dur,Depth,Mass,Rad,eRad,Tmag,Year,MinT,MaxT,
     +  Split,CLabel,L1,L2,L3,L4,L5,L6,L7,L8
c    .......End.of.Just test output...........
      end do
      close(1)

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