FORTRAN Generation
(/./ftp/cats/J/ApJ/859/L8)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/859/L8 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-18
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/859/L8         Properties of TriAnd stars              (Hayes+, 2018)
*================================================================================
*Disk-like chemistry of the Triangulum-Andromeda overdensity as seen by APOGEE.
*    Hayes C.R., Majewski S.R., Hasselquist S., Beaton R.L., Cunha K.,
*    Smith V.V., Price-Whelan A.M., Anguiano B., Beers T.C., Carrera R.,
*    Fernandez-Trincado J.G., Frinchaboy P.M., Garcia-Hernandez D.A., Lane R.R.,
*    Nidever D.L., Nitschelm C., Roman-Lopes A., Zamora O.
*   <Astrophys. J., 859, L8 (2018)>
*   =2018ApJ...859L...8H    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Properties of TriAnd Stars

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

C  J2000 position composed of: RAdeg DEdeg
      character*18  APOGEE      ! APOGEE identifier (2MHHMMSSss+DDMMSSs)
      real*8        RAdeg       ! (deg) Right Ascension (J2000)
      real*8        DEdeg       ! (deg) Declination (J2000)
      real*8        GLON        ! (deg) Galactic longitude
      real*8        GLAT        ! (deg) Galactic latitude
      real*4        Jmag        ! (mag) 2MASS J band magnitude
      real*4        Hmag        ! (mag) 2MASS H band magnitude
      real*4        Ksmag       ! (mag) 2MASS Ks band magnitude
      real*8        Dist        ! (kpc) Heliocentric distance
      real*8        e_Dist      ! (kpc) Uncertainty in Dist
      real*8        HRV         ! (km/s) Heliocentric radial velocity
      real*8        e_HRV       ! (km/s) Uncertainty in HRV
      real*8        Teff        ! (K) Effective surface temperature
      real*8        e_Teff      ! (K) Uncertainty in Teff
      real*8        logg        ! ([cm/s2]) log surface gravity
      real*8        e_logg      ! ([cm/s2]) Uncertainty in logg
      real*8        Vturb       ! (km/s) Microturbulent velocity
      real*8        Vmacro      ! (km/s) Macroturbulent velocity
      real*8        v_Fe_H_     ! ([Sun]) log Fe/H abundance
      real*8        e__Fe_H_    ! ([Sun]) Uncertainty in [Fe/H]
      real*8        v_CN_Fe_    ! ([Sun]) log (C+N)/Fe abundance
      real*8        e__CN_Fe_   ! ([Sun]) Uncertainty in [CN/Fe]
      real*8        v_Mg_Fe_    ! ([Sun]) log Mg/Fe abundance
      real*8        e__Mg_Fe_   ! ([Sun]) Uncertainty in [Mg/Fe]
      real*8        v_K_Fe_     ! ([Sun]) log K/Fe abundance
      real*8        e__K_Fe_    ! ([Sun]) Uncertainty in [K/Fe]
      real*8        v_Ca_Fe_    ! ([Sun]) log Ca/Fe abundance
      real*8        e__Ca_Fe_   ! ([Sun]) Uncertainty in [Ca/Fe]
      real*8        v_Mn_Fe_    ! ([Sun]) log Mn/Fe abundance
      real*8        e__Mn_Fe_   ! ([Sun]) Uncertainty in [Mn/Fe]
      real*8        v_Ni_Fe_    ! ([Sun]) log Ni/Fe abundance
      real*8        e__Ni_Fe_   ! ([Sun]) Uncertainty in [Ni/Fe]

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

C  Loading file 'table1.dat'	! Properties of TriAnd Stars

C  Format for file interpretation

    1 format(
     +  A18,1X,F10.6,1X,F9.6,1X,F13.9,1X,F14.10,1X,F6.3,1X,F6.3,1X,
     +  F6.3,1X,F9.6,1X,F12.9,1X,F9.4,1X,F10.8,1X,F9.4,1X,F9.6,1X,
     +  F10.8,1X,F11.9,1X,F9.7,1X,F9.7,1X,F11.8,1X,F11.9,1X,F13.10,1X,
     +  F11.9,1X,F10.8,1X,F11.9,1X,F12.9,1X,F11.9,1X,F12.9,1X,F11.9,
     +  1X,F12.9,1X,F11.9,1X,F11.9,1X,F11.9)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,12
        read(1,'(A368)')ar__
        read(ar__,1)
     +  APOGEE,RAdeg,DEdeg,GLON,GLAT,Jmag,Hmag,Ksmag,Dist,e_Dist,HRV,
     +  e_HRV,Teff,e_Teff,logg,e_logg,Vturb,Vmacro,v_Fe_H_,e__Fe_H_,
     +  v_CN_Fe_,e__CN_Fe_,v_Mg_Fe_,e__Mg_Fe_,v_K_Fe_,e__K_Fe_,
     +  v_Ca_Fe_,e__Ca_Fe_,v_Mn_Fe_,e__Mn_Fe_,v_Ni_Fe_,e__Ni_Fe_
c    ..............Just test output...........
        write(6,1)
     +  APOGEE,RAdeg,DEdeg,GLON,GLAT,Jmag,Hmag,Ksmag,Dist,e_Dist,HRV,
     +  e_HRV,Teff,e_Teff,logg,e_logg,Vturb,Vmacro,v_Fe_H_,e__Fe_H_,
     +  v_CN_Fe_,e__CN_Fe_,v_Mg_Fe_,e__Mg_Fe_,v_K_Fe_,e__K_Fe_,
     +  v_Ca_Fe_,e__Ca_Fe_,v_Mn_Fe_,e__Mn_Fe_,v_Ni_Fe_,e__Ni_Fe_
c    .......End.of.Just test output...........
      end do
      close(1)

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