Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/155/68 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-Apr-13
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/155/68 Elemental abundances of KOIs in APOGEE. I. (Wilson+, 2018)
*================================================================================
*Elemental abundances of Kepler Objects of Interest in APOGEE.
*I. Two distinct orbital period regimes inferred from host star iron abundances.
* Wilson R.F., Teske J., Majewski S.R., Cunha K., Smith V., Souto D.,
* Bender C., Mahadevan S., Troup N., Prieto C.A., Stassun K.G.,
* Skrutskie M.F., Almeida A., Garcia-Hernandez D.A., Zamora O., Brinkmann J.
* <Astron. J., 155, 68 (2018)>
* =2018AJ....155...68W (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Spectral Synthesis Study Comparison Parameters
integer*4 nr__
parameter (nr__=205) ! Number of records
character*90 ar__ ! Full-size record
character*18 APOGEE ! APOGEE identifier (2MHHMMSSss+DDMMSSs)
real*8 Teff ! (K) [4643.3867/6586.2534] ASPCAP effective
* temperature
real*8 v_Fe_H_ ! ([Sun]) [-1.1999342/0.4316364]?=-9999 ASPCAP
* metallicity
integer*4 TeffBr12 ! (K) [4710/6378]? Effective temperature from
* Bruntt et al. 2012 (1)
real*4 v_Fe_H_Br12 ! ([Sun]) [-0.99/0.34]? Metallicity from Bruntt et al.
* 2012 (1)
integer*4 TeffBu12 ! (K) [5094/6892]? Effective temperature from
* Bucchave et al. 2012 (1)
real*4 v_Fe_H_Bu12 ! ([Sun]) [-0.59/0.41]? Metallicity from Bucchave et al.
* 2012 (1)
integer*4 TeffHu13 ! (K) [4610/6350]? Effective temperature from
* Huber et al. 2013 (1)
real*4 v_Fe_H_Hu13 ! ([Sun]) [-0.51/0.4]? Metallicity from Huber et al. 2013
* (1)
integer*4 TeffBr16 ! (K) [4605/6350]? Effective temperature from
* Brewer et al. 2016 (1)
real*4 v_Fe_H_Br16 ! ([Sun]) [-0.94/0.44]? Metallicity from Brewer et al.
* 2016 (1)
*Note (1): References cited in explanations:
* Bruntt et al. (2012, J/MNRAS/423/122);
* Bucchave et al. (2012, J/other/Nat/486.375);
* Huber et al. (2013, J/ApJ/767/127);
* Brewer et al. (2016, J/ApJS/225/32).
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Equivalent Width Study Comparison Parameters
integer*4 nr__1
parameter (nr__1=24) ! Number of records
character*86 ar__1 ! Full-size record
character*18 APOGEE_1 ! APOGEE identifier (2MHHMMSSss+DDMMSSs)
real*8 Teff_1 ! (K) [4780.9253/6301.9053] ASPCAP effective
* temperature
real*8 v_Fe_H__1 ! ([Sun]) [-1.3181967/0.13570656] ASPCAP metallicity
integer*4 TeffN14 ! (K) [5572/6137]? Effective temperature from
* Nissen et al. 2014 (1)
real*4 v_Fe_H_N14 ! ([Sun]) [-1.41/-0.68]? Metallicity from Nissen et al.
* 2014 (1)
integer*4 TeffS15 ! (K) [5406/6240]? Effective temperature from
* Schuler et al. 2015 (1)
real*4 v_Fe_H_S15 ! ([Sun]) [-0.323/0.126]? Metallicity from Schuler et al.
* 2015 (1)
integer*4 TeffG10 ! (K) [4922/6237]? Effective temperature from
* Ghezzi et al. 2010 (1)
real*4 v_Fe_H_G10 ! ([Sun]) [-0.72/0.19]? Metallicity from Ghezzi et al.
* 2010 (1)
integer*4 TeffA12 ! (K) [5090/5908]? Effective temperature from
* Adibekyan et al. 2012 (1)
real*4 v_Fe_H_A12 ! ([Sun]) [-0.82/-0.36]? Metallicity from Adibekyan et al.
* 2012 (1)
*Note (1): References cited in explanations:
* Nissen et al. (2014, J/A+A/568/A25);
* Schuler et al. (2015, J/ApJ/815/5);
* Ghezzi et al. (2010ApJ...725..721G);
* Adibekyan et al. (2012, J/A+A/545/A32).
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Parameters of Selected Sample
integer*4 nr__2
parameter (nr__2=281) ! Number of records
character*126 ar__2 ! Full-size record
character*9 KOI ! Kepler Object of Interest identifier
* (KOI-NNNN.NN in Simbad)
integer*4 KIC ! [1429589/10925104] Kepler Input Catalog
* identifier (KIC NNNNNNNN in Simbad)
real*8 Per ! (d) [0.558841234/99.6442783] Orbital period
real*4 E_Per ! (d) [8.2e-08/0.00568] Upper uncertainty in Per
real*4 e_Per_1 ! (d) [8.2e-08/0.00568] Lower uncertainty in Per
real*4 Rp ! (Rgeo) [0.48/16.91] Planet radius
real*4 E_Rp ! (Rgeo) [0.03/5.41] Upper uncertainty in Rp
real*4 e_Rp_1 ! (Rgeo) [0.02/4.29] Lower uncertainty in Rp
real*4 Kpmag ! (mag) [9.582/15.987] Kepler apparent magnitude
character*18 APOGEE_2 ! APOGEE identifier (2MHHMMSSss+DDMMSSs)
real*8 Teff_2 ! (K) Effective temperature
real*8 v_Fe_H__2 ! ([Sun]) Metallicity
C=============================================================================
C Loading file 'table1.dat' ! Spectral Synthesis Study Comparison Parameters
C Format for file interpretation
1 format(
+ A18,1X,F9.4,1X,F17.11,1X,I4,1X,F5.2,1X,I4,1X,F5.2,1X,I4,1X,
+ F5.2,1X,I4,1X,F5.2)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,205
read(1,'(A90)')ar__
read(ar__,1)
+ APOGEE,Teff,v_Fe_H_,TeffBr12,v_Fe_H_Br12,TeffBu12,v_Fe_H_Bu12,
+ TeffHu13,v_Fe_H_Hu13,TeffBr16,v_Fe_H_Br16
if(ar__(48:51) .EQ. '') TeffBr12 = iNULL__
if(ar__(53:57) .EQ. '') v_Fe_H_Br12 = rNULL__
if(ar__(59:62) .EQ. '') TeffBu12 = iNULL__
if(ar__(64:68) .EQ. '') v_Fe_H_Bu12 = rNULL__
if(ar__(70:73) .EQ. '') TeffHu13 = iNULL__
if(ar__(75:79) .EQ. '') v_Fe_H_Hu13 = rNULL__
if(ar__(81:84) .EQ. '') TeffBr16 = iNULL__
if(ar__(86:90) .EQ. '') v_Fe_H_Br16 = rNULL__
c ..............Just test output...........
write(6,1)
+ APOGEE,Teff,v_Fe_H_,TeffBr12,v_Fe_H_Br12,TeffBu12,v_Fe_H_Bu12,
+ TeffHu13,v_Fe_H_Hu13,TeffBr16,v_Fe_H_Br16
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Equivalent Width Study Comparison Parameters
C Format for file interpretation
2 format(
+ A18,1X,F9.4,1X,F12.9,1X,I4,1X,F5.2,1X,I4,1X,F6.3,1X,I4,1X,
+ F5.2,1X,I4,1X,F5.2)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,24
read(1,'(A86)')ar__1
read(ar__1,2)
+ APOGEE_1,Teff_1,v_Fe_H__1,TeffN14,v_Fe_H_N14,TeffS15,
+ v_Fe_H_S15,TeffG10,v_Fe_H_G10,TeffA12,v_Fe_H_A12
if(ar__1(43:46) .EQ. '') TeffN14 = iNULL__
if(ar__1(48:52) .EQ. '') v_Fe_H_N14 = rNULL__
if(ar__1(54:57) .EQ. '') TeffS15 = iNULL__
if(ar__1(59:64) .EQ. '') v_Fe_H_S15 = rNULL__
if(ar__1(66:69) .EQ. '') TeffG10 = iNULL__
if(ar__1(71:75) .EQ. '') v_Fe_H_G10 = rNULL__
if(ar__1(77:80) .EQ. '') TeffA12 = iNULL__
if(ar__1(82:86) .EQ. '') v_Fe_H_A12 = rNULL__
c ..............Just test output...........
write(6,2)
+ APOGEE_1,Teff_1,v_Fe_H__1,TeffN14,v_Fe_H_N14,TeffS15,
+ v_Fe_H_S15,TeffG10,v_Fe_H_G10,TeffA12,v_Fe_H_A12
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! Parameters of Selected Sample
C Format for file interpretation
3 format(
+ A9,1X,I8,1X,F12.9,1X,E9.3,1X,E9.3,1X,F5.2,1X,F4.2,1X,F4.2,1X,
+ F6.3,1X,A18,1X,F13.8,1X,F18.15)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,281
read(1,'(A126)')ar__2
read(ar__2,3)
+ KOI,KIC,Per,E_Per,e_Per_1,Rp,E_Rp,e_Rp_1,Kpmag,APOGEE_2,
+ Teff_2,v_Fe_H__2
c ..............Just test output...........
write(6,3)
+ KOI,KIC,Per,E_Per,e_Per_1,Rp,E_Rp,e_Rp_1,Kpmag,APOGEE_2,
+ Teff_2,v_Fe_H__2
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end