FORTRAN Generation
(/./ftp/cats/J/A_A/620/A142)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/620/A142 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-05
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/620/A142      HAT-P-12b 2016-2017 light curve            (Alexoudi+, 2018)
*================================================================================
*Deciphering the atmosphere of HAT-P-12b: solving discrepant results.
*    Alexoudi X., Mallonn M., von Essen C., Turner J.D., Keles E.,
*    Southworth J., Mancini L., Ciceri S., Granzer T., Denker C., Dineva E.,
*    Strassmeier K.G.
*    <Astron. Astrophys. 620, A142 (2018)>
*    =2018A&A...620A.142A        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Overview of the new observations of transits of
                                 HAT-P-12b during 2016 and 2017

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

      character*11  Date       (nr__) ! ("date") Observation date
      character*16  Tel        (nr__) ! Telescope
      character*2   Filt       (nr__) ! Filter
      integer*4     Texp       (nr__) ! (s) Exposure time
      integer*4     Ndata      (nr__) ! Number of individual data points
      real*4        rms        (nr__) ! (mag) Scatter of the data points as root-mean-square
*                                   (rms) of the light curve residuals
      real*4        beta       (nr__) ! beta factor
      real*8        MJD1       (nr__) ! (d) Modified, barycentric Julian Date of first
*                                   measurement
      real*8        MJD2       (nr__) ! (d) Modified, barycentric Julian Date of last
*                                   measurement
      integer*4     Trans      (nr__) ! [1/10] Transit number

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

C  Declarations for 'hatp12b.dat'	! Broadband photometry of HAT-P-12b

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

      real*4        lambda     (nr__1) ! (nm) Effective central wavelength (1)
      real*4        FWHM       (nr__1) ! (nm) Wavelength FWHM
      real*8        MJD        (nr__1) ! (d) Modified, barycentric Julian Date
*                                   (Julian Date - 2400000.5)
      real*8        Flux       (nr__1) ! Normalized relative flux
      real*8        e_Flux     (nr__1) ! Uncertainty on relative flux
      character*16  Tel_1      (nr__1) ! Telescope name (1)
      integer*4     Trans_1    (nr__1) ! [1/10] Transit number
*Note (1): Telescopes and wavelengths:
*   1.23m Calar Alto (B, 448.5nm) 2 transits, 2.2m Calar Alto (B, 451.1nm)
*   1 transit, ARC (B, 434.0nm) 1 transit, STELLA (g', 475.4nm) 5 transits and
*   TNG (B, 436.0nm) 1 transit.

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

C  Loading file 'table1.dat'	! Overview of the new observations of transits of
*                                 HAT-P-12b during 2016 and 2017

C  Format for file interpretation

    1 format(
     +  A11,1X,A16,1X,A2,1X,I3,1X,I3,1X,F6.4,1X,F4.2,1X,F13.7,1X,
     +  F13.7,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,10
        read(1,'(A82)')ar__
        read(ar__,1)
     +  Date(i__),Tel(i__),Filt(i__),Texp(i__),Ndata(i__),rms(i__),
     +  beta(i__),MJD1(i__),MJD2(i__),Trans(i__)
c    ..............Just test output...........
        write(6,1)
     +  Date(i__),Tel(i__),Filt(i__),Texp(i__),Ndata(i__),rms(i__),
     +  beta(i__),MJD1(i__),MJD2(i__),Trans(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'hatp12b.dat'	! Broadband photometry of HAT-P-12b

C  Format for file interpretation

    2 format(F5.1,2X,F5.1,2X,F13.7,2X,F9.7,2X,F9.7,2X,A16,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'hatp12b.dat')
      write(6,*) '....Loading file: hatp12b.dat'
      do i__=1,1595
        read(1,'(A70)')ar__1
        read(ar__1,2)
     +  lambda(i__),FWHM(i__),MJD(i__),Flux(i__),e_Flux(i__),
     +  Tel_1(i__),Trans_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  lambda(i__),FWHM(i__),MJD(i__),Flux(i__),e_Flux(i__),
     +  Tel_1(i__),Trans_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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