FORTRAN Generation
(/./ftp/cats/J/AJ/125/2502)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/125/2502 into FORTRAN code for loading all data files into arrays.

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/125/2502       Spectral indices of Galactic halo        (Morrison+, 2003)
*================================================================================
*Mapping the galactic halo.
*VI. Spectroscopic measures of luminosity and metallicity.
*    Morrison H.L., Norris J., Mateo M., Harding P., Olszewski E.W.,
*    Shectman S.A., Dohm-Palmer R.C., Helmi A., Freeman K.C.
*   <Astron. J. 125, 2502 (2003)>
*   =2003AJ....125.2502M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Metallicity and color of dwarf standards

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

      character*30  Name       (nr__) ! Star name
      character*1   n_Name     (nr__) ! [a] Note on Name (1)
      real*4        v_Fe_H_    (nr__) ! ([Sun]) Metallicity
      character*1   n__Fe_H_   (nr__) ! [bc] note on [Fe/H] (1)
      real*4        v_b_y_0    (nr__) ! (mag) ? Dereddened Stroemgren (b-y) colour index
      real*4        v_V_I_0    (nr__) ! (mag) ? Dereddened Johnson (V-I) colour index
      real*4        v_B_V_0    (nr__) ! (mag) ? Dereddened Johnson (B-V) colour index
      real*4        v_M_T2_0   (nr__) ! (mag) Dereddened Washington (M-T_2_) colour index
      character*1   u__M_T2_0  (nr__) ! Uncertainty flag on (M-T2)0
      real*4        E_B_V      (nr__) ! (mag) Redenning
      character*15  r__Fe_H_   (nr__) ! References for [Fe/H], in refs.dat file
      character*6   r__b_y_0   (nr__) ! References for photometry, in refs.dat file
      character*1   n_r__b_y_0 (nr__) ! [e] Note on r_(b-y)0 (1)
      integer*4     r_E_B_V    (nr__) ! References for redenning, in refs.dat file
      character*1   n_r_E_B_V  (nr__) ! [d] Note on r_E(B-V) (1)
*Note (1): Individual notes:
*    a: Chromospherically active star. This makes the K' index 
*       unusable because of emission in the core of the K line
*    b: G251-53 is a common proper-motion pair of BD+80 245, which has
*       unusually low {alpha}-element abundances, [{alpha}/Fe]=-0.3
*       (Carney et al., 1997AJ....114..363C), compared with the majority
*       of halo stars, which have [{alpha}/Fe]~+0.4
*    c: HD 134440 has low-element abundances, [Ca/Fe]=0.22, [Mg/Fe]=-0.11,
*       King, 1997AJ....113.2302K.
*    e: V-I observations obtained using V magnitude from Cudworth 
*       (1979AJ.....84.1312C) and V-I cluster giant branch from
*       Johnson & Bolte (1998AJ....115..693J).
*    d: E(B-V) estimated using Schlegel et al. (1998ApJ...500..525S)
*       reddening, distance estimate, and reduction in line-of-sight
*       reddening from Bond (1980ApJS...44..517B).

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

C  Declarations for 'table2.dat'	! Metallicity and color of giant standards

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

      character*30  Name_1     (nr__1) ! Star name
      character*1   n_Name_1   (nr__1) ! [a] Note on Name (1)
      real*4        v_Fe_H__1  (nr__1) ! ([Sun]) Metallicity
      character*1   n__Fe_H__1 (nr__1) ! [bc] note on [Fe/H] (1)
      real*4        v_b_y_0_1  (nr__1) ! (mag) ? Dereddened Stroemgren (b-y) colour index
      real*4        v_V_I_0_1  (nr__1) ! (mag) ? Dereddened Johnson (V-I) colour index
      real*4        v_B_V_0_1  (nr__1) ! (mag) ? Dereddened Johnson (B-V) colour index
      real*4        v_M_T2_0_1 (nr__1) ! (mag) Dereddened Washington (M-T_2_) colour index
      character*1   u__M_T2_0_1(nr__1) ! Uncertainty flag on (M-T2)0
      real*4        E_B_V_1    (nr__1) ! (mag) Redenning
      character*15  r__Fe_H__1 (nr__1) ! References for [Fe/H], in refs.dat file
      character*6   r__b_y_0_1 (nr__1) ! References for photometry, in refs.dat file
      character*1   n_r__b_y_0_1(nr__1) ! [e] Note on r_(b-y)0 (1)
      integer*4     r_E_B_V_1  (nr__1) ! References for redenning, in refs.dat file
      character*1   n_r_E_B_V_1(nr__1) ! [d] Note on r_E(B-V) (1)
*Note (1): Individual notes:
*    a: Chromospherically active star. This makes the K' index 
*       unusable because of emission in the core of the K line
*    b: G251-53 is a common proper-motion pair of BD+80 245, which has
*       unusually low {alpha}-element abundances, [{alpha}/Fe]=-0.3
*       (Carney et al., 1997AJ....114..363C), compared with the majority
*       of halo stars, which have [{alpha}/Fe]~+0.4
*    c: HD 134440 has low-element abundances, [Ca/Fe]=0.22, [Mg/Fe]=-0.11,
*       King, 1997AJ....113.2302K.
*    e: V-I observations obtained using V magnitude from Cudworth 
*       (1979AJ.....84.1312C) and V-I cluster giant branch from
*       Johnson & Bolte (1998AJ....115..693J).
*    d: E(B-V) estimated using Schlegel et al. (1998ApJ...500..525S)
*       reddening, distance estimate, and reduction in line-of-sight
*       reddening from Bond (1980ApJS...44..517B).

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

C  Declarations for 'refs.dat'	! References

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

      integer*4     Ref        (nr__2) ! Reference number
      character*19  BibCode    (nr__2) ! BibCode
      character*33  Aut        (nr__2) ! Author's name
      character*30  Com        (nr__2) ! Comments

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

C  Declarations for 'table4.dat'	! Spectral indices for dwarf standards

      integer*4 nr__3
      parameter (nr__3=17)	! Number of records
      character*66 ar__3  	! Full-size record

      character*30  Name_2     (nr__3) ! Star name
      real*4        v_Fe_H__2  (nr__3) ! ([Sun]) Metallicity
      real*4        v_M_T2_0_2 (nr__3) ! (mag) Dereddened Washington (M-T_2_) colour index
      character*1   u__M_T2_0_2(nr__3) ! Uncertainty flag on (M-T2)0
      real*4        K_         (nr__3) ! (mag) K' index (Beers, 1999AJ....117..981B)
      real*4        CaI        (nr__3) ! (mag) CaI (4227{AA}) index metallicity measurement
      real*4        Mg         (nr__3) ! (0.1nm) Mg index metallicity measurement

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

C  Declarations for 'table5.dat'	! Spectral Indices for giant standards

      integer*4 nr__4
      parameter (nr__4=46)	! Number of records
      character*66 ar__4  	! Full-size record

      character*30  Name_3     (nr__4) ! Star name
      real*4        v_Fe_H__3  (nr__4) ! ([Sun]) Metallicity
      real*4        v_M_T2_0_3 (nr__4) ! (mag) Dereddened Washington (M-T_2_) colour index
      character*1   u__M_T2_0_3(nr__4) ! Uncertainty flag on (M-T2)0
      real*4        K__1       (nr__4) ! (mag) K' index (Beers, 1999AJ....117..981B)
      real*4        CaI_1      (nr__4) ! (mag) CaI (4227{AA}) index metallicity measurement
      real*4        Mg_1       (nr__4) ! (0.1nm) Mg index metallicity measurement

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

C  Declarations for 'table6.dat'	! Spectroscopic Observations for Giant Candidates

      integer*4 nr__5
      parameter (nr__5=94)	! Number of records
      character*96 ar__5  	! Full-size record

C  Position composed of: GLON GLAT
      real*8        GLON       (nr__5) ! (deg) Galactic longitude (G1)
      real*8        GLAT       (nr__5) ! (deg) Galactic latitude (G1)
      real*4        Mmag       (nr__5) ! (mag) The Washington M-band magnitude
      real*4        M_T2       (nr__5) ! (mag) The Washington (M-T_2_) color
      real*4        e_M_T2     (nr__5) ! (mag) Error in M-T2
      real*4        C_M        (nr__5) ! (mag) The Washington (C-M) color
      real*4        e_C_M      (nr__5) ! (mag) Error in C-M
      real*4        M_51       (nr__5) ! (mag) The Washington (M-51) color
      real*4        v_Fe_H_K   (nr__5) ! ([---]) The K' index metallicity measurement
      real*4        e__Fe_H_K  (nr__5) ! ([---]) Error in [Fe/H]K
      real*4        v_Fe_H_CaI (nr__5) ! ([---]) The Ca I (4227) index metallicity measurement
      real*4        e__Fe_H_CaI(nr__5) ! ([---]) Error in [Fe/H]CaI
      real*4        v_Fe_H_Mg  (nr__5) ! ([---]) The Mg index metallicity measurement
      real*4        e__Fe_H_Mg (nr__5) ! ([---]) Error in [Fe/H]Mg
      character*1   Lum        (nr__5) ! [rgsd] Luminosity classification (1)
      character*3   Obs_M      (nr__5) ! ("month") Month of the observation
      integer*4     Obs_Y      (nr__5) ! (yr) ? Year of the observation
*Note (1): Luminosity classification:
*    r = Needs repeat observation;
*    g = Giant;
*    s = Subdwarf;
*    d = Dwarf.

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

C  Declarations for 'table7.dat'	! Metallicities and distances for
                             spectroscopically confirmed giants

      integer*4 nr__6
      parameter (nr__6=30)	! Number of records
      character*72 ar__6  	! Full-size record

C  Position composed of: GLON GLAT
      real*8        GLON_1     (nr__6) ! (deg) Galactic longitude (G1)
      real*8        GLAT_1     (nr__6) ! (deg) Galactic latitude (G1)
      real*4        v_Fe_H_P   (nr__6) ! ([---]) The photometry-derived metallicity
      real*4        e__Fe_H_P  (nr__6) ! ([---]) Error in [Fe/H]P
      real*4        v_Fe_H_S   (nr__6) ! ([---]) The spectroscopy-derived metallicity
      real*4        e__Fe_H_S  (nr__6) ! ([---]) Error in [Fe/H]S
      real*4        Dist       (nr__6) ! (kpc) Distance
      real*4        e_Dist     (nr__6) ! (kpc) Error in Dist
      character*10  Field      (nr__6) ! Field identification
      integer*4     Chip       (nr__6) ! Chip number
      integer*4     Xpix       (nr__6) ! (pix) The X pixel coordinate
      integer*4     Ypix       (nr__6) ! (pix) The Y pixel coordinate

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

C  Loading file 'table1.dat'	! Metallicity and color of dwarf standards

C  Format for file interpretation

    1 format(
     +  A30,A1,1X,F5.2,A1,1X,F5.3,1X,F5.3,1X,F4.2,1X,F5.3,A1,1X,F5.3,
     +  A15,2X,A6,A1,1X,I2,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,18
        read(1,'(A96)')ar__
        read(ar__,1)
     +  Name(i__),n_Name(i__),v_Fe_H_(i__),n__Fe_H_(i__),v_b_y_0(i__),
     +  v_V_I_0(i__),v_B_V_0(i__),v_M_T2_0(i__),u__M_T2_0(i__),
     +  E_B_V(i__),r__Fe_H_(i__),r__b_y_0(i__),n_r__b_y_0(i__),
     +  r_E_B_V(i__),n_r_E_B_V(i__)
        if(ar__(40:44) .EQ. '') v_b_y_0(i__) = rNULL__
        if(ar__(46:50) .EQ. '') v_V_I_0(i__) = rNULL__
        if(ar__(52:55) .EQ. '') v_B_V_0(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),n_Name(i__),v_Fe_H_(i__),n__Fe_H_(i__),v_b_y_0(i__),
     +  v_V_I_0(i__),v_B_V_0(i__),v_M_T2_0(i__),u__M_T2_0(i__),
     +  E_B_V(i__),r__Fe_H_(i__),r__b_y_0(i__),n_r__b_y_0(i__),
     +  r_E_B_V(i__),n_r_E_B_V(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Metallicity and color of giant standards

C  Format for file interpretation

    2 format(
     +  A30,A1,1X,F5.2,A1,1X,F5.3,1X,F5.3,1X,F4.2,1X,F5.3,A1,1X,F5.3,
     +  A15,2X,A6,A1,1X,I2,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,49
        read(1,'(A96)')ar__1
        read(ar__1,2)
     +  Name_1(i__),n_Name_1(i__),v_Fe_H__1(i__),n__Fe_H__1(i__),
     +  v_b_y_0_1(i__),v_V_I_0_1(i__),v_B_V_0_1(i__),v_M_T2_0_1(i__),
     +  u__M_T2_0_1(i__),E_B_V_1(i__),r__Fe_H__1(i__),r__b_y_0_1(i__),
     +  n_r__b_y_0_1(i__),r_E_B_V_1(i__),n_r_E_B_V_1(i__)
        if(ar__1(40:44) .EQ. '') v_b_y_0_1(i__) = rNULL__
        if(ar__1(46:50) .EQ. '') v_V_I_0_1(i__) = rNULL__
        if(ar__1(52:55) .EQ. '') v_B_V_0_1(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Name_1(i__),n_Name_1(i__),v_Fe_H__1(i__),n__Fe_H__1(i__),
     +  v_b_y_0_1(i__),v_V_I_0_1(i__),v_B_V_0_1(i__),v_M_T2_0_1(i__),
     +  u__M_T2_0_1(i__),E_B_V_1(i__),r__Fe_H__1(i__),r__b_y_0_1(i__),
     +  n_r__b_y_0_1(i__),r_E_B_V_1(i__),n_r_E_B_V_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    3 format(I2,1X,A19,1X,A33,1X,A30)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,50
        read(1,'(A87)')ar__2
        read(ar__2,3)Ref(i__),BibCode(i__),Aut(i__),Com(i__)
c    ..............Just test output...........
        write(6,3)Ref(i__),BibCode(i__),Aut(i__),Com(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Spectral indices for dwarf standards

C  Format for file interpretation

    4 format(A30,1X,F5.2,3X,F4.2,A1,2X,F5.2,3X,F5.2,2X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,17
        read(1,'(A66)')ar__3
        read(ar__3,4)
     +  Name_2(i__),v_Fe_H__2(i__),v_M_T2_0_2(i__),u__M_T2_0_2(i__),
     +  K_(i__),CaI(i__),Mg(i__)
c    ..............Just test output...........
        write(6,4)
     +  Name_2(i__),v_Fe_H__2(i__),v_M_T2_0_2(i__),u__M_T2_0_2(i__),
     +  K_(i__),CaI(i__),Mg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Spectral Indices for giant standards

C  Format for file interpretation

    5 format(A30,1X,F5.2,3X,F4.2,A1,2X,F5.2,3X,F5.2,2X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,46
        read(1,'(A66)')ar__4
        read(ar__4,5)
     +  Name_3(i__),v_Fe_H__3(i__),v_M_T2_0_3(i__),u__M_T2_0_3(i__),
     +  K__1(i__),CaI_1(i__),Mg_1(i__)
c    ..............Just test output...........
        write(6,5)
     +  Name_3(i__),v_Fe_H__3(i__),v_M_T2_0_3(i__),u__M_T2_0_3(i__),
     +  K__1(i__),CaI_1(i__),Mg_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Spectroscopic Observations for Giant Candidates

C  Format for file interpretation

    6 format(
     +  F7.3,1X,F7.3,1X,F5.2,1X,F4.2,1X,F5.3,1X,F4.2,1X,F5.3,1X,F5.2,
     +  1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F4.2,1X,A1,1X,A3,
     +  1X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,94
        read(1,'(A96)')ar__5
        read(ar__5,6)
     +  GLON(i__),GLAT(i__),Mmag(i__),M_T2(i__),e_M_T2(i__),C_M(i__),
     +  e_C_M(i__),M_51(i__),v_Fe_H_K(i__),e__Fe_H_K(i__),
     +  v_Fe_H_CaI(i__),e__Fe_H_CaI(i__),v_Fe_H_Mg(i__),
     +  e__Fe_H_Mg(i__),Lum(i__),Obs_M(i__),Obs_Y(i__)
        if(ar__5(92:95) .EQ. '') Obs_Y(i__) = iNULL__
c    ..............Just test output...........
        write(6,6)
     +  GLON(i__),GLAT(i__),Mmag(i__),M_T2(i__),e_M_T2(i__),C_M(i__),
     +  e_C_M(i__),M_51(i__),v_Fe_H_K(i__),e__Fe_H_K(i__),
     +  v_Fe_H_CaI(i__),e__Fe_H_CaI(i__),v_Fe_H_Mg(i__),
     +  e__Fe_H_Mg(i__),Lum(i__),Obs_M(i__),Obs_Y(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! Metallicities and distances for
*                             spectroscopically confirmed giants

C  Format for file interpretation

    7 format(
     +  F7.3,1X,F7.3,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,
     +  1X,A10,1X,I1,1X,I4,1X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,30
        read(1,'(A72)')ar__6
        read(ar__6,7)
     +  GLON_1(i__),GLAT_1(i__),v_Fe_H_P(i__),e__Fe_H_P(i__),
     +  v_Fe_H_S(i__),e__Fe_H_S(i__),Dist(i__),e_Dist(i__),Field(i__),
     +  Chip(i__),Xpix(i__),Ypix(i__)
c    ..............Just test output...........
        write(6,7)
     +  GLON_1(i__),GLAT_1(i__),v_Fe_H_P(i__),e__Fe_H_P(i__),
     +  v_Fe_H_S(i__),e__Fe_H_S(i__),Dist(i__),e_Dist(i__),Field(i__),
     +  Chip(i__),Xpix(i__),Ypix(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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