FORTRAN Generation
(/./ftp/cats/J/A_A/534/A80)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/534/A80 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/A+A/534/A80  Metallicity of bulge clump giants in Baade's window (Hill+, 2011)
*================================================================================
*The metallicity distribution of bulge clump giants in Baade's window.
*    Hill V., Lecureur A., Gomez A., Zoccali M., Schultheis M., Babusiaux C.,
*    Royer F., Barbuy B., Arenou F., Minniti D., Ortolani S.
*   <Astron. Astrophys. 534, A80 (2011)>
*   =2011A&A...534A..80H
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! UBVI and JHK photometry for the selected
                              220 red clump stars in Baade's Window

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

      character*7   Star        ! Star name (BWc-NNN)
      integer*4     OGLE        ! OGLE identifier, BUL-SC45 NNNNNN, from
*                                   Paczynski et al., 1999, Cat. J/AcA/49/319
      real*4        Umag        ! (mag) Johnson U magnitude
      real*4        e_Umag      ! (mag) rms uncertainty on Umag
      real*4        Bmag        ! (mag) Johnson B magnitude
      real*4        e_Bmag      ! (mag) rms uncertainty on Bmag
      real*4        Vmag        ! (mag) Johnson V magnitude
      real*4        e_Vmag      ! (mag) rms uncertainty on Vmag
      real*4        Imag        ! (mag) Johnson I magnitude
      real*4        e_Imag      ! (mag) rms uncertainty on Imag
      character*17  v2MASS      ! 2MASS identifier
      real*4        Jmag        ! (mag) 2MASS J magnitude
      real*4        e_Jmag      ! (mag) rms uncertainty on Jmag
      real*4        Hmag        ! (mag) 2MASS H magnitude
      real*4        e_Hmag      ! (mag) rms uncertainty on Hmag
      real*4        Kmag        ! (mag) 2MASS K magnitude
      real*4        e_Kmag      ! (mag) rms uncertainty on Kmag

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

C  Declarations for 'table2.dat'	! Stellar parameters, [Fe/H] and [Mg/H]
                              of the 220 red clump stars in Baade's Window

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

      character*7   Star_1      ! Star name
      integer*4     Teff        ! (K) Effective Temperature
      real*4        logg        ! ([cm/s2]) Surface gravity
      real*4        vt          ! (km/s) Microturbulence velocity
      real*4        v_Fe_H_     ! ([Sun]) Fe/H abundance
      real*4        e__Fe_H_    ! ([Sun]) Uncertainty on [Fe/H] (lower value)
      real*4        E__Fe_H__1  ! ([Sun]) Uncertainty on [Fe/H] (upper value)
      real*4        v_Mg_H_     ! ([Sun]) ?=99.99 Mg/H abundance
      real*4        e__Mg_H_    ! ([Sun]) ?=9.99 Uncertainty on [Mg/H] (lower value)
      real*4        E__Mg_H__1  ! ([Sun]) ?=9.99 Uncertainty on [Mg/H] (upper value)

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

C  Declarations for 'table3.dat'	! Uncertainties on the stellar parameters and
                              associated uncertainties on [Fe/H] abundances
                              of the 220 red clump stars in Baade's Window

      integer*4 nr__2
      parameter (nr__2=220)	! Number of records
      character*73 ar__2  	! Full-size record

      character*7   Star_2      ! Star name
      integer*4     Teff_1      ! (K) Effective Temperature
      real*4        logg_1      ! ([cm/s2]) Surface gravity
      real*4        vt_1        ! (km/s) Microturbulence velocity
      real*4        v_Fe_H__1   ! ([Sun]) Metallicity ([Fe/H] abundance)
      real*4        e_vt        ! (km/s) Uncertainty on the microturbulence velocity
*                                     (lower value)
      real*4        E__Fe_H_vt  ! ([Sun]) Uncertainty on Fe (upper value) arising
*                                     from the uncertainty on the microturbulence
*                                     velocity (lower value)
      integer*4     E_Teff      ! (K) Uncertainty on the effective temperature
*                                     (upper value)
      real*4        E__Fe_H_T   ! ([Sun]) Uncertainty on Fe (upper value) arising
*                                     from the uncertainty on the effective
*                                     temperature (upper value)
      real*4        E_vt_1      ! (km/s) Uncertainty on the microturbulence velocity
*                                     (upper value)
      real*4        e__Fe_H_vt_1 ! ([Sun]) Uncertainty on Fe (lower value) arising
*                                     from the uncertainty on the microturbulence
*                                     velocity (upper value)
      integer*4     e_Teff_1    ! (K) Uncertainty on the effective temperature
*                                     (lower value)(T)
      real*4        e__Fe_H_T_1 ! ([Sun]) Uncertainty on Fe (lower value) arising
*                                     from the uncertainty on the effective
*                                     temperature (lower value)

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

C  Loading file 'table1.dat'	! UBVI and JHK photometry for the selected
*                              220 red clump stars in Baade's Window

C  Format for file interpretation

    1 format(
     +  A7,10X,I6,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,
     +  F6.3,1X,F5.3,1X,A17,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,
     +  1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,220
        read(1,'(A132)')ar__
        read(ar__,1)
     +  Star,OGLE,Umag,e_Umag,Bmag,e_Bmag,Vmag,e_Vmag,Imag,e_Imag,
     +  v2MASS,Jmag,e_Jmag,Hmag,e_Hmag,Kmag,e_Kmag
c    ..............Just test output...........
        write(6,1)
     +  Star,OGLE,Umag,e_Umag,Bmag,e_Bmag,Vmag,e_Vmag,Imag,e_Imag,
     +  v2MASS,Jmag,e_Jmag,Hmag,e_Hmag,Kmag,e_Kmag
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Stellar parameters, [Fe/H] and [Mg/H]
*                              of the 220 red clump stars in Baade's Window

C  Format for file interpretation

    2 format(
     +  A7,1X,I4,1X,F4.2,1X,F3.1,1X,F5.2,1X,F4.2,1X,F4.2,2X,F5.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,220
        read(1,'(A54)')ar__1
        read(ar__1,2)
     +  Star_1,Teff,logg,vt,v_Fe_H_,e__Fe_H_,E__Fe_H__1,v_Mg_H_,
     +  e__Mg_H_,E__Mg_H__1
c    ..............Just test output...........
        write(6,2)
     +  Star_1,Teff,logg,vt,v_Fe_H_,e__Fe_H_,E__Fe_H__1,v_Mg_H_,
     +  e__Mg_H_,E__Mg_H__1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Uncertainties on the stellar parameters and
*                              associated uncertainties on [Fe/H] abundances
*                              of the 220 red clump stars in Baade's Window

C  Format for file interpretation

    3 format(
     +  A7,1X,I4,1X,F4.2,1X,F3.1,1X,F5.2,3X,F4.2,1X,F4.2,1X,I3,1X,
     +  F4.2,4X,F4.2,2X,F4.2,2X,I3,2X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,220
        read(1,'(A73)')ar__2
        read(ar__2,3)
     +  Star_2,Teff_1,logg_1,vt_1,v_Fe_H__1,e_vt,E__Fe_H_vt,E_Teff,
     +  E__Fe_H_T,E_vt_1,e__Fe_H_vt_1,e_Teff_1,e__Fe_H_T_1
c    ..............Just test output...........
        write(6,3)
     +  Star_2,Teff_1,logg_1,vt_1,v_Fe_H__1,e_vt,E__Fe_H_vt,E_Teff,
     +  E__Fe_H_T,E_vt_1,e__Fe_H_vt_1,e_Teff_1,e__Fe_H_T_1
c    .......End.of.Just test output...........
      end do
      close(1)

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