Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/161/128 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-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/AJ/161/128 Chemical composition of 15 red giant stars with HPF (Sneden+, 2021)
*================================================================================
*Chemical compositions of red giant stars from Habitable Zone Planet Finder
*spectroscopy.
* Sneden C., Afsar M., Bozkurt Z., Topcu G.B., Ozdemir S., Zeimann G.R.,
* Froning C.S., Mahadevan S., Ninan J.P., Bender C.F., Terrien R.,
* Ramsey L.W., Lind K., Mace G.N., Kaplan K.F., Kim H., Hawkins K.,
* Bowler B.P.
* <Astron. J., 161, 128 (2021)>
* =2021AJ....161..128S
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! *Target stars
integer*4 nr__
parameter (nr__=15) ! Number of records
character*74 ar__ ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg (nr__) ! (deg) Right Ascension J2000
real*8 DEdeg (nr__) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*16 Name (nr__) ! Star identification
integer*4 RAh (nr__) ! (h) [0/23] Hour of right ascension (J2000)
integer*4 RAm (nr__) ! (min) Minute of right ascension (J2000)
real*4 RAs (nr__) ! (s) Second of right ascension (J2000)
character*1 DE_ (nr__) ! [+-] Sign of declination (J2000)
integer*4 DEd (nr__) ! (deg) Degree of declination (J2000)
integer*4 DEm (nr__) ! (arcmin) Arcminute of declination (J2000)
real*4 DEs (nr__) ! (arcsec) Arcsecond of declination (J2000)
real*4 Bmag (nr__) ! (mag) [5.71/11.9] B-band magnitude
real*4 Vmag (nr__) ! (mag) [4.89/10.66] V-band magnitude
real*4 Kmag (nr__) ! (mag) [2.97/7.82] K-band magnitude
integer*4 Dist (nr__) ! (pc) [122/1021] Distance, from Gaia DR2
integer*4 Obs_Y (nr__) ! (yr) [2018/2019] Year of observation
integer*4 Obs_M (nr__) ! ("month") Month of observation
integer*4 Obs_D (nr__) ! (d) Day of observation
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! Atomic lines
integer*4 nr__1
parameter (nr__1=134) ! Number of records
character*39 ar__1 ! Full-size record
real*8 lambda (nr__1) ! (0.1nm) [8098/12680] wavelength in air; Angstroms
character*5 Species (nr__1) ! atomic designation
real*4 chi (nr__1) ! (eV) [1.04/8.65] lower level excitation energy
real*4 log_gf (nr__1) ! ([-]) [-2.32/0.69] logarithm of the gf-value (transition
* probability)
character*11 Ref (nr__1) ! Literature source of the gf-value (1)
*Note (1): References as follows
* NISTX+ = the NIST Atomic Spectra Database, http://physics.nist.gov/asd,
* with notation of their assessment of log(gf) quality, e.g., B+;
* LAWLER13 = Lawler+, 2013ApJS..205...11L
* KURUCZ = the Kurucz (2011CaJPh..89..417K, 2018ASPC..515...47K) compendium,
* http://kurucz.harvard.edu/linelists.html
* DENHARTOG14 = Den Hartog+, 2014, J/ApJS/215/23
* RUFFONI14 = Ruffoni+, 2014, J/MNRAS/441/3127
* OBRIAN91 = O'Brian+, 1991JOSAB...8.1185O
* LAWLER15 = Lawler+, 2015, J/ApJS/220/13
* RYDE19 = Ryde+, 2019A&A...631L...3R
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table5.dat' ! *Line abundances
integer*4 nr__2
parameter (nr__2=134) ! Number of records
character*97 ar__2 ! Full-size record
real*8 lambda_1 (nr__2) ! (0.1nm) [8098/12680] wavelength in air; Angstroms
character*5 Species_1 (nr__2) ! atomic designation
real*4 chi_1 (nr__2) ! (eV) [1.04/8.65] lower level excitation energy
real*4 log_gf_1 (nr__2) ! ([-]) [-2.32/0.69] logarithm of the gf-value
* (transition probability)
real*4 Star1 (nr__2) ! [3.18/8.29]? line abundances for HIP 000476
real*4 Star2 (nr__2) ! [3.18/8.11]? line abundances for HIP 019740
real*4 Star3 (nr__2) ! [3.05/8.36]? line abundances for HIP 027091
real*4 Star4 (nr__2) ! [2.75/8.33]? line abundances for HIP 028417
real*4 Star5 (nr__2) ! [2.95/8.16]? line abundances for HIP 029962
real*4 Star6 (nr__2) ! [2.73/8.02]? line abundances for HIP 032431
real*4 Star7 (nr__2) ! [2.85/7.7]? line abundances for HIP 033578
real*4 Star8 (nr__2) ! [3.07/8.65]? line abundances for HIP 057748
real*4 Star9 (nr__2) ! [3.08/8.24]? line abundances for HIP 099789
real*4 Star10 (nr__2) ! [3.06/8.27]? line abundances for HIP 106775
real*4 Star11 (nr__2) ! [3.19/8.3]? line abundances for HIP 113610
real*4 Star12 (nr__2) ! [2.97/8.24]? line abundances for HIP 114809
real*4 Star13 (nr__2) ! [3.17/8.29]? line abundances for HIP 116053
real*4 Star14 (nr__2) ! [3.12/8.4]? line abundances for NGC 6940 MMU 105
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table9.dat' ! HD 122563 line abundances
integer*4 nr__3
parameter (nr__3=37) ! Number of records
character*44 ar__3 ! Full-size record
real*8 lambda_2 (nr__3) ! (0.1nm) [8220/11992] wavelength in air; Angstroms
character*5 Species_2 (nr__3) ! atomic designation
real*4 chi_2 (nr__3) ! (eV) [0.82/7.49] lower level excitation energy
real*4 loggf (nr__3) ! ([-]) [-2.2/0.42] logarithm of the gf-value (transition
* probability)
real*4 loge (nr__3) ! [0.29/5.53] logarithm of the abundance
character*11 Ref_1 (nr__3) ! Literature source of the gf-value (1)
*Note (1): References as follows
* NISTX+ = the NIST Atomic Spectra Database, http://physics.nist.gov/asd,
* with notation of their assessment of log(gf) quality, e.g., B+;
* LAWLER13 = Lawler+, 2013ApJS..205...11L
* KURUCZ = the Kurucz (2011CaJPh..89..417K, 2018ASPC..515...47K) compendium,
* http://kurucz.harvard.edu/linelists.html
* DENHARTOG14 = Den Hartog+, 2014, J/ApJS/215/23
* RUFFONI14 = Ruffoni+, 2014, J/MNRAS/441/3127
* OBRIAN91 = O'Brian+, 1991JOSAB...8.1185O
* LAWLER15 = Lawler+, 2015, J/ApJS/220/13
* RYDE19 = Ryde+, 2019A&A...631L...3R
C=============================================================================
C Loading file 'table1.dat' ! *Target stars
C Format for file interpretation
1 format(
+ A16,1X,I2,1X,I2,1X,F5.2,1X,A1,1X,I2,1X,I2,1X,F4.1,1X,F5.2,1X,
+ F5.2,1X,F4.2,1X,I4,1X,I4,1X,I2,1X,I2)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,15
read(1,'(A74)')ar__
read(ar__,1)
+ Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__),Bmag(i__),Vmag(i__),Kmag(i__),Dist(i__),
+ Obs_Y(i__),Obs_M(i__),Obs_D(i__)
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__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__),Bmag(i__),Vmag(i__),Kmag(i__),Dist(i__),
+ Obs_Y(i__),Obs_M(i__),Obs_D(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 'table4.dat' ! Atomic lines
C Format for file interpretation
2 format(F9.3,1X,A5,1X,F5.3,1X,F5.2,1X,A11)
C Effective file loading
open(unit=1,status='old',file=
+'table4.dat')
write(6,*) '....Loading file: table4.dat'
do i__=1,134
read(1,'(A39)')ar__1
read(ar__1,2)
+ lambda(i__),Species(i__),chi(i__),log_gf(i__),Ref(i__)
c ..............Just test output...........
write(6,2)
+ lambda(i__),Species(i__),chi(i__),log_gf(i__),Ref(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table5.dat' ! *Line abundances
C Format for file interpretation
3 format(
+ F8.2,1X,A5,1X,F5.3,1X,F6.3,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,
+ F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,
+ 1X,F4.2,1X,F4.2)
C Effective file loading
open(unit=1,status='old',file=
+'table5.dat')
write(6,*) '....Loading file: table5.dat'
do i__=1,134
read(1,'(A97)')ar__2
read(ar__2,3)
+ lambda_1(i__),Species_1(i__),chi_1(i__),log_gf_1(i__),
+ Star1(i__),Star2(i__),Star3(i__),Star4(i__),Star5(i__),
+ Star6(i__),Star7(i__),Star8(i__),Star9(i__),Star10(i__),
+ Star11(i__),Star12(i__),Star13(i__),Star14(i__)
if(ar__2(29:32) .EQ. '') Star1(i__) = rNULL__
if(ar__2(34:37) .EQ. '') Star2(i__) = rNULL__
if(ar__2(39:42) .EQ. '') Star3(i__) = rNULL__
if(ar__2(44:47) .EQ. '') Star4(i__) = rNULL__
if(ar__2(49:52) .EQ. '') Star5(i__) = rNULL__
if(ar__2(54:57) .EQ. '') Star6(i__) = rNULL__
if(ar__2(59:62) .EQ. '') Star7(i__) = rNULL__
if(ar__2(64:67) .EQ. '') Star8(i__) = rNULL__
if(ar__2(69:72) .EQ. '') Star9(i__) = rNULL__
if(ar__2(74:77) .EQ. '') Star10(i__) = rNULL__
if(ar__2(79:82) .EQ. '') Star11(i__) = rNULL__
if(ar__2(84:87) .EQ. '') Star12(i__) = rNULL__
if(ar__2(89:92) .EQ. '') Star13(i__) = rNULL__
if(ar__2(94:97) .EQ. '') Star14(i__) = rNULL__
c ..............Just test output...........
write(6,3)
+ lambda_1(i__),Species_1(i__),chi_1(i__),log_gf_1(i__),
+ Star1(i__),Star2(i__),Star3(i__),Star4(i__),Star5(i__),
+ Star6(i__),Star7(i__),Star8(i__),Star9(i__),Star10(i__),
+ Star11(i__),Star12(i__),Star13(i__),Star14(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table9.dat' ! HD 122563 line abundances
C Format for file interpretation
4 format(F9.3,1X,A5,1X,F5.3,1X,F5.2,1X,F4.2,1X,A11)
C Effective file loading
open(unit=1,status='old',file=
+'table9.dat')
write(6,*) '....Loading file: table9.dat'
do i__=1,37
read(1,'(A44)')ar__3
read(ar__3,4)
+ lambda_2(i__),Species_2(i__),chi_2(i__),loggf(i__),loge(i__),
+ Ref_1(i__)
c ..............Just test output...........
write(6,4)
+ lambda_2(i__),Species_2(i__),chi_2(i__),loggf(i__),loge(i__),
+ Ref_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end