Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/541/A41 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 2026-Oct-14
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 (nr__) ! Name of the file, in subdirectory grids
real*4 Zinit (nr__) ! Initial Z abundance
real*4 Minit (nr__) ! (Msun) Intitial mass
real*4 Age20 (nr__) ! (yr) Phase 20 starting age (with first model at 0)
real*4 Age21 (nr__) ! (yr) Phase 21 starting age (with first model at 100)
real*4 Age22 (nr__) ! (yr) Phase 22 starting age (with first model at 200)
real*4 Age23 (nr__) ! (yr) Phase 23 starting age (with first model at 300)
real*4 Age30 (nr__) ! (yr) Phase 30 starting age (with first model at 380)
real*4 Age31 (nr__) ! (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 (nr__1) ! [0/600] Model index
integer*4 Phase (nr__1) ! [20/31] Phase of the model
real*4 Age (nr__1) ! (yr) Age
real*4 Mass (nr__1) ! (Msun) [0.5/3.5] Stellar mass
real*8 logL (nr__1) ! ([Lsun]) Logarithm of the surface luminosity
real*8 logTe (nr__1) ! ([K]) Logarithm of the effective temperature
real*8 logrhoc (nr__1) ! ([g/cm3]) Logarithm of the central density
real*8 logTc (nr__1) ! ([K]) Logarithm of the central temperature
real*8 Qcc (nr__1) ! Mass of the convective core relative to
* the stellar mass
real*4 Xc_H (nr__1) ! Hydrogen mass fraction at the center
real*4 Xc_3He (nr__1) ! Helium (^3^He) mass fraction at the center
real*4 Xc_4He (nr__1) ! Helium (^4^He) mass fraction at the center
real*4 Xc_12C (nr__1) ! Carbon (^12^C) mass fraction at the center
real*4 Xc_13C (nr__1) ! Carbon (^13^C) mass fraction at the center
real*4 Xc_14N (nr__1) ! Nitrogen (^14^N) mass fraction at the center
real*4 Xc_16O (nr__1) ! Oxygen (^16^O) mass fraction at the center
real*4 Xc_17O (nr__1) ! Oxygen (^17^O) mass fraction at the center
real*4 Xc_18O (nr__1) ! Oxygen (^18^O) mass fraction at the center
real*4 Xc_20Ne (nr__1) ! Neon (^20^Ne) mass fraction at the center
real*4 Xc_22Ne (nr__1) ! Neon (^22^Ne) mass fraction at the center
real*4 Xs_H (nr__1) ! Hydrogen mass fraction at the surface
real*4 Xs_3He (nr__1) ! Helium (^3^He) mass fraction at the surface
real*4 Xs_4He (nr__1) ! Helium (^4^He) mass fraction at the surface
real*4 Xs_12C (nr__1) ! Carbon (^12^C) mass fraction at the surface
real*4 Xs_13C (nr__1) ! Carbon (^13^C) mass fraction at the surface
real*4 Xs_14N (nr__1) ! Nitrogen (^14^N) mass fraction at the surface
real*4 Xs_16O (nr__1) ! Oxygen (^16^O) mass fraction at the surface
real*4 Xs_17O (nr__1) ! Oxygen (^17^O) mass fraction at the surface
real*4 Xs_18O (nr__1) ! Oxygen (^18^O) mass fraction at the surface
real*4 Xs_20Ne (nr__1) ! Neon (^20^Ne) mass fraction at the surface
real*4 Xs_22Ne (nr__1) ! Neon (^22^Ne) mass fraction at the surface
real*4 Minit_1 (nr__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 (nr__1) ! [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 (nr__1) ! [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 (nr__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 (nr__1) ! Surface metallicity
real*8 R (nr__1) ! (Rsun) Stellar radius
real*8 logrho (nr__1) ! ([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(i__),Zinit(i__),Minit(i__),Age20(i__),Age21(i__),
+ Age22(i__),Age23(i__),Age30(i__),Age31(i__)
c ..............Just test output...........
write(6,1)
+ FileName(i__),Zinit(i__),Minit(i__),Age20(i__),Age21(i__),
+ Age22(i__),Age23(i__),Age30(i__),Age31(i__)
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(i__),Phase(i__),Age(i__),Mass(i__),logL(i__),logTe(i__),
+ logrhoc(i__),logTc(i__),Qcc(i__),Xc_H(i__),Xc_3He(i__),
+ Xc_4He(i__),Xc_12C(i__),Xc_13C(i__),Xc_14N(i__),Xc_16O(i__),
+ Xc_17O(i__),Xc_18O(i__),Xc_20Ne(i__),Xc_22Ne(i__),Xs_H(i__),
+ Xs_3He(i__),Xs_4He(i__),Xs_12C(i__),Xs_13C(i__),Xs_14N(i__),
+ Xs_16O(i__),Xs_17O(i__),Xs_18O(i__),Xs_20Ne(i__),Xs_22Ne(i__),
+ Minit_1(i__),Xinit(i__),Yinit(i__),Zinit_1(i__),Zsurf(i__),
+ R(i__),logrho(i__)
c ..............Just test output...........
write(6,2)
+ Model(i__),Phase(i__),Age(i__),Mass(i__),logL(i__),logTe(i__),
+ logrhoc(i__),logTc(i__),Qcc(i__),Xc_H(i__),Xc_3He(i__),
+ Xc_4He(i__),Xc_12C(i__),Xc_13C(i__),Xc_14N(i__),Xc_16O(i__),
+ Xc_17O(i__),Xc_18O(i__),Xc_20Ne(i__),Xc_22Ne(i__),Xs_H(i__),
+ Xs_3He(i__),Xs_4He(i__),Xs_12C(i__),Xs_13C(i__),Xs_14N(i__),
+ Xs_16O(i__),Xs_17O(i__),Xs_18O(i__),Xs_20Ne(i__),Xs_22Ne(i__),
+ Minit_1(i__),Xinit(i__),Yinit(i__),Zinit_1(i__),Zsurf(i__),
+ R(i__),logrho(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end