FORTRAN Generation
(/./ftp/cats/J/A_A/412/495)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/412/495 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-Mar-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/412/495       Equivalent widths for 6 RS CVn systems     (Morel+, 2003)
*================================================================================
*The photospheric abundances of active binaries.
*II. Atmospheric parameters and abundance patterns for 6 single-lined
*RS CVn systems.
*    Morel T., Micela G., Favata F., Katz D., Pillitteri I.
*   <Astron. Astrophys., 412, 495-512 (2003)>
*   =2003A&A...412..495M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'stars.dat'	! Stars studied

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

      character*9   HD          ! Name of the star
      integer*4     Dist        ! (pc) Heliocentric distance
      real*4        v_B_V_0     ! (mag) Unreddened Johnson V magnitude
      real*4        v_Fe_H_     ! ([Sun]) Metallicity of the star
      integer*4     Teff        ! (K) Effective temperature from Fe excitation
      integer*4     e_Teff      ! (K) Mean error on Teff

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

C  Declarations for 'tablea1.dat'	! Calibrated atomic data and EW measurements.

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

      character*5   Ion         ! Ion designation
      real*4        epsSolar    ! ([Sun]) Kurucz solar abundance
*                                      (logarithmic scale, H=12)
      real*8        Lambda      ! (0.1nm) Wavelength
      real*4        EP          ! (eV) Excitation potential
      real*4        loggf       ! ([---]) Calibrated log(gf)-value
      real*4        EWHD10909   ! (0.1pm) ? EWs for UV For (HD 10909) (1)
      real*4        EWHD72688   ! (0.1pm) ? EWs for VX Pyx (HD 72688) (1)
      real*4        EWHD83442   ! (0.1pm) ? EWs for IN Vel (HD 83442) (1)
      real*4        EWHD113816  ! (0.1pm) ? EWs for IS Vir (HD 113816) (1)
      real*4        EWHD118238  ! (0.1pm) ? EWs for V764 Cen (HD 118238) (1)
      real*4        EWHD119285  ! (0.1pm) ? EWs for V851 Cen (HD 119285) (1)
*Note (1): A blank indicates that the EW was not reliably measurable for
*    one of the following reasons: the line was affected by telluric
*    features or cosmetic defaults (e.g., cosmic rays), the line was
*    significantly van der Walls broadened, or the Gaussian fit was 
*    judged unsatisfactory.

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

C  Loading file 'stars.dat'	! Stars studied

C  Format for file interpretation

    1 format(A9,2X,I4,1X,F6.3,2X,F5.2,1X,I5,1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'stars.dat')
      write(6,*) '....Loading file: stars.dat'
      do i__=1,6
        read(1,'(A39)')ar__
        read(ar__,1)HD,Dist,v_B_V_0,v_Fe_H_,Teff,e_Teff
c    ..............Just test output...........
        write(6,1)HD,Dist,v_B_V_0,v_Fe_H_,Teff,e_Teff
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tablea1.dat'	! Calibrated atomic data and EW measurements.

C  Format for file interpretation

    2 format(
     +  A5,1X,F4.2,1X,F8.3,1X,F5.3,1X,F6.3,1X,F5.1,1X,F5.1,1X,F5.1,1X,
     +  F5.1,1X,F5.1,1X,F5.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea1.dat')
      write(6,*) '....Loading file: tablea1.dat'
      do i__=1,95
        read(1,'(A68)')ar__1
        read(ar__1,2)
     +  Ion,epsSolar,Lambda,EP,loggf,EWHD10909,EWHD72688,EWHD83442,
     +  EWHD113816,EWHD118238,EWHD119285
        if(ar__1(34:38) .EQ. '') EWHD10909 = rNULL__
        if(ar__1(40:44) .EQ. '') EWHD72688 = rNULL__
        if(ar__1(46:50) .EQ. '') EWHD83442 = rNULL__
        if(ar__1(52:56) .EQ. '') EWHD113816 = rNULL__
        if(ar__1(58:62) .EQ. '') EWHD118238 = rNULL__
        if(ar__1(64:68) .EQ. '') EWHD119285 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Ion,epsSolar,Lambda,EP,loggf,EWHD10909,EWHD72688,EWHD83442,
     +  EWHD113816,EWHD118238,EWHD119285
c    .......End.of.Just test output...........
      end do
      close(1)

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