Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/372/862 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-Aug-11
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/372/862 Lithium abundances in IC 2602 and IC 2391 (Randich+, 2001)
*================================================================================
*Membership, lithium, and metallicity in the young open clusters
*IC 2602 and IC 2391: enlarging the sample
* Randich S., Pallavicini R., Meola G., Stauffer J.R., Balachandran S.C.
* <Astron. Astrophys. 372, 862 (2001)>
* =2001A&A...372..862R
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'stars.dat' ! Star positions and magnitudes (from Simbad)
integer*4 nr__
parameter (nr__=81) ! Number of records
character*77 ar__ ! Full-size record
C J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg (nr__) ! (deg) Right Ascension J2000.0
real*8 DEdeg (nr__) ! (deg) Declination J2000.0
C ---------------------------------- ! (position vector(s) in degrees)
character*15 Name (nr__) ! Object name
character*19 SName (nr__) ! Simbad name
integer*4 RAh (nr__) ! (h) ? Right ascension (J2000.0)
integer*4 RAm (nr__) ! (min) ? Right ascension (J2000.0)
real*4 RAs (nr__) ! (s) ? Right ascension (J2000.0)
character*1 DE_ (nr__) ! Declination sign (J2000.0)
integer*4 DEd (nr__) ! (deg) ? Declination (J2000.0)
integer*4 DEm (nr__) ! (arcmin) ? Declination (J2000.0)
integer*4 DEs (nr__) ! (arcsec) ? Declination (J2000.0)
real*4 Bmag (nr__) ! (mag) ? B magnitude
real*4 Vmag (nr__) ! (mag) V magnitude
character*6 SpType (nr__) ! Spectral type
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Li abundances for sample stars
integer*4 nr__1
parameter (nr__1=48) ! Number of records
character*54 ar__1 ! Full-size record
character*15 Name_1 (nr__1) ! Star designation (1)
integer*4 Teff (nr__1) ! (K) Effective temperature
integer*4 e_Teff (nr__1) ! (K) rms uncertainty on Teff
character*1 n_Teff (nr__1) ! [*] Note on e_Teff (2)
character*2 l_EW_Li (nr__1) ! [<= ] Limit flag on EW(Li)
integer*4 EW_Li (nr__1) ! (0.1pm) ? Lithium equivalent width
integer*4 e_EW_Li (nr__1) ! (0.1pm) ? rms uncertainty on EW(Li)
character*2 n_logn_Li_LTE(nr__1) ! [<= ] Limit flag on logn(Li)LTE
real*4 logn_Li_LTE(nr__1) ! ? LTE Li abundance
real*4 logn_Li_NLTE(nr__1) ! ? NLTE Li abundance
real*4 e_logn_Li_NLTE(nr__1) ! ? rms uncertainty on logn(Li)NLTE
character*1 n_logn_Li_NLTE(nr__1) ! [*] Note on e_logn(Li)NLTE (2)
*Note (1): Star designations:
* IC 2602 RNNA = [RSP95] NNNA
* IC 2602 WNNN = Cl* IC 2602 W NNN
* IC 2391 VXRNNA = VXR PSPC NNa
* IC 2391 SHJM NN = Cl* IC 2391 SHJM NN
*Note (2): Asterisks indicate stars for which errors in Teff could not be
* directly estimated
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Li abundances for S89 (Stauffer et al.,
1989ApJ...342..285S) sample
integer*4 nr__2
parameter (nr__2=10) ! Number of records
character*52 ar__2 ! Full-size record
character*15 Name_2 (nr__2) ! Star designation (1)
integer*4 Teff_1 (nr__2) ! (K) Effective temperature
integer*4 e_Teff_1 (nr__2) ! (K) rms uncertainty on Teff
character*1 n_Teff_1 (nr__2) ! [*] Note on e_Teff (2)
character*2 l_EW_Li_1 (nr__2) ! [<= ] Limit flag on EW(Li)
integer*4 EW_Li_1 (nr__2) ! (0.1pm) ? Lithium equivalent width
integer*4 e_EW_Li_1 (nr__2) ! (0.1pm) ? rms uncertainty on EW(Li)
character*2 n_logn_Li_LTE_1(nr__2) ! [<= ] Limit flag on logn(Li)LTE
real*4 logn_Li_LTE_1(nr__2) ! ? LTE Li abundance
real*4 logn_Li_NLTE_1(nr__2) ! ? NLTE Li abundance
real*4 e_logn_Li_NLTE_1(nr__2) ! ? rms uncertainty on logn(Li)NLTE
character*1 n_logn_Li_NLTE_1(nr__2) ! [*] Note on e_logn(Li)NLTE (2)
*Note (1): Star designations:
* IC 2602 RNNA = [RSP95] NNNA
* IC 2602 WNNN = Cl* IC 2602 W NNN
* IC 2391 VXRNNA = VXR PSPC NNa
* IC 2391 SHJM NN = Cl* IC 2391 SHJM NN
*Note (2): Asterisks indicate stars for which errors in Teff could not be
* directly estimated
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! Recomputed Li abundances for R97
(Randish et al., 1997A&A...323...86R)
integer*4 nr__3
parameter (nr__3=23) ! Number of records
character*47 ar__3 ! Full-size record
character*15 Name_3 (nr__3) ! Star designation (IC 2602 R NNA,
* [RSP95] NN in Simbad)
integer*4 TeffR97 (nr__3) ! (K) R97 effective temperature
character*2 l_EW_li_R97(nr__3) ! [<= >] Limit flag on EW(Li)
real*4 EW_li_R97 (nr__3) ! (0.1pm) R97 Li equivalent width
real*4 EW_li_R97b (nr__3) ! (0.1pm) ? Other R97 Li equivalent width
integer*4 Teff_2 (nr__3) ! (K) New effective temperature
real*4 EW_li_1 (nr__3) ! (0.1pm) New Li equivalent width
real*4 EW_li_b (nr__3) ! (0.1pm) ? New other Li equivalent width
C=============================================================================
C Loading file 'stars.dat' ! Star positions and magnitudes (from Simbad)
C Format for file interpretation
1 format(
+ A15,1X,A19,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,3X,F5.2,
+ 1X,F5.2,1X,A6)
C Effective file loading
open(unit=1,status='old',file=
+'stars.dat')
write(6,*) '....Loading file: stars.dat'
do i__=1,81
read(1,'(A77)')ar__
read(ar__,1)
+ Name(i__),SName(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
+ DEd(i__),DEm(i__),DEs(i__),Bmag(i__),Vmag(i__),SpType(i__)
if(ar__(37:38) .EQ. '') RAh(i__) = iNULL__
if(ar__(40:41) .EQ. '') RAm(i__) = iNULL__
if(ar__(43:46) .EQ. '') RAs(i__) = rNULL__
if(ar__(49:50) .EQ. '') DEd(i__) = iNULL__
if(ar__(52:53) .EQ. '') DEm(i__) = iNULL__
if(ar__(55:56) .EQ. '') DEs(i__) = iNULL__
if(ar__(60:64) .EQ. '') Bmag(i__) = rNULL__
RAdeg(i__) = rNULL__
DEdeg(i__) = rNULL__
c Derive coordinates RAdeg and DEdeg from input data
c (RAdeg and DEdeg are set to rNULL__ when unknown)
if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c ..............Just test output...........
write(6,1)
+ Name(i__),SName(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
+ DEd(i__),DEm(i__),DEs(i__),Bmag(i__),Vmag(i__),SpType(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Li abundances for sample stars
C Format for file interpretation
2 format(
+ A15,1X,I4,1X,I3,A1,1X,A2,I3,1X,I2,1X,A2,F5.2,1X,F3.1,1X,F4.2,
+ A1)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,48
read(1,'(A54)')ar__1
read(ar__1,2)
+ Name_1(i__),Teff(i__),e_Teff(i__),n_Teff(i__),l_EW_Li(i__),
+ EW_Li(i__),e_EW_Li(i__),n_logn_Li_LTE(i__),logn_Li_LTE(i__),
+ logn_Li_NLTE(i__),e_logn_Li_NLTE(i__),n_logn_Li_NLTE(i__)
if(ar__1(29:31) .EQ. '') EW_Li(i__) = iNULL__
if(ar__1(33:34) .EQ. '') e_EW_Li(i__) = iNULL__
if(ar__1(38:42) .EQ. '') logn_Li_LTE(i__) = rNULL__
if(ar__1(44:46) .EQ. '') logn_Li_NLTE(i__) = rNULL__
if(ar__1(48:51) .EQ. '') e_logn_Li_NLTE(i__) = rNULL__
c ..............Just test output...........
write(6,2)
+ Name_1(i__),Teff(i__),e_Teff(i__),n_Teff(i__),l_EW_Li(i__),
+ EW_Li(i__),e_EW_Li(i__),n_logn_Li_LTE(i__),logn_Li_LTE(i__),
+ logn_Li_NLTE(i__),e_logn_Li_NLTE(i__),n_logn_Li_NLTE(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! Li abundances for S89 (Stauffer et al.,
* 1989ApJ...342..285S) sample
C Format for file interpretation
3 format(
+ A15,1X,I4,1X,I3,A1,1X,A2,I3,1X,I2,1X,A2,F5.2,1X,F3.1,1X,F4.2,
+ A1)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,10
read(1,'(A52)')ar__2
read(ar__2,3)
+ Name_2(i__),Teff_1(i__),e_Teff_1(i__),n_Teff_1(i__),
+ l_EW_Li_1(i__),EW_Li_1(i__),e_EW_Li_1(i__),
+ n_logn_Li_LTE_1(i__),logn_Li_LTE_1(i__),logn_Li_NLTE_1(i__),
+ e_logn_Li_NLTE_1(i__),n_logn_Li_NLTE_1(i__)
if(ar__2(29:31) .EQ. '') EW_Li_1(i__) = iNULL__
if(ar__2(33:34) .EQ. '') e_EW_Li_1(i__) = iNULL__
if(ar__2(38:42) .EQ. '') logn_Li_LTE_1(i__) = rNULL__
if(ar__2(44:46) .EQ. '') logn_Li_NLTE_1(i__) = rNULL__
if(ar__2(48:51) .EQ. '') e_logn_Li_NLTE_1(i__) = rNULL__
c ..............Just test output...........
write(6,3)
+ Name_2(i__),Teff_1(i__),e_Teff_1(i__),n_Teff_1(i__),
+ l_EW_Li_1(i__),EW_Li_1(i__),e_EW_Li_1(i__),
+ n_logn_Li_LTE_1(i__),logn_Li_LTE_1(i__),logn_Li_NLTE_1(i__),
+ e_logn_Li_NLTE_1(i__),n_logn_Li_NLTE_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table4.dat' ! Recomputed Li abundances for R97
* (Randish et al., 1997A&A...323...86R)
C Format for file interpretation
4 format(A15,1X,I4,1X,A2,F4.2,1X,F4.2,1X,I4,1X,F4.2,1X,F4.2)
C Effective file loading
open(unit=1,status='old',file=
+'table4.dat')
write(6,*) '....Loading file: table4.dat'
do i__=1,23
read(1,'(A47)')ar__3
read(ar__3,4)
+ Name_3(i__),TeffR97(i__),l_EW_li_R97(i__),EW_li_R97(i__),
+ EW_li_R97b(i__),Teff_2(i__),EW_li_1(i__),EW_li_b(i__)
if(ar__3(29:32) .EQ. '') EW_li_R97b(i__) = rNULL__
if(ar__3(44:47) .EQ. '') EW_li_b(i__) = rNULL__
c ..............Just test output...........
write(6,4)
+ Name_3(i__),TeffR97(i__),l_EW_li_R97(i__),EW_li_R97(i__),
+ EW_li_R97b(i__),Teff_2(i__),EW_li_1(i__),EW_li_b(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end