FORTRAN Generation
(/./ftp/cats/J/A_A/520/A108)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/520/A108 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/A+A/520/A108      CoRoT 101128793 light curves             (Poretti+, 2010)
*================================================================================
*CoRoT light curves of RR Lyrae stars.
*CoRoT 101128793: long-term changes in the Blazhko effect and excitation of
*additional modes.
*    Poretti E., Paparo M., Deleuil M., Chadid M., Kolenberg K., Szabo R.,
*    Benko J.M., Chapellier E., Guggenberger E., LeBorgne J.F., Rostagni F.,
*    Trinquet H., Auvergne M., Baglin A., Sarro L.M., Weiss W.W.
*   <Astron. Astrophys. 520, A108 (2010)>
*   =2010A&A...520A.108P
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'phot.dat'	! List of data

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

      real*8        HJD        (nr__) ! (d) Observation date (HJD-2450000.0)
      real*8        mag        (nr__) ! (mag) Magnitude

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

C  Declarations for 'table1.dat'	! List of frequencies

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

      real*8        Freq       (nr__1) ! (d-1) Detected frequency
      real*8        Amp        (nr__1) ! (mag) Amplitude
      real*4        Phase      (nr__1) ! (rad) Phase value (T0=2454308.2168), cosine series
      real*4        S_N        (nr__1) ! Signal-to-noise ratio
      character*15  Mode       (nr__1) ! Pulsation mode identification

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

C  Declarations for 'table2.dat'	! List of times of maxima

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

      integer*4     Cycle      (nr__2) ! Cycle counter
      real*8        Tmax       (nr__2) ! (d) Time of maximum brightness, HJD-2450000
      real*8        magmax     (nr__2) ! (mag) Magnitude at the maximum
      real*8        O_C        (nr__2) ! (d) O-C with respect to the ephemeris for
*                                   time of maximum, HJD

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

C  Loading file 'phot.dat'	! List of data

C  Format for file interpretation

    1 format(1X,F10.5,3X,F9.6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'phot.dat')
      write(6,*) '....Loading file: phot.dat'
      do i__=1,20898
        read(1,'(A23)')ar__
        read(ar__,1)HJD(i__),mag(i__)
c    ..............Just test output...........
        write(6,1)HJD(i__),mag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table1.dat'	! List of frequencies

C  Format for file interpretation

    2 format(1X,F10.7,4X,F8.6,4X,F6.4,3X,F6.3,2X,A15)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,79
        read(1,'(A59)')ar__1
        read(ar__1,2)Freq(i__),Amp(i__),Phase(i__),S_N(i__),Mode(i__)
c    ..............Just test output...........
        write(6,2)Freq(i__),Amp(i__),Phase(i__),S_N(i__),Mode(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! List of times of maxima

C  Format for file interpretation

    3 format(I3,3X,F9.4,2X,F7.4,4X,F7.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,301
        read(1,'(A35)')ar__2
        read(ar__2,3)Cycle(i__),Tmax(i__),magmax(i__),O_C(i__)
c    ..............Just test output...........
        write(6,3)Cycle(i__),Tmax(i__),magmax(i__),O_C(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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