FORTRAN Generation
(/./ftp/cats/J/A_A/506/79)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/506/79 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/506/79    Asteroseismic analysis of HD 174936    (Garcia Hernandez+, 2009)
*================================================================================
*Asteroseismic analysis of the CoRoT {delta}-Scuti star HD 174936.
*    Garcia Hernandez A., Moya A., Michel E., Garrido R., Suarez J.C.,
*    Rodriguez E., Amado P.J., Martin-Ruiz S., Rolland A., Poretti E., Samadi R.,
*    Baglin A., Auvergne M., Catala C., Lefevre L., Baudin F.
*   <Astron. Astrophys. 506, 79 (2009)>
*   =2009A&A...506...79G
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! List of peaks detected for HD174936 in the
                              frequency region 0.05-100c/d until sig=10.0

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

      integer*4     Seq        (nr__) ! Sequence number of the peak, in the same order
*                                   that this was detected
      real*8        Freq       (nr__) ! (d-1) Frequency
      real*4        Amp        (nr__) ! (mmag) Amplitude
      real*8        Phase      (nr__) ! (rad) [-3.14,3.14] Phase
      real*8        Sig        (nr__) ! Significance of frequency (1)
      real*8        S_N        (nr__) ! Signal to noise ratio (2)
      real*4        rms        (nr__) ! (mmag) rms for frequency "Seq" (3)
      real*8        e_Freq     (nr__) ! (d-1) Formal error on freq (4)
      real*4        e_Amp      (nr__) ! (mmag) Formal error on Amp (4)
      real*8        e_Phase    (nr__) ! (rad) Formal error on Phase (4)
*Note (1): As defined by Reegen, 2007A&A...467.1353R.
*Note (2): Calculated using Period04 (Lenz & Breger 2005, CoAst 146, 5) on
*     the residuals provided by SigSpec. Each S/N value was calculated on a
*     box of width=5c/d centred in the corresponding peak, as usual in a
*     number of papers of Breger et al.
*Note (3): sigma of the residuals before extracting the peak "Seq"
*Note (4): Determined using the formulae of Montgomery & O'Donoghue (1999,
*     DSSN 13, 28).

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

C  Loading file 'table1.dat'	! List of peaks detected for HD174936 in the
*                              frequency region 0.05-100c/d until sig=10.0

C  Format for file interpretation

    1 format(
     +  I3,1X,F11.8,1X,F6.4,1X,F9.6,1X,F8.3,1X,F8.4,F5.3,1X,F10.8,1X,
     +  F6.4,1X,F8.6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,422
        read(1,'(A82)')ar__
        read(ar__,1)
     +  Seq(i__),Freq(i__),Amp(i__),Phase(i__),Sig(i__),S_N(i__),
     +  rms(i__),e_Freq(i__),e_Amp(i__),e_Phase(i__)
c    ..............Just test output...........
        write(6,1)
     +  Seq(i__),Freq(i__),Amp(i__),Phase(i__),Sig(i__),S_N(i__),
     +  rms(i__),e_Freq(i__),e_Amp(i__),e_Phase(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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