FORTRAN Generation
(/./ftp/cats/J/A_A/406/995)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/406/995 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-Oct-14
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/406/995   8500-8750{AA} high resolution spectroscopy. IV. (Marrese+, 2003)
*================================================================================
*High resolution spectroscopy over {lambda}{lambda} 8500-8750{AA} for GAIA.
*IV. Extending the cool MK stars sample.
*    Marrese P.M., Boschi F., Munari U.
*   <Astron. Astrophys. 406, 995 (2003)>
*   =2003A&A...406..995M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Target stars

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

      character*10  Name        ! Star name
      real*4        VTmag       ! (mag) Tycho V magnitude
      real*4        v_B_V_T     ! (mag) Tycho B-V colour index
      character*12  SpType      ! MK Spectral type
      character*1   n__Fe_H_    ! [P] P: Per OB1 metallicity
      real*4        v_Fe_H_     ! ([Sun]) ? Metallicity
      real*4        v_Fe_H_2    ! ([Sun]) ? Second value of metallicity
      real*4        e__Fe_H_    ! ([Sun]) ? rms uncertainty on [Fe/H]
      character*9   VName       ! Variable name
      character*1   Phi         ! [SCML] Variability index (1)
      character*1   Eta         ! [HML] Chromospheric activity index (2)
      character*2   l_vsini     ! [<= ~] Limit flag on vsini
      real*4        vsini       ! (km/s) ? Rotational velocity
      real*4        e_vsini     ! (km/s) ? rms uncertainty on vsini
      character*2   r_SpType    ! Spectral type reference, in refs.dat file
      character*2   r__Fe_H_    ! Metallicity reference, in refs.dat file
      character*2   r_Phi       ! Variability index reference, in refs.dat file
      character*2   r_Eta       ! Chromospheric activity index reference,
*                                  in refs.dat file
      character*2   r_vrsini    ! Rotational velocity reference,
*                                  in refs.dat file
      real*8        HJD         ! (d) Heliocentric Julian Date of observation
      real*4        HRV         ! (km/s) Heliocentric velocity
      real*4        e_HRV       ! (km/s) rms uncertainty on HRV
      integer*4     S_N         ! Signal-to-noise ratio
      character*12  spFile      ! Name of file, in "spectra" subdirectory
*Note (1): The variability index takes the following values:
*     C = constant         (Dm<=0.01mag
*     S = small amplitude  (0.01mag<Dm<=0.2mag)
*     M = medium amplitude (0.2mag<Dm<=0.4mag)
*     L = large amplitude  (Dm>0.4mag)
*Note (2): The chromospheric activity index is based on the CaII K
*    core emission line intensity measured on the Wilson scale,
*    (1976ApJ...205..823W) or on the S photometric index defined by
*    Baliunas (1995ApJ...438..269B). The indices are:
*      L = no activity     (0.0<=S<0.2)
*      M = medium activity (0.2<=S<0.4)
*      H = high activity   (S>=0.4)

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

C  Declarations for 'refs.dat'	! References (table2 of paper)

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

      character*2   Ref         ! Reference code
      character*19  BibCode     ! BibCode
      character*24  aut         ! Author's name
      character*70  Com         ! Comments

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

C  Declarations for 'spectra/*'	! Individual spectra

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

      real*8        lambda      ! (0.1nm) Wavelength in Angstroems
      real*8        Flux        ! Normalized intensity

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

C  Loading file 'table1.dat'	! Target stars

C  Format for file interpretation

    1 format(
     +  A10,2X,F6.3,1X,F5.2,1X,A12,A1,F6.3,1X,F5.2,1X,F5.3,2X,A9,1X,
     +  A1,1X,A1,A2,F4.1,1X,F4.2,1X,A2,1X,A2,1X,A2,1X,A2,1X,A2,1X,
     +  F9.1,1X,F6.1,1X,F3.1,1X,I3,1X,A12)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,92
        read(1,'(A135)')ar__
        read(ar__,1)
     +  Name,VTmag,v_B_V_T,SpType,n__Fe_H_,v_Fe_H_,v_Fe_H_2,e__Fe_H_,
     +  VName,Phi,Eta,l_vsini,vsini,e_vsini,r_SpType,r__Fe_H_,r_Phi,
     +  r_Eta,r_vrsini,HJD,HRV,e_HRV,S_N,spFile
        if(ar__(39:44) .EQ. '') v_Fe_H_ = rNULL__
        if(ar__(46:50) .EQ. '') v_Fe_H_2 = rNULL__
        if(ar__(52:56) .EQ. '') e__Fe_H_ = rNULL__
        if(ar__(74:77) .EQ. '') vsini = rNULL__
        if(ar__(79:82) .EQ. '') e_vsini = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name,VTmag,v_B_V_T,SpType,n__Fe_H_,v_Fe_H_,v_Fe_H_2,e__Fe_H_,
     +  VName,Phi,Eta,l_vsini,vsini,e_vsini,r_SpType,r__Fe_H_,r_Phi,
     +  r_Eta,r_vrsini,HJD,HRV,e_HRV,S_N,spFile
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References (table2 of paper)

C  Format for file interpretation

    2 format(A2,1X,A19,1X,A24,3X,A70)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,27
        read(1,'(A120)')ar__1
        read(ar__1,2)Ref,BibCode,aut,Com
c    ..............Just test output...........
        write(6,2)Ref,BibCode,aut,Com
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'spectra/*'	! Individual spectra

C  Format for file interpretation

    3 format(F16.11,2X,F10.8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'spectra/*')
      write(6,*) '....Loading file: spectra/*'
      do i__=1,92
        read(1,'(A28)')ar__2
        read(ar__2,3)lambda,Flux
c    ..............Just test output...........
        write(6,3)lambda,Flux
c    .......End.of.Just test output...........
      end do
      close(1)

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