CDS.headStuff2 FORTRAN Generation
()

Conversion of standardized ReadMe file for catalog into FORTRAN code for reading data files line by line.

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-May-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/533/A4        CoRoT photometry of three O-type stars      (Blomme+, 2011)
*================================================================================
*Variability in the CoRoT photometry of three hot O-type stars.
*HD 46223, HD 46150 and HD 46966
*    Blomme R., Mahy L., Catala C., Cuypers J., Gosset E., Godart M.,
*    Montalban J., Ventura P., Rauw G., Morel T., Degroote P., Aerts C.,
*    Noels A., Michel E., Baudin F., Baglin A., Auvergne M., Samadi R.
*   <Astron. Astrophys. 533, A4 (2011)>
*   =2011A&A...533A...4B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'hd46223.dat'	! Frequencies, amplitudes, phases for HD 46223
                              (table 2 of the paper)

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

      integer*4     ID          ! Frequency ID (running number)
      real*8        Freq        ! (d-1) Frequency
      real*8        e_Freq      ! (d-1) Error on the frequency
      real*8        Ampl        ! (ct) Semi-amplitude
      real*8        e_Ampl      ! (ct) Error on semi-amplitude
      real*4        Phase       ! (rad) Phase
      real*4        e_Phase     ! (rad) Error on the phase
      real*8        Stdev       ! (ct) Standard deviation at this phase prewhitening
      real*4        SigRed      ! Significance under red noise conditions
      character*1   Red         ! [R] 'R' if significant under red noise,
*                                     ' ' otherwise
      character*1   Half        ! [*] '*' if still present when data set is split
*                                      in two halves, ' ' otherwise

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

C  Loading file 'hd46223.dat'	! Frequencies, amplitudes, phases for HD 46223
*                              (table 2 of the paper)

C  Format for file interpretation

    1 format(
     +  I4,1X,F7.4,1X,F7.4,1X,F8.3,1X,F8.3,1X,F6.3,1X,F6.3,1X,F9.3,2X,
     +  F6.4,1X,A1,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'J/A+A/533/A4/hd46223.dat')
      write(6,*) '....Loading file: hd46223.dat'
      do i__=1,500
        read(1,'(A74)')ar__
        read(ar__,1)
     +  ID,Freq,e_Freq,Ampl,e_Ampl,Phase,e_Phase,Stdev,SigRed,Red,Half
c    ..............Just test output...........
        write(6,1)
     +  ID,Freq,e_Freq,Ampl,e_Ampl,Phase,e_Phase,Stdev,SigRed,Red,Half
c    .......End.of.Just test output...........
      end do
      close(1)

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