Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/145/167 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-Jun-08
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/145/167 Abundances of LX Per (Kang+, 2013)
*================================================================================
*Signs of accretion in the abundance patterns of the components of the
*RS CVn-type eclipsing binary star LX Persei.
* Kang Y.-W., Yushchenko A.V., Hong K., Guinan E.F., Gopka V.F.
* <Astron. J., 145, 167 (2013)>
* =2013AJ....145..167K
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Iron lines in the spectrum of LX Per
integer*4 nr__
parameter (nr__=107) ! Number of records
character*53 ar__ ! Full-size record
character*5 Ion ! Iron line identifier (Fe I or Fe II)
real*8 lambda ! (0.1nm) [4515/8946] Wavelength; in {AA}
real*4 loggf ! ([-]) Log of the oscillator strength
character*2 r_loggf ! Reference for loggf; in refs.dat file
real*4 Elow ! (eV) Lower excitation energy level
real*4 EWh ! (0.1pm) ? Equivalent width of hot component (m{AA})
real*4 EWc ! (0.1pm) ? Equivalent width of cool component (m{AA})
real*4 logNh ! ([-]) ? Hot component abundance (logN(H)=12)
real*4 logNc ! ([-]) ? Cool component abundance (logN(H)=12)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table5.dat' ! Lines of chemical elements (except iron) in the
spectrum of the hotter component of LX Per
integer*4 nr__1
parameter (nr__1=110) ! Number of records
character*89 ar__1 ! Full-size record
character*5 Ion_1 ! Elemental line identification
real*8 lambda_1 ! (0.1nm) [4497/9238] Line wavelength; in {AA}
real*4 loggf_1 ! ([-]) Log of the oscillator strength
character*1 f_loggf ! [h] Flag on loggf (h) (1)
character*2 r_loggf_1 ! Reference for loggf; in refs.dat file
real*4 Elow_1 ! (eV) Excitation energy of lower level
real*4 logN ! ([-]) Derived abundance in LX Per (H=12)
real*4 logNo ! ([-]) ? Derived abundance in the Sun (H=12)
real*4 Abun ! ([Sun]) LX Per abundance relative to the Sun
real*4 Bl ! [0/1] Blending in LX Per (1=clean line)
real*4 Blo ! [0/1]? Blending in the Sun (1=clean line)
real*4 D ! [0/1] LX Per depth in synthetic spectrum
real*4 Do ! [0/1]? Solar depth in synthetic spectrum
real*4 e_g ! ([-]) LX Per error in abundance for a change in logg
* of +0.2dex
real*4 e_T ! ([-]) LX Per error in abundance for a change in
* effective temperature of +100K
*Note (1): Isotopic splitting and hyperfine structure of the lines were taken
* into account for Li, Sc, V, Mn, Co, Cu, and Ba.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table6.dat' ! Lines of chemical elements (except iron) in the
spectrum of the cooler component of LX Per
integer*4 nr__2
parameter (nr__2=123) ! Number of records
character*89 ar__2 ! Full-size record
character*5 Ion_2 ! Elemental line identification
real*8 lambda_2 ! (0.1nm) [4497/9238] Line wavelength; in {AA}
real*4 loggf_2 ! ([-]) Log of the oscillator strength
character*1 f_loggf_1 ! [h] Flag on loggf (h) (1)
character*2 r_loggf_2 ! Reference for loggf; in refs.dat file
real*4 Elow_2 ! (eV) Excitation energy of lower level
real*4 logN_1 ! ([-]) Derived abundance in LX Per (H=12)
real*4 logNo_1 ! ([-]) ? Derived abundance in the Sun (H=12)
real*4 Abun_1 ! ([Sun]) LX Per abundance relative to the Sun
real*4 Bl_1 ! [0/1] Blending in LX Per (1=clean line)
real*4 Blo_1 ! [0/1]? Blending in the Sun (1=clean line)
real*4 D_1 ! [0/1] LX Per depth in synthetic spectrum
real*4 Do_1 ! [0/1]? Solar depth in synthetic spectrum
real*4 e_g_1 ! ([-]) LX Per error in abundance for a change in logg
* of +0.2dex
real*4 e_T_1 ! ([-]) LX Per error in abundance for a change in
* effective temperature of +100K
*Note (1): Isotopic splitting and hyperfine structure of the lines were taken
* into account for Li, Sc, V, Mn, Co, Cu, and Ba.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table7.dat' ! Mean abundances of chemical elements in the
atmosphere of LX Per
integer*4 nr__3
parameter (nr__3=53) ! Number of records
character*70 ar__3 ! Full-size record
character*1 C ! [ch] Component (h=hotter, c=cooler)
integer*4 Z ! [3/56]? Atomic number
character*5 Ion_3 ! Name of ion
integer*4 NL ! [1/72] Number of spectral lines used
real*4 Abest ! ([Sun]) Best value mean abundance (LX Per minus Solar)
real*4 e_Abest ! ([Sun]) ? Uncertainty in Ab-best
real*4 Ag_0_2 ! ([Sun]) Mean abundance (LX Per minus Solar) with
* surface gravity shifted by +0.2cm/s^2^
real*4 e_Ag_0_2 ! ([Sun]) ? Uncertainty in Ag+0.2
real*4 A_100K ! ([Sun]) Mean abundance (LX Per minus Solar) with
* effective temperature altered by +100K
real*4 e_A_100K ! ([Sun]) ? Uncertainty in A+100K
real*4 Nbest ! ([-]) Best value of LX Per absolute mean abundance
* log(N/H)+12
real*4 e_Nbest ! ([-]) ? Uncertainty in N-best
real*4 Ng_0_2 ! ([-]) Absolute mean abundance of LX Per with surface
* gravity shifted by +0.2cm/s^2^
real*4 e_Ng_0_2 ! ([-]) ? Uncertainty in N+0.2
real*4 N_100K ! ([-]) Absolute mean abundance (log(N/H)+12) of LX Per
* with effective temperature altered by +100K
real*4 e_N_100K ! ([-]) ? Uncertainty in N+100K
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'refs.dat' ! References
integer*4 nr__4
parameter (nr__4=15) ! Number of records
character*118 ar__4 ! Full-size record
integer*4 Ref ! [1/27] Reference number
character*19 BibCode ! Bibliographic code
character*21 Aut ! Authors's name
character*73 Com ! Comments
C=============================================================================
C Loading file 'table1.dat' ! Iron lines in the spectrum of LX Per
C Format for file interpretation
1 format(
+ A5,1X,F8.3,1X,F6.3,1X,A2,1X,F5.3,1X,F4.1,1X,F5.1,1X,F5.3,1X,
+ F5.3)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,107
read(1,'(A53)')ar__
read(ar__,1)Ion,lambda,loggf,r_loggf,Elow,EWh,EWc,logNh,logNc
if(ar__(32:35) .EQ. '') EWh = rNULL__
if(ar__(37:41) .EQ. '') EWc = rNULL__
if(ar__(43:47) .EQ. '') logNh = rNULL__
if(ar__(49:53) .EQ. '') logNc = rNULL__
c ..............Just test output...........
write(6,1)Ion,lambda,loggf,r_loggf,Elow,EWh,EWc,logNh,logNc
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table5.dat' ! Lines of chemical elements (except iron) in the
* spectrum of the hotter component of LX Per
C Format for file interpretation
2 format(
+ A5,1X,F8.3,1X,F6.3,A1,1X,A2,1X,F6.3,1X,F5.3,1X,F5.3,1X,F6.3,
+ 1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.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,110
read(1,'(A89)')ar__1
read(ar__1,2)
+ Ion_1,lambda_1,loggf_1,f_loggf,r_loggf_1,Elow_1,logN,logNo,
+ Abun,Bl,Blo,D,Do,e_g,e_T
if(ar__1(40:44) .EQ. '') logNo = rNULL__
if(ar__1(59:63) .EQ. '') Blo = rNULL__
if(ar__1(71:75) .EQ. '') Do = rNULL__
c ..............Just test output...........
write(6,2)
+ Ion_1,lambda_1,loggf_1,f_loggf,r_loggf_1,Elow_1,logN,logNo,
+ Abun,Bl,Blo,D,Do,e_g,e_T
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table6.dat' ! Lines of chemical elements (except iron) in the
* spectrum of the cooler component of LX Per
C Format for file interpretation
3 format(
+ A5,1X,F8.3,1X,F6.3,A1,1X,A2,1X,F6.3,1X,F5.3,1X,F5.3,1X,F6.3,
+ 1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F6.3,1X,F6.3)
C Effective file loading
open(unit=1,status='old',file=
+'table6.dat')
write(6,*) '....Loading file: table6.dat'
do i__=1,123
read(1,'(A89)')ar__2
read(ar__2,3)
+ Ion_2,lambda_2,loggf_2,f_loggf_1,r_loggf_2,Elow_2,logN_1,
+ logNo_1,Abun_1,Bl_1,Blo_1,D_1,Do_1,e_g_1,e_T_1
if(ar__2(40:44) .EQ. '') logNo_1 = rNULL__
if(ar__2(59:63) .EQ. '') Blo_1 = rNULL__
if(ar__2(71:75) .EQ. '') Do_1 = rNULL__
c ..............Just test output...........
write(6,3)
+ Ion_2,lambda_2,loggf_2,f_loggf_1,r_loggf_2,Elow_2,logN_1,
+ logNo_1,Abun_1,Bl_1,Blo_1,D_1,Do_1,e_g_1,e_T_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table7.dat' ! Mean abundances of chemical elements in the
* atmosphere of LX Per
C Format for file interpretation
4 format(
+ A1,1X,I2,1X,A5,1X,I2,1X,F5.2,1X,F3.2,1X,F5.2,1X,F3.2,1X,F5.2,
+ 1X,F3.2,1X,F4.2,1X,F3.2,1X,F4.2,1X,F3.2,1X,F4.2,1X,F3.2)
C Effective file loading
open(unit=1,status='old',file=
+'table7.dat')
write(6,*) '....Loading file: table7.dat'
do i__=1,53
read(1,'(A70)')ar__3
read(ar__3,4)
+ C,Z,Ion_3,NL,Abest,e_Abest,Ag_0_2,e_Ag_0_2,A_100K,e_A_100K,
+ Nbest,e_Nbest,Ng_0_2,e_Ng_0_2,N_100K,e_N_100K
if(ar__3(3:4) .EQ. '') Z = iNULL__
if(ar__3(21:23) .EQ. '') e_Abest = rNULL__
if(ar__3(31:33) .EQ. '') e_Ag_0_2 = rNULL__
if(ar__3(41:43) .EQ. '') e_A_100K = rNULL__
if(ar__3(50:52) .EQ. '') e_Nbest = rNULL__
if(ar__3(59:61) .EQ. '') e_Ng_0_2 = rNULL__
if(ar__3(68:70) .EQ. '') e_N_100K = rNULL__
c ..............Just test output...........
write(6,4)
+ C,Z,Ion_3,NL,Abest,e_Abest,Ag_0_2,e_Ag_0_2,A_100K,e_A_100K,
+ Nbest,e_Nbest,Ng_0_2,e_Ng_0_2,N_100K,e_N_100K
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'refs.dat' ! References
C Format for file interpretation
5 format(I2,1X,A19,1X,A21,1X,A73)
C Effective file loading
open(unit=1,status='old',file=
+'refs.dat')
write(6,*) '....Loading file: refs.dat'
do i__=1,15
read(1,'(A118)')ar__4
read(ar__4,5)Ref,BibCode,Aut,Com
c ..............Just test output...........
write(6,5)Ref,BibCode,Aut,Com
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end