CDS.headStuff2 FORTRAN Generation
()

Conversion of standardized ReadMe file for catalog 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-24
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/696/1950         Sloan iz light curves of HAT-P-10          (Bakos+, 2009)
*================================================================================
*HAT-P-10b: a light and moderately hot Jupiter transiting a K dwarf.
*    Bakos G.A., Pal A., Torres G., Sipocz B., Latham D.W., Noyes R.W.,
*    Kovacs G., Hartman J., Esquerdo G.A., Fischer D.A., Johnson J.A.,
*    Marcy G.W., Butler R.P., Howard A.W., Sasselov D.D., Kovacs G.,
*    Stefanik R.P., Lazar J., Papp I., Sari P.
*   <Astrophys. J., 696, 1950-1955 (2009)>
*   =2009ApJ...696.1950B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Photometry follow-up of HAT-P-10

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

      real*8        BJD        (nr__) ! (d) Baricentric Julian Date
      real*8        mag        (nr__) ! (mag) Observed relative magnitude in Filt (1)
      real*8        e_mag      (nr__) ! (mag) Error in mag
      real*8        Orimag     (nr__) ! (mag) Original observed magnitude in Filt
      character*1   Filt       (nr__) ! Filter used (i or z) (2)
*Note (1): The out-of-transit level has been subtracted. These magnitudes
*     have been subjected to reconstructive External Parameter Decorrelation
*     (EPD; see Bakos et al. 2007ApJ...671L.173B) procedure, carried out
*     simultaneously with the transit fit.
*Note (2): Filter as follows:
*    z = SDSS z band filter taken on Sept. 19, 2008.
*    i = SDSS i band filter taken on Oct. 30, 2008.

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

C  Loading file 'table2.dat'	! Photometry follow-up of HAT-P-10

C  Format for file interpretation

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

C  Effective file loading

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

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