Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/123/3356 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 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_ (nr__) ! ? The number from Papers I and II (G1)
character*17 Name (nr__) ! Star name
real*8 JD (nr__) ! (d) Julian Date of observation
real*4 RV (nr__) ! (km/s) ? Radial velocity
real*4 v_RV_ (nr__) ! (km/s) Mean radial velocity
real*4 e__RV_ (nr__) ! (km/s) ? Observed standard dispersion of <RV>
character*10 Com (nr__) ! 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 (nr__1) ! The number from Papers I and II (G1)
real*4 EWHa (nr__1) ! (0.1nm) The average H{alpha} equivalent width (2)
real*4 EWHeD3 (nr__1) ! (0.1nm) ? The average He D3 (5876) equivalent width (2)
real*4 EWHe6678 (nr__1) ! (0.1nm) ? The average He (6678) equivalent width (2)
real*4 EWHb (nr__1) ! (0.1nm) ? The average H{beta} equivalent width (2)
real*4 EWHg (nr__1) ! (0.1nm) ? The average H{gamma} equivalent width (2)
real*4 EWHd (nr__1) ! (0.1nm) ? The average H{delta} equivalent width (2)
real*4 EWHe (nr__1) ! (0.1nm) ? The average H{epsilon} equivalent width (2)
real*4 EWH6 (nr__1) ! (0.1nm) ? The average H6 equivalent width (2)
integer*4 o_EWHa (nr__1) ! Number of H{alpha} observations
real*4 e_EWHa (nr__1) ! (0.1nm) ? Observed standard dispersion of EWHa (2)
real*4 e_EWHb (nr__1) ! (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 (nr__2) ! ? Sequential number
character*9 Name_1 (nr__2) ! Name
integer*4 Ref (nr__2) ! [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_(i__),Name(i__),JD(i__),RV(i__),v_RV_(i__),
+ e__RV_(i__),Com(i__)
if(ar__(1:4) .EQ. '') v_RHG95_(i__) = iNULL__
if(ar__(37:42) .EQ. '') RV(i__) = rNULL__
if(ar__(51:54) .EQ. '') e__RV_(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ v_RHG95_(i__),Name(i__),JD(i__),RV(i__),v_RV_(i__),
+ e__RV_(i__),Com(i__)
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(i__),EWHa(i__),EWHeD3(i__),EWHe6678(i__),EWHb(i__),
+ EWHg(i__),EWHd(i__),EWHe(i__),EWH6(i__),o_EWHa(i__),
+ e_EWHa(i__),e_EWHb(i__)
if(ar__1(13:18) .EQ. '') EWHeD3(i__) = rNULL__
if(ar__1(20:25) .EQ. '') EWHe6678(i__) = rNULL__
if(ar__1(27:32) .EQ. '') EWHb(i__) = rNULL__
if(ar__1(34:39) .EQ. '') EWHg(i__) = rNULL__
if(ar__1(41:46) .EQ. '') EWHd(i__) = rNULL__
if(ar__1(48:53) .EQ. '') EWHe(i__) = rNULL__
if(ar__1(55:60) .EQ. '') EWH6(i__) = rNULL__
if(ar__1(65:69) .EQ. '') e_EWHa(i__) = rNULL__
if(ar__1(71:76) .EQ. '') e_EWHb(i__) = rNULL__
c ..............Just test output...........
write(6,2)
+ v_RHG95__1(i__),EWHa(i__),EWHeD3(i__),EWHe6678(i__),EWHb(i__),
+ EWHg(i__),EWHd(i__),EWHe(i__),EWH6(i__),o_EWHa(i__),
+ e_EWHa(i__),e_EWHb(i__)
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(i__),Name_1(i__),Ref(i__)
if(ar__2(1:4) .EQ. '') v_RHG95__2(i__) = iNULL__
if(ar__2(19:19) .EQ. '') Ref(i__) = iNULL__
c ..............Just test output...........
write(6,3)v_RHG95__2(i__),Name_1(i__),Ref(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end