FORTRAN Generation
(/./ftp/cats/J/ApJ/732/108)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/732/108 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/732/108     Abundances of 92 giants in Plaut's window     (Johnson+, 2011)
*================================================================================
*Alpha enhancement and the metallicity distribution function of Plaut's window.
*    Johnson C.I., Rich R.M., Fulbright J.P., Valenti E., McWilliam A.
*   <Astrophys. J., 732, 108 (2011)>
*   =2011ApJ...732..108J
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Program star parameters and results

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

      character*16  v2MASS      ! 2MASS identification (HHMMSSss+DDMMSSs; J2000)
      real*4        Vmag        ! (mag) The V band magnitude (1m Swope Telescope)
      real*4        Jmag        ! (mag) 2MASS J band magnitude
      real*4        Ksmag       ! (mag) 2MASS Ks band magnitude
      integer*4     Teff        ! (K) Effective temperature
      real*4        log_g       ! ([cm/s2]) Log of the surface gravity
      real*4        v_Fe_H_     ! ([Sun]) Metallicity
      real*4        Vt          ! (km/s) Turbulent velocity
      real*4        v_Si_Fe_    ! ([Sun]) ? Log of the Si/Fe abundance ratio
      real*4        v_Ca_Fe_    ! ([Sun]) ? Log of the Ca/Fe abundance ratio
      integer*4     HRV         ! (km/s) Heliocentric radial velocity
      character*7   Note        ! The RGB/Field information (1)
*Note (1): Note as follows:
*    RGB = probable RGB member;
*  Clump = probable red clump member;
*      1 = Field 1 (l=-1 degrees, b=-8.5 degrees);
*      2 = Field 2 (l=0 degrees, b=-8 degrees)

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

C  Declarations for 'table2.dat'	! Random and systematic uncertainties

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

      character*16  v2MASS_1    ! 2MASS identification (HHMMSSss+DDMMSSs; J2000)
      real*4        re_Fe       ! ([Sun]) Random uncertainty in log Fe number abundance
      real*4        sy_Fe       ! ([Sun]) Systematic uncertainty in log Fe number abundance
      real*4        re_Si       ! ([Sun]) ? Random uncertainty in log Si number abundance
      real*4        sy_Si       ! ([Sun]) ? Systematic uncertainty in log Si number abundance
      real*4        re_Ca       ! ([Sun]) ? Random uncertainty in log Ca number abundance
      real*4        sy_Ca       ! ([Sun]) ? Systematic uncertainty in log Ca number abundance

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

C  Loading file 'table1.dat'	! Program star parameters and results

C  Format for file interpretation

    1 format(
     +  A16,1X,F6.3,1X,F6.3,1X,F6.3,1X,I4,1X,F4.2,1X,F5.2,1X,F4.2,1X,
     +  F5.2,1X,F5.2,1X,I4,1X,A7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,92
        read(1,'(A83)')ar__
        read(ar__,1)
     +  v2MASS,Vmag,Jmag,Ksmag,Teff,log_g,v_Fe_H_,Vt,v_Si_Fe_,
     +  v_Ca_Fe_,HRV,Note
        if(ar__(60:64) .EQ. '') v_Si_Fe_ = rNULL__
        if(ar__(66:70) .EQ. '') v_Ca_Fe_ = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  v2MASS,Vmag,Jmag,Ksmag,Teff,log_g,v_Fe_H_,Vt,v_Si_Fe_,
     +  v_Ca_Fe_,HRV,Note
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Random and systematic uncertainties

C  Format for file interpretation

    2 format(A16,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,92
        read(1,'(A46)')ar__1
        read(ar__1,2)v2MASS_1,re_Fe,sy_Fe,re_Si,sy_Si,re_Ca,sy_Ca
        if(ar__1(28:31) .EQ. '') re_Si = rNULL__
        if(ar__1(33:36) .EQ. '') sy_Si = rNULL__
        if(ar__1(38:41) .EQ. '') re_Ca = rNULL__
        if(ar__1(43:46) .EQ. '') sy_Ca = rNULL__
c    ..............Just test output...........
        write(6,2)v2MASS_1,re_Fe,sy_Fe,re_Si,sy_Si,re_Ca,sy_Ca
c    .......End.of.Just test output...........
      end do
      close(1)

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