FORTRAN Generation
(/./ftp/cats/J/A_A/541/A41)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/541/A41 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 2026-Oct-12
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/541/A41       Basic tracks at Zinit=0.006               (Mowlavi+, 2012)
*================================================================================
*Stellar mass and age determinations.
*I. Grids of stellar models from Z=0.006 to 0.04 and M=0.5 to 3.5 M_{sun}_.
*    Mowlavi N., Eggenberger P., Meynet G., Ekstrom S., Georgy C., Maeder A.,
*    Charbonnel C., Eyer L.
*   <Astron. Astrophys. 541, A41 (2012)>
*   =2012A&A...541A..41M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'models.dat'	! List of models (39 tracks by table)

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

      character*12  FileName    ! Name of the file, in subdirectory grids
      real*4        Zinit       ! Initial Z abundance
      real*4        Minit       ! (Msun) Intitial mass
      real*4        Age20       ! (yr) Phase 20 starting age (with first model at 0)
      real*4        Age21       ! (yr) Phase 21 starting age (with first model at 100)
      real*4        Age22       ! (yr) Phase 22 starting age (with first model at 200)
      real*4        Age23       ! (yr) Phase 23 starting age (with first model at 300)
      real*4        Age30       ! (yr) Phase 30 starting age (with first model at 380)
      real*4        Age31       ! (yr) Phase 31 starting age (with first model at 600)

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

C  Declarations for 'grids/*'	! Tables with grids of Geneva stellar models

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

      integer*4     Model       ! [0/600] Model index
      integer*4     Phase       ! [20/31] Phase of the model
      real*4        Age         ! (yr) Age
      real*4        Mass        ! (Msun) [0.5/3.5] Stellar mass
      real*8        logL        ! ([Lsun]) Logarithm of the surface luminosity
      real*8        logTe       ! ([K]) Logarithm of the effective temperature
      real*8        logrhoc     ! ([g/cm3]) Logarithm of the central density
      real*8        logTc       ! ([K]) Logarithm of the central temperature
      real*8        Qcc         ! Mass of the convective core relative to
*                                   the stellar mass
      real*4        Xc_H        ! Hydrogen mass fraction at the center
      real*4        Xc_3He      ! Helium (^3^He) mass fraction at the center
      real*4        Xc_4He      ! Helium (^4^He) mass fraction at the center
      real*4        Xc_12C      ! Carbon (^12^C) mass fraction at the center
      real*4        Xc_13C      ! Carbon (^13^C) mass fraction at the center
      real*4        Xc_14N      ! Nitrogen (^14^N) mass fraction at the center
      real*4        Xc_16O      ! Oxygen (^16^O) mass fraction at the center
      real*4        Xc_17O      ! Oxygen (^17^O) mass fraction at the center
      real*4        Xc_18O      ! Oxygen (^18^O) mass fraction at the center
      real*4        Xc_20Ne     ! Neon (^20^Ne) mass fraction at the center
      real*4        Xc_22Ne     ! Neon (^22^Ne) mass fraction at the center
      real*4        Xs_H        ! Hydrogen mass fraction at the surface
      real*4        Xs_3He      ! Helium (^3^He) mass fraction at the surface
      real*4        Xs_4He      ! Helium (^4^He) mass fraction at the surface
      real*4        Xs_12C      ! Carbon (^12^C) mass fraction at the surface
      real*4        Xs_13C      ! Carbon (^13^C) mass fraction at the surface
      real*4        Xs_14N      ! Nitrogen (^14^N) mass fraction at the surface
      real*4        Xs_16O      ! Oxygen (^16^O) mass fraction at the surface
      real*4        Xs_17O      ! Oxygen (^17^O) mass fraction at the surface
      real*4        Xs_18O      ! Oxygen (^18^O) mass fraction at the surface
      real*4        Xs_20Ne     ! Neon (^20^Ne) mass fraction at the surface
      real*4        Xs_22Ne     ! Neon (^22^Ne) mass fraction at the surface
      real*4        Minit_1     ! ([Msun]) [0.5/3.5] Stellar mass of the initial model
*                                   of the evolutionary track from which this
*                                   model has been computed
      real*8        Xinit       ! [0.66/0.75] Hydrogen mass fraction of the
*                                   initial model of the evolutionary track from
*                                   which this model has been computed
      real*8        Yinit       ! [0.25/0.30] Helium mass fraction of the
*                                   initial model of the evolutionary track from
*                                   which this model has been computed
      real*4        Zinit_1     ! [0.006/0.04] Metallicity mass fraction of the
*                                   initial model of the evolutionary track
*                                   from which this model has been computed
      real*8        Zsurf       ! Surface metallicity
      real*8        R           ! (Rsun) Stellar radius
      real*8        logrho      ! ([Sun]) Logarithm of the mean stellar density relative
*                                   to the solar mean density, with
*                                   {rho}_{sun}_=1.411g/cm3

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

C  Loading file 'models.dat'	! List of models (39 tracks by table)

C  Format for file interpretation

    1 format(
     +  A12,1X,F6.4,1X,F4.2,3X,E13.8,1X,E13.8,1X,E13.8,1X,E13.8,1X,
     +  E13.8,1X,E13.8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'models.dat')
      write(6,*) '....Loading file: models.dat'
      do i__=1,234
        read(1,'(A110)')ar__
        read(ar__,1)
     +  FileName,Zinit,Minit,Age20,Age21,Age22,Age23,Age30,Age31
c    ..............Just test output...........
        write(6,1)
     +  FileName,Zinit,Minit,Age20,Age21,Age22,Age23,Age30,Age31
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'grids/*'	! Tables with grids of Geneva stellar models

C  Format for file interpretation

    2 format(
     +  I4,1X,I3,3X,E13.8,2X,F4.2,6X,F9.6,1X,F8.6,3X,F8.6,1X,F8.6,1X,
     +  F7.4,3X,E11.6,1X,E11.6,1X,E11.6,1X,E11.6,1X,E11.6,1X,E11.6,1X,
     +  E11.6,1X,E11.6,1X,E11.6,1X,E11.6,1X,E12.6,2X,E11.6,1X,E11.6,
     +  1X,E11.6,1X,E11.6,1X,E11.6,1X,E11.6,1X,E11.6,1X,E11.6,1X,
     +  E11.6,1X,E11.6,1X,E11.6,3X,F4.2,5X,F8.6,1X,F8.6,1X,F6.4,3X,
     +  F8.6,2X,F8.5,1X,F8.5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'grids/*')
      write(6,*) '....Loading file: grids/*'
      do i__=1,6
        read(1,'(A416)')ar__1
        read(ar__1,2)
     +  Model,Phase,Age,Mass,logL,logTe,logrhoc,logTc,Qcc,Xc_H,Xc_3He,
     +  Xc_4He,Xc_12C,Xc_13C,Xc_14N,Xc_16O,Xc_17O,Xc_18O,Xc_20Ne,
     +  Xc_22Ne,Xs_H,Xs_3He,Xs_4He,Xs_12C,Xs_13C,Xs_14N,Xs_16O,Xs_17O,
     +  Xs_18O,Xs_20Ne,Xs_22Ne,Minit_1,Xinit,Yinit,Zinit_1,Zsurf,R,
     +  logrho
c    ..............Just test output...........
        write(6,2)
     +  Model,Phase,Age,Mass,logL,logTe,logrhoc,logTc,Qcc,Xc_H,Xc_3He,
     +  Xc_4He,Xc_12C,Xc_13C,Xc_14N,Xc_16O,Xc_17O,Xc_18O,Xc_20Ne,
     +  Xc_22Ne,Xs_H,Xs_3He,Xs_4He,Xs_12C,Xs_13C,Xs_14N,Xs_16O,Xs_17O,
     +  Xs_18O,Xs_20Ne,Xs_22Ne,Minit_1,Xinit,Yinit,Zinit_1,Zsurf,R,
     +  logrho
c    .......End.of.Just test output...........
      end do
      close(1)

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