FORTRAN Generation
(/./ftp/cats/J/ApJ/733/116)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/733/116 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/ApJ/733/116         HAT-P-28 and HAT-P-29 photometry         (Buchhave+, 2011)
*================================================================================
*HAT-P-28b and HAT-P-29b: two sub-Jupiter mass transiting planets.
*    Buchhave L.A., Bakos G.A., Hartman J.D., Torres G., Latham D.W.,
*    Andersen J., Kovacs G., Noyes R.W., Shporer A., Esquerdo G.A.,
*    Fischer D.A., Johnson J.A., Marcy G.W., Howard A.W., Beky B.,
*    Sasselov D.D., Furesz G., Quinn S.N., Stefanik R.P., Szklenar T.,
*    Berlind P., Calkins M.L., Lazar J., Papp I., Sari P.
*   <Astrophys. J., 733, 116 (2011)>
*   =2011ApJ...733..116B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! High-precision differential photometry of HAT-P-28

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

      real*8        BJD        (nr__) ! (d) Baryocentric Julian Date; (BJD-2400000)
      real*8        mag        (nr__) ! (mag) Reduced magnitude (1)
      real*8        e_mag      (nr__) ! (mag) Uncertainty in mag
      real*8        Omag       (nr__) ! (mag) Original raw magnitude (2)
      character*1   Filt       (nr__) ! [i] Filter used in the observation (Sloan i)
*Note (1): The out-of-transit level has been subtracted. These magnitudes have
*          been subjected to the External Parameter Decorrelation (EPD)
*          technique and Trend Filtering Algorithm (TFA) procedures
*          (see Bakos et al. 2010, Cat. J/ApJ/710/1724), carried out
*          simultaneously with the transit fit.
*Note (2): Without application of the EPD and TFA procedures.

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

C  Declarations for 'table4.dat'	! High-precision differential photometry of HAT-P-29

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

      real*8        BJD_1      (nr__1) ! (d) Baryocentric Julian Date; (BJD-2400000)
      real*8        mag_1      (nr__1) ! (mag) Reduced magnitude (1)
      real*8        e_mag_1    (nr__1) ! (mag) Uncertainty in mag
      real*8        Omag_1     (nr__1) ! (mag) Original raw magnitude (2)
      character*1   Filt_1     (nr__1) ! [i] Filter used in the observation (Sloan i)
*Note (1): The out-of-transit level has been subtracted. These magnitudes have
*          been subjected to the External Parameter Decorrelation (EPD)
*          technique and Trend Filtering Algorithm (TFA) procedures
*          (see Bakos et al. 2010, Cat. J/ApJ/710/1724), carried out
*          simultaneously with the transit fit.
*Note (2): Without application of the EPD and TFA procedures.

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

C  Loading file 'table3.dat'	! High-precision differential photometry of HAT-P-28

C  Format for file interpretation

    1 format(F11.5,1X,F8.5,1X,F7.5,1X,F8.5,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,767
        read(1,'(A39)')ar__
        read(ar__,1)BJD(i__),mag(i__),e_mag(i__),Omag(i__),Filt(i__)
c    ..............Just test output...........
        write(6,1)BJD(i__),mag(i__),e_mag(i__),Omag(i__),Filt(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! High-precision differential photometry of HAT-P-29

C  Format for file interpretation

    2 format(F11.5,1X,F8.5,1X,F7.5,1X,F8.5,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,454
        read(1,'(A39)')ar__1
        read(ar__1,2)
     +  BJD_1(i__),mag_1(i__),e_mag_1(i__),Omag_1(i__),Filt_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  BJD_1(i__),mag_1(i__),e_mag_1(i__),Omag_1(i__),Filt_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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