FORTRAN Generation
(/./ftp/cats/J/ApJ/836/202)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/836/202 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/ApJ/836/202    Kinematic study of the Leo II dwarf galaxy    (Spencer+, 2017)
*================================================================================
*A multi-epoch kinematic study of the remote dwarf spheroidal galaxy Leo II.
*    Spencer M.E., Mateo M., Walker M.G., Olszewski E.W.
*   <Astrophys. J., 836, 202-202 (2017)>
*   =2017ApJ...836..202S    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Photometric properties of stars in the direction
                               of Leo II

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        RAdeg       ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg       ! (deg) Declination in decimal degrees (J2000)
      real*4        gmag        ! (mag) [15.9/23.7] The g band magnitude (SDSS system)
      real*4        e_gmag      ! (mag) [0.03/1.6] Uncertainty in gmag
      real*4        imag        ! (mag) [16.9/25.2] The i band magnitude (SDSS system)
      real*4        e_imag      ! (mag) [0.02/1.4] Uncertainty in imag

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

C  Declarations for 'table3.dat'	! Spectroscopic properties of stars in the
                               direction of Leo II

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        RAdeg_1     ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg_1     ! (deg) Declination in decimal degrees (J2000)
      real*8        HJD         ! (d) Heliocentric Julian Date; JD-2450000
      real*4        RVel        ! (km/s) [-95.2/280.2] Radial velocity (likely members
*                                   have 57.7<RVel<101.2km/s)
      real*4        e_RVel      ! (km/s) [0.1/3] Uncertainty in RVel
      integer*4     Teff        ! (K) [4321/7317] Effective temperature
      integer*4     e_Teff      ! (K) [21/975] Uncertainty in Teff
      real*4        log_g       ! ([cm/s2]) [0.7/5.6] Log surface gravity
      real*4        e_log_g     ! ([cm/s2]) [0.04/1.4] Uncertainty in log(g)
      real*4        v_Fe_H_     ! ([Sun]) [-3.6/1.4] Metallicity
      real*4        e__Fe_H_    ! ([Sun]) [0.02/1] Uncertainty in [Fe/H]
      integer*4     Nobs        ! [1/8] Number of observations
      character*1   Mm          ! Member of Leo II; "Y"=Yes (289 occurrences;
*                                   175 unique sources); or "N"
      character*1   Comb        ! Single ("S") or combined ("C") measurement

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

C  Loading file 'table1.dat'	! Photometric properties of stars in the direction
*                               of Leo II

C  Format for file interpretation

    1 format(F11.7,1X,F10.7,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,9309
        read(1,'(A44)')ar__
        read(ar__,1)RAdeg,DEdeg,gmag,e_gmag,imag,e_imag
c    ..............Just test output...........
        write(6,1)RAdeg,DEdeg,gmag,e_gmag,imag,e_imag
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Spectroscopic properties of stars in the
*                               direction of Leo II

C  Format for file interpretation

    2 format(
     +  F10.6,1X,F9.6,1X,F7.2,1X,F6.2,1X,F4.2,1X,I4,1X,I3,1X,F4.2,1X,
     +  F4.2,1X,F5.2,1X,F4.2,1X,I1,1X,A1,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,471
        read(1,'(A76)')ar__1
        read(ar__1,2)
     +  RAdeg_1,DEdeg_1,HJD,RVel,e_RVel,Teff,e_Teff,log_g,e_log_g,
     +  v_Fe_H_,e__Fe_H_,Nobs,Mm,Comb
c    ..............Just test output...........
        write(6,2)
     +  RAdeg_1,DEdeg_1,HJD,RVel,e_RVel,Teff,e_Teff,log_g,e_log_g,
     +  v_Fe_H_,e__Fe_H_,Nobs,Mm,Comb
c    .......End.of.Just test output...........
      end do
      close(1)

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