FORTRAN Generation
(/./ftp/cats/J/A_A/589/A58)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/589/A58 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-20
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/589/A58      High-resolution imaging of TEP systems (HITEP) (Evans+, 2016)
*================================================================================
*High-resolution Imaging of Transiting Extrasolar Planetary systems (HITEP).
*I. Lucky imaging observations of 101 systems in the southern hemisphere.
*    Evans D.F., Southworth H., Maxted P.F.L., Skottfelt J., Hundertmark M.,
*    Jorgensen U.G., Dominik M., Alsubai K.A., Andersen M.I., Bozza V.,
*    Bramich D.M., Burgdorf M.J., Ciceri S., D'Ago G., Figuera Jaimes R.,
*    Gu S.H., Haugbolle T., Hinse T.C., Juncher D., Kains N., Kerins E.,
*    Korhonen H., Kuffmeier M., Peixinho N., Popovas A., Rabus M., Rahvar S.,
*    Schmidt R.W., Snodgrass C., Starkey D., Surdej J., Tronsgaard R.,
*    von Essen C., Wang Y.B., Wertz O.
*    <Astron. Astrophys. 589, A58 (2016)>
*    =2016A&A...589A..58E        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Summary of observations of TEP host stars
                                 for 101 stars

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

      character*11  Name       (nr__) ! Target name
      real*8        BJD        (nr__) ! (d) Barycentric Julian Date
      integer*4     ExpRed     (nr__) ! (s) Exposure time with red camera
      integer*4     ExpVis     (nr__) ! (s) ? Exposure time with visible camera

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

C  Declarations for 'table4.dat'	! Derived K-band distances to TEP host stars

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

      character*11  Name_1     (nr__1) ! Target name
      real*4        Dist       (nr__1) ! (pc) Distance to system
      real*4        e_Dist     (nr__1) ! (pc) Error in distance

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

C  Declarations for 'table8.dat'	! Measured properties of all candidate companions

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

      character*11  Name_2     (nr__2) ! Target name
      integer*4     CompID     (nr__2) ! ID of the candidate companion
      real*4        Sep        (nr__2) ! (arcsec) Separation between target and companion
      real*4        e_Sep      (nr__2) ! (arcsec) Error in separation
      real*4        PA         (nr__2) ! (deg) Position angle of companion, measured from N
      real*4        e_PA       (nr__2) ! (deg) Error in position angle
      real*8        redmag     (nr__2) ! (mag) Brightness in red relative to TEP host
      real*4        e_redmag   (nr__2) ! (mag) Error in red brightness
      real*8        vismag     (nr__2) ! (mag) ? Brightness in visual relative to TEP host
      real*4        e_vismag   (nr__2) ! (mag) ? Error in visual brightness
      real*8        BJD_1      (nr__2) ! (d) Barycentric Julian Date

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

C  Loading file 'table1.dat'	! Summary of observations of TEP host stars
*                                 for 101 stars

C  Format for file interpretation

    1 format(A11,1X,F12.4,1X,I3,1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,279
        read(1,'(A32)')ar__
        read(ar__,1)Name(i__),BJD(i__),ExpRed(i__),ExpVis(i__)
        if(ar__(30:32) .EQ. '') ExpVis(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)Name(i__),BJD(i__),ExpRed(i__),ExpVis(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Derived K-band distances to TEP host stars

C  Format for file interpretation

    2 format(A11,1X,F6.1,1X,F5.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,70
        read(1,'(A24)')ar__1
        read(ar__1,2)Name_1(i__),Dist(i__),e_Dist(i__)
c    ..............Just test output...........
        write(6,2)Name_1(i__),Dist(i__),e_Dist(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table8.dat'	! Measured properties of all candidate companions

C  Format for file interpretation

    3 format(
     +  A11,2X,I2,1X,F6.3,1X,F5.3,1X,F5.1,1X,F3.1,1X,F8.4,1X,F6.4,1X,
     +  F8.4,1X,F6.4,1X,F12.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table8.dat')
      write(6,*) '....Loading file: table8.dat'
      do i__=1,1507
        read(1,'(A83)')ar__2
        read(ar__2,3)
     +  Name_2(i__),CompID(i__),Sep(i__),e_Sep(i__),PA(i__),e_PA(i__),
     +  redmag(i__),e_redmag(i__),vismag(i__),e_vismag(i__),BJD_1(i__)
        if(ar__2(56:63) .EQ. '') vismag(i__) = rNULL__
        if(ar__2(65:70) .EQ. '') e_vismag(i__) = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  Name_2(i__),CompID(i__),Sep(i__),e_Sep(i__),PA(i__),e_PA(i__),
     +  redmag(i__),e_redmag(i__),vismag(i__),e_vismag(i__),BJD_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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