FORTRAN Generation
(/./ftp/cats/J/AJ/134/1579)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/134/1579 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-Apr-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/AJ/134/1579       Halo stars in solar neighborhood     (Kepley+, 2007)
*================================================================================
*Halo star streams in the solar neighborhood.
*    Kepley A.A., Morrison H.L., Helmi A., Kinman T.D., Van Duyne J.,
*    Martin J.C., Harding P., Norris J.E., Freeman K.C.
*   <Astron. J., 134, 1579-1595 (2007)>
*   =2007AJ....134.1579K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Combined sample red giants and RHB stars

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

      character*18  Name        ! Object name (1)
      real*4        HRV         ! (km/s) Heliocentric radial velocity
      real*4        Dist        ! (kpc) Heliocentric distance
      real*4        e_Dist      ! (kpc) ? Median error in Dist
      real*4        v_Fe_H_     ! ([Sun]) Metallicity
      real*8        Vr          ! (km/s) Radial velocity relative to galactic center (3)
      real*4        e_Vr        ! (km/s) ? Median error in RV
      real*8        Vphi        ! (km/s) Circular velocity relative to galactic center (3)
      real*4        e_Vphi      ! (km/s) ? Median error in Vphi
      real*8        Vz          ! (km/s) Scale height velocity relative
*                                to galactic center (3)
      real*4        e_Vz        ! (km/s) ? Median error in Vz
      character*4   Ref         ! Data source (2)
*Note (1): See Section 2.2 for details and Morrison et al. (2007, in prep.)
*     for the RR Lyrae data.
*Note (2): Data source as follows:
*   CY98 = Chiba & Yoshii (1998, Cat. J/AJ/115/168)
*    B00 = Beers et al. (2000, Cat. J/AJ/119/2866)
*Note (3): See Appendix A of Kepley et al. (2007AJ....133.2242K) for a
*     description of the coordinate system.

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

C  Loading file 'table1.dat'	! Combined sample red giants and RHB stars

C  Format for file interpretation

    1 format(
     +  A18,1X,F6.1,1X,F4.2,1X,F4.2,1X,F5.2,1X,F7.2,1X,F4.1,1X,F7.2,
     +  1X,F4.1,1X,F7.2,1X,F4.1,1X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,136
        read(1,'(A85)')ar__
        read(ar__,1)
     +  Name,HRV,Dist,e_Dist,v_Fe_H_,Vr,e_Vr,Vphi,e_Vphi,Vz,e_Vz,Ref
        if(ar__(32:35) .EQ. '') e_Dist = rNULL__
        if(ar__(51:54) .EQ. '') e_Vr = rNULL__
        if(ar__(64:67) .EQ. '') e_Vphi = rNULL__
        if(ar__(77:80) .EQ. '') e_Vz = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name,HRV,Dist,e_Dist,v_Fe_H_,Vr,e_Vr,Vphi,e_Vphi,Vz,e_Vz,Ref
c    .......End.of.Just test output...........
      end do
      close(1)

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