FORTRAN Generation
(/./ftp/cats/J/PASP/111/335)

Conversion of standardized ReadMe file for file /./ftp/cats/J/PASP/111/335 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-Mar-29
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/PASP/111/335  CaII-M_v_ Correlation (Wilson-Bappu Effect) (Wallerstein+ 1999)
*================================================================================
*The Ca II-Mv Correlation (Wilson-Bappu Effect) Calibrated by Hipparcos
*Parallaxes
*    Wallerstein G., Machado-Palaez L., Gonzalez G.
*   <Publ. Astron. Soc. Pac. 111, 335 (1999)>
*   =1999PASP..111..335W
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1a.dat'	! Stars with Ca II Emission of Intensity Index
                                  >=2 and Hipparcos Parallaxes (Wilson 1976)

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

      integer*4     HD         (nr__) ! HD number
      real*4        plx        (nr__) ! (mas) Trigonometric Parallax
      real*4        e_plx      (nr__) ! (mas) Parallax probable error
      real*4        Vmag       (nr__) ! (mag) V magnitude
      character*9   SpType     (nr__) ! Spectral Type
      real*4        B_V        (nr__) ! (mag) B-V color
      real*4        V_I        (nr__) ! (mag) V-I color
      integer*4     Int_idx    (nr__) ! [2-5] Intensity index
      real*4        logW       (nr__) ! log W_0_
      real*4        Mv         (nr__) ! (mag) M_v_-value derived from the apparent
*                                       magnitude and parallax

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

C  Declarations for 'table1b.dat'	! Stars with Ca II Emission of Intensity Index
                                  1 and Hipparcos Parallaxes (Wilson 1976)

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

      integer*4     HD_1       (nr__1) ! HD number
      real*4        plx_1      (nr__1) ! (mas) Trigonometric Parallax
      real*4        e_plx_1    (nr__1) ! (mas) Parallax probable error
      real*4        Vmag_1     (nr__1) ! (mag) V magnitude
      character*9   SpType_1   (nr__1) ! Spectral Type
      real*4        B_V_1      (nr__1) ! (mag) B-V color
      real*4        V_I_1      (nr__1) ! (mag) V-I color
      real*4        logW_1     (nr__1) ! log W_0_
      real*4        Mv_1       (nr__1) ! (mag) M_v_-value derived from the apparent
*                                     magnitude and parallax

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

C  Declarations for 'table1c.dat'	! Mostly Lower Luminosity Stars with Ca II
                                  Emission and Hipparcos Parallaxes
                                  (Wilson 1967)

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

      integer*4     HD_2       (nr__2) ! HD number
      real*4        plx_2      (nr__2) ! (mas) Trigonometric Parallax
      real*4        e_plx_2    (nr__2) ! (mas) Parallax probable error
      real*4        Vmag_2     (nr__2) ! (mag) V magnitude
      character*9   SpType_2   (nr__2) ! Spectral Type
      real*4        B_V_2      (nr__2) ! (mag) B-V color
      real*4        V_I_2      (nr__2) ! (mag) V-I color
      real*4        logW_2     (nr__2) ! log W_0_
      real*4        Mv_2       (nr__2) ! (mag) M_v_-value derived from the apparent
*                                     magnitude and parallax

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

C  Loading file 'table1a.dat'	! Stars with Ca II Emission of Intensity Index
*                                  >=2 and Hipparcos Parallaxes (Wilson 1976)

C  Format for file interpretation

    1 format(
     +  I6,1X,F5.2,1X,F4.2,1X,F3.1,1X,A9,1X,F4.2,1X,F4.2,1X,I1,1X,
     +  F4.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1a.dat')
      write(6,*) '....Loading file: table1a.dat'
      do i__=1,390
        read(1,'(A54)')ar__
        read(ar__,1)
     +  HD(i__),plx(i__),e_plx(i__),Vmag(i__),SpType(i__),B_V(i__),
     +  V_I(i__),Int_idx(i__),logW(i__),Mv(i__)
c    ..............Just test output...........
        write(6,1)
     +  HD(i__),plx(i__),e_plx(i__),Vmag(i__),SpType(i__),B_V(i__),
     +  V_I(i__),Int_idx(i__),logW(i__),Mv(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table1b.dat'	! Stars with Ca II Emission of Intensity Index
*                                  1 and Hipparcos Parallaxes (Wilson 1976)

C  Format for file interpretation

    2 format(
     +  I6,1X,F6.2,1X,F4.2,1X,F3.1,1X,A9,1X,F4.2,1X,F4.2,1X,F4.2,1X,
     +  F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1b.dat')
      write(6,*) '....Loading file: table1b.dat'
      do i__=1,250
        read(1,'(A53)')ar__1
        read(ar__1,2)
     +  HD_1(i__),plx_1(i__),e_plx_1(i__),Vmag_1(i__),SpType_1(i__),
     +  B_V_1(i__),V_I_1(i__),logW_1(i__),Mv_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  HD_1(i__),plx_1(i__),e_plx_1(i__),Vmag_1(i__),SpType_1(i__),
     +  B_V_1(i__),V_I_1(i__),logW_1(i__),Mv_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table1c.dat'	! Mostly Lower Luminosity Stars with Ca II
*                                  Emission and Hipparcos Parallaxes
*                                  (Wilson 1967)

C  Format for file interpretation

    3 format(
     +  I6,1X,F6.2,1X,F4.2,1X,F3.1,1X,A9,1X,F4.2,1X,F4.2,1X,F4.2,1X,
     +  F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1c.dat')
      write(6,*) '....Loading file: table1c.dat'
      do i__=1,30
        read(1,'(A53)')ar__2
        read(ar__2,3)
     +  HD_2(i__),plx_2(i__),e_plx_2(i__),Vmag_2(i__),SpType_2(i__),
     +  B_V_2(i__),V_I_2(i__),logW_2(i__),Mv_2(i__)
c    ..............Just test output...........
        write(6,3)
     +  HD_2(i__),plx_2(i__),e_plx_2(i__),Vmag_2(i__),SpType_2(i__),
     +  B_V_2(i__),V_I_2(i__),logW_2(i__),Mv_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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