FORTRAN Generation
(/./ftp/cats/J/AJ/123/3356)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/123/3356 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-16
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/AJ/123/3356  Palomar/MSU nearby star spectroscopic survey. III. (Gizis+, 2002)
*================================================================================
*The Palomar/MSU nearby star spectroscopic survey.
*III. Chromospheric activity, M dwarf ages and the local star formation  history.
*    Gizis J.E., Reid I.N., Hawley S.L.
*   <Astron. J. 123, 3356 (2002)>
*   =2002AJ....123.3356G
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Radial Velocities

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

      integer*4     v_RHG95_    ! ? The number from Papers I and II (G1)
      character*17  Name        ! Star name
      real*8        JD          ! (d) Julian Date of observation
      real*4        RV          ! (km/s) ? Radial velocity
      real*4        v_RV_       ! (km/s) Mean radial velocity
      real*4        e__RV_      ! (km/s) ? Observed standard dispersion of <RV>
      character*10  Com         ! Comments

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

C  Declarations for 'table4.dat'	! Equivalent Widths

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

      integer*4     v_RHG95__1  ! The number from Papers I and II (G1)
      real*4        EWHa        ! (0.1nm) The average H{alpha} equivalent width (2)
      real*4        EWHeD3      ! (0.1nm) ? The average He D3 (5876) equivalent width (2)
      real*4        EWHe6678    ! (0.1nm) ? The average He (6678) equivalent width (2)
      real*4        EWHb        ! (0.1nm) ? The average H{beta} equivalent width (2)
      real*4        EWHg        ! (0.1nm) ? The average H{gamma} equivalent width (2)
      real*4        EWHd        ! (0.1nm) ? The average H{delta} equivalent width (2)
      real*4        EWHe        ! (0.1nm) ? The average H{epsilon} equivalent width (2)
      real*4        EWH6        ! (0.1nm) ? The average H6 equivalent width (2)
      integer*4     o_EWHa      ! Number of H{alpha} observations
      real*4        e_EWHa      ! (0.1nm) ? Observed standard dispersion of EWHa (2)
      real*4        e_EWHb      ! (0.1nm) ? Observed standard dispersion of EWHb (2)
*Note (2): In Angstroems.

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

C  Declarations for 'table6.dat'	! Double-lined binaries

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

      integer*4     v_RHG95__2  ! ? Sequential number
      character*9   Name_1      ! Name
      integer*4     Ref         ! [1-3]? Reference (1)
*Note (1): References are numbered as follows:
*      1 = Strassmeier et al., 1993A&AS..100..173S, Cat. <V/76>
*      2 = Tokovinin, 1992A&A...256..121T, Cat. <III/191>
*      3 = Delfosse et al., 1999A&A...344..897D

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

C  Loading file 'table2.dat'	! Radial Velocities

C  Format for file interpretation

    1 format(I4,1X,A17,1X,F12.4,1X,F6.1,1X,F6.1,1X,F4.1,2X,A10)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,1609
        read(1,'(A66)')ar__
        read(ar__,1)v_RHG95_,Name,JD,RV,v_RV_,e__RV_,Com
        if(ar__(1:4) .EQ. '') v_RHG95_ = iNULL__
        if(ar__(37:42) .EQ. '') RV = rNULL__
        if(ar__(51:54) .EQ. '') e__RV_ = rNULL__
c    ..............Just test output...........
        write(6,1)v_RHG95_,Name,JD,RV,v_RV_,e__RV_,Com
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Equivalent Widths

C  Format for file interpretation

    2 format(
     +  I4,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,
     +  F6.3,1X,I2,1X,F5.3,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,676
        read(1,'(A77)')ar__1
        read(ar__1,2)
     +  v_RHG95__1,EWHa,EWHeD3,EWHe6678,EWHb,EWHg,EWHd,EWHe,EWH6,
     +  o_EWHa,e_EWHa,e_EWHb
        if(ar__1(13:18) .EQ. '') EWHeD3 = rNULL__
        if(ar__1(20:25) .EQ. '') EWHe6678 = rNULL__
        if(ar__1(27:32) .EQ. '') EWHb = rNULL__
        if(ar__1(34:39) .EQ. '') EWHg = rNULL__
        if(ar__1(41:46) .EQ. '') EWHd = rNULL__
        if(ar__1(48:53) .EQ. '') EWHe = rNULL__
        if(ar__1(55:60) .EQ. '') EWH6 = rNULL__
        if(ar__1(65:69) .EQ. '') e_EWHa = rNULL__
        if(ar__1(71:76) .EQ. '') e_EWHb = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  v_RHG95__1,EWHa,EWHeD3,EWHe6678,EWHb,EWHg,EWHd,EWHe,EWH6,
     +  o_EWHa,e_EWHa,e_EWHb
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Double-lined binaries

C  Format for file interpretation

    3 format(I4,4X,A9,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,23
        read(1,'(A24)')ar__2
        read(ar__2,3)v_RHG95__2,Name_1,Ref
        if(ar__2(1:4) .EQ. '') v_RHG95__2 = iNULL__
        if(ar__2(19:19) .EQ. '') Ref = iNULL__
c    ..............Just test output...........
        write(6,3)v_RHG95__2,Name_1,Ref
c    .......End.of.Just test output...........
      end do
      close(1)

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