FORTRAN Generation
(/./ftp/cats/J/ApJ/700/523)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/700/523 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/700/523     Galactic star clusters in SDSS. II. Colors.        (An+, 2009)
*================================================================================
*Galactic globular and open clusters in the Sloan digital sky survey.
*II. Test of theoretical stellar isochrones.
*    An D., Pinsonneault M.H., Masseron T., Delahaye F., Johnson J.A.,
*    Terndrup D.M., Beers T.C., Ivans I.I., Ivezic Z.
*   <Astrophys. J., 700, 523-544 (2009)>
*   =2009ApJ...700..523A
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table5.dat'	! Bolometric corrections and synthetic colors in ugriz

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

      real*4        v_Fe_H_     ! ([Sun]) Metallicity
      real*4        v_a_Fe_     ! ([Sun]) log({alpha}/Fe) abundance ratio
      integer*4     Teff        ! (K) Effective temperature
      real*4        log_g       ! ([cm/s2]) Log of surface gravity
      real*4        BC          ! (mag) Bolometric correction for r band
      real*4        u_g         ! (mag) The SDSS (u-g) color index (1)
      real*4        g_r         ! (mag) The SDSS (g-r) color index (1)
      real*4        g_i         ! (mag) The SDSS (g-i) color index (1)
      real*4        g_z         ! (mag) The SDSS (g-z) color index (1)
*Note (1): The AB corrections for the SDSS magnitudes and empirical color
*     corrections are not applied.

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

C  Loading file 'table5.dat'	! Bolometric corrections and synthetic colors in ugriz

C  Format for file interpretation

    1 format(
     +  F4.1,1X,F3.1,1X,I4,1X,F3.1,1X,F6.3,1X,F5.3,1X,F6.3,1X,F6.3,1X,
     +  F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,2107
        read(1,'(A51)')ar__
        read(ar__,1)v_Fe_H_,v_a_Fe_,Teff,log_g,BC,u_g,g_r,g_i,g_z
c    ..............Just test output...........
        write(6,1)v_Fe_H_,v_a_Fe_,Teff,log_g,BC,u_g,g_r,g_i,g_z
c    .......End.of.Just test output...........
      end do
      close(1)

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