FORTRAN Generation
(/./ftp/cats/J/ApJ/747/108)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/747/108 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 2026-Aug-12
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/747/108   Rigel. I. MOST photometry and RV monitoring   (Moravveji+, 2012)
*================================================================================
*Asteroseismology of the nearby SN-II progenitor: Rigel.
*I. The MOST high-precision photometry and radial velocity monitoring.
*    Moravveji E., Guinan E.F., Shultz M., Williamson M.H., Moya A.
*   <Astrophys. J., 747, 108 (2012)>
*   =2012ApJ...747..108M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'data1.dat'	! MOST (Microvariability and Oscillations of Stars)
                            space photometry

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

      real*8        HJD         ! (d) Heliocentric Julian Date (HJD-2450000)
      real*8        Dmag        ! (mmag) Relative MOST observed magnitude

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

C  Declarations for 'data2.dat'	! Full AST radial velocity data set (Automatic
                            Spectroscopic Telescope at Fairborn Observatory)

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

      real*8        HJD_1       ! (d) Heliocentric Julian Date
      real*4        RVel        ! (km/s) Radial velocity (1)
      real*4        e_RVel      ! (km/s) Error in RVel
*Note (1): Calculated using a gaussfit of 29 metallic lines.
*     Some of the wavelengths have been adjusted to make the computed radial
*     velocity for that line consistent with the average for all the lines
*     in the spectra. A +0.3km/s offset for the AST is already added.
*  ------------------------------------------------------------------------
*    line                  ID from
*  ------------------------------------------------------------------------
*  5015.720  HeI      # 5015.679  Saul Adelman B6IV list
*  5018.448  FeII     # 5018.448  Saul Adelman B6IV list
*  5032.444
*  5040.993  SiII     # 5040.993  Saul Adelman B6IV list
*  5047.691  HeI      # 5047.749  Saul Adelman B6IV list
*  5056.038  SiII     # 5055.988  Saul Adelman B6IV list
*  5127.546  Fe       # 5127.51   Ewa Niemczura & Gerald Handler HD_886
*  5169.040  FeII     # 5169.040  Saul Adelman B6IV list
*  5260.202
*  5316.551  FeII     # 5316.620  solar
*  5428.654
*  5432.812  SII      # 5432.8    Ewa Niemczura & Gerald Handler HD_886
*  5453.879  SII      # 5453.851  Saul Adelman B6IV list
*  5473.600  S        # 5473.6    Ewa Niemczura & Gerald Handler HD_886
*  5509.730  S        # 5509.7    Ewa Niemczura & Gerald Handler HD_886
*  5564.975
*  5606.162
*  5640.110  SII      # 5640.0    Ewa Niemczura & Gerald Handler HD_886
*  5647.050  SII      # 5647.0    Ewa Niemczura & Gerald Handler HD_886
*  5659.990  SII      # 5660.0    Ewa Niemczura & Gerald Handler HD_886
*  5875.776  HeI      # 5875.618  Ewa Niemczura & Gerald Handler HD_886
*  5978.906
*  6143.069  Ne       # 6143.063  Ewa Niemczura & Gerald Handler HD_886
*  6347.075  SiII     # 6347.091  Underhill B6 list
*  6371.350  SiII     # 6371.355  solar
*  6402.260  Ne       # 6402.246  Ewa Niemczura & Gerald Handler HD_886
*  6578.113  CII      # 6578.030  Underhill B6 list
*  6582.962  CII      # 6582.850  Underhill B6 list
*  6678.224  HeI      # 6678.149  Underhill B6 list

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

C  Loading file 'data1.dat'	! MOST (Microvariability and Oscillations of Stars)
*                            space photometry

C  Format for file interpretation

    1 format(F9.4,1X,F10.8)

C  Effective file loading

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

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

C  Loading file 'data2.dat'	! Full AST radial velocity data set (Automatic
*                            Spectroscopic Telescope at Fairborn Observatory)

C  Format for file interpretation

    2 format(F13.5,1X,F5.2,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'data2.dat')
      write(6,*) '....Loading file: data2.dat'
      do i__=1,2328
        read(1,'(A25)')ar__1
        read(ar__1,2)HJD_1,RVel,e_RVel
c    ..............Just test output...........
        write(6,2)HJD_1,RVel,e_RVel
c    .......End.of.Just test output...........
      end do
      close(1)

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