Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/155/68 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-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 (nr__) ! APOGEE identifier (2MHHMMSSss+DDMMSSs)
real*8 Teff (nr__) ! (K) [4643.3867/6586.2534] ASPCAP effective
* temperature
real*8 v_Fe_H_ (nr__) ! ([Sun]) [-1.1999342/0.4316364]?=-9999 ASPCAP
* metallicity
integer*4 TeffBr12 (nr__) ! (K) [4710/6378]? Effective temperature from
* Bruntt et al. 2012 (1)
real*4 v_Fe_H_Br12(nr__) ! ([Sun]) [-0.99/0.34]? Metallicity from Bruntt et al.
* 2012 (1)
integer*4 TeffBu12 (nr__) ! (K) [5094/6892]? Effective temperature from
* Bucchave et al. 2012 (1)
real*4 v_Fe_H_Bu12(nr__) ! ([Sun]) [-0.59/0.41]? Metallicity from Bucchave et al.
* 2012 (1)
integer*4 TeffHu13 (nr__) ! (K) [4610/6350]? Effective temperature from
* Huber et al. 2013 (1)
real*4 v_Fe_H_Hu13(nr__) ! ([Sun]) [-0.51/0.4]? Metallicity from Huber et al. 2013
* (1)
integer*4 TeffBr16 (nr__) ! (K) [4605/6350]? Effective temperature from
* Brewer et al. 2016 (1)
real*4 v_Fe_H_Br16(nr__) ! ([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 (nr__1) ! APOGEE identifier (2MHHMMSSss+DDMMSSs)
real*8 Teff_1 (nr__1) ! (K) [4780.9253/6301.9053] ASPCAP effective
* temperature
real*8 v_Fe_H__1 (nr__1) ! ([Sun]) [-1.3181967/0.13570656] ASPCAP metallicity
integer*4 TeffN14 (nr__1) ! (K) [5572/6137]? Effective temperature from
* Nissen et al. 2014 (1)
real*4 v_Fe_H_N14 (nr__1) ! ([Sun]) [-1.41/-0.68]? Metallicity from Nissen et al.
* 2014 (1)
integer*4 TeffS15 (nr__1) ! (K) [5406/6240]? Effective temperature from
* Schuler et al. 2015 (1)
real*4 v_Fe_H_S15 (nr__1) ! ([Sun]) [-0.323/0.126]? Metallicity from Schuler et al.
* 2015 (1)
integer*4 TeffG10 (nr__1) ! (K) [4922/6237]? Effective temperature from
* Ghezzi et al. 2010 (1)
real*4 v_Fe_H_G10 (nr__1) ! ([Sun]) [-0.72/0.19]? Metallicity from Ghezzi et al.
* 2010 (1)
integer*4 TeffA12 (nr__1) ! (K) [5090/5908]? Effective temperature from
* Adibekyan et al. 2012 (1)
real*4 v_Fe_H_A12 (nr__1) ! ([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 (nr__2) ! Kepler Object of Interest identifier
* (KOI-NNNN.NN in Simbad)
integer*4 KIC (nr__2) ! [1429589/10925104] Kepler Input Catalog
* identifier (KIC NNNNNNNN in Simbad)
real*8 Per (nr__2) ! (d) [0.558841234/99.6442783] Orbital period
real*4 E_Per (nr__2) ! (d) [8.2e-08/0.00568] Upper uncertainty in Per
real*4 e_Per_1 (nr__2) ! (d) [8.2e-08/0.00568] Lower uncertainty in Per
real*4 Rp (nr__2) ! (Rgeo) [0.48/16.91] Planet radius
real*4 E_Rp (nr__2) ! (Rgeo) [0.03/5.41] Upper uncertainty in Rp
real*4 e_Rp_1 (nr__2) ! (Rgeo) [0.02/4.29] Lower uncertainty in Rp
real*4 Kpmag (nr__2) ! (mag) [9.582/15.987] Kepler apparent magnitude
character*18 APOGEE_2 (nr__2) ! APOGEE identifier (2MHHMMSSss+DDMMSSs)
real*8 Teff_2 (nr__2) ! (K) Effective temperature
real*8 v_Fe_H__2 (nr__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(i__),Teff(i__),v_Fe_H_(i__),TeffBr12(i__),
+ v_Fe_H_Br12(i__),TeffBu12(i__),v_Fe_H_Bu12(i__),TeffHu13(i__),
+ v_Fe_H_Hu13(i__),TeffBr16(i__),v_Fe_H_Br16(i__)
if(ar__(48:51) .EQ. '') TeffBr12(i__) = iNULL__
if(ar__(53:57) .EQ. '') v_Fe_H_Br12(i__) = rNULL__
if(ar__(59:62) .EQ. '') TeffBu12(i__) = iNULL__
if(ar__(64:68) .EQ. '') v_Fe_H_Bu12(i__) = rNULL__
if(ar__(70:73) .EQ. '') TeffHu13(i__) = iNULL__
if(ar__(75:79) .EQ. '') v_Fe_H_Hu13(i__) = rNULL__
if(ar__(81:84) .EQ. '') TeffBr16(i__) = iNULL__
if(ar__(86:90) .EQ. '') v_Fe_H_Br16(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ APOGEE(i__),Teff(i__),v_Fe_H_(i__),TeffBr12(i__),
+ v_Fe_H_Br12(i__),TeffBu12(i__),v_Fe_H_Bu12(i__),TeffHu13(i__),
+ v_Fe_H_Hu13(i__),TeffBr16(i__),v_Fe_H_Br16(i__)
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(i__),Teff_1(i__),v_Fe_H__1(i__),TeffN14(i__),
+ v_Fe_H_N14(i__),TeffS15(i__),v_Fe_H_S15(i__),TeffG10(i__),
+ v_Fe_H_G10(i__),TeffA12(i__),v_Fe_H_A12(i__)
if(ar__1(43:46) .EQ. '') TeffN14(i__) = iNULL__
if(ar__1(48:52) .EQ. '') v_Fe_H_N14(i__) = rNULL__
if(ar__1(54:57) .EQ. '') TeffS15(i__) = iNULL__
if(ar__1(59:64) .EQ. '') v_Fe_H_S15(i__) = rNULL__
if(ar__1(66:69) .EQ. '') TeffG10(i__) = iNULL__
if(ar__1(71:75) .EQ. '') v_Fe_H_G10(i__) = rNULL__
if(ar__1(77:80) .EQ. '') TeffA12(i__) = iNULL__
if(ar__1(82:86) .EQ. '') v_Fe_H_A12(i__) = rNULL__
c ..............Just test output...........
write(6,2)
+ APOGEE_1(i__),Teff_1(i__),v_Fe_H__1(i__),TeffN14(i__),
+ v_Fe_H_N14(i__),TeffS15(i__),v_Fe_H_S15(i__),TeffG10(i__),
+ v_Fe_H_G10(i__),TeffA12(i__),v_Fe_H_A12(i__)
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(i__),KIC(i__),Per(i__),E_Per(i__),e_Per_1(i__),Rp(i__),
+ E_Rp(i__),e_Rp_1(i__),Kpmag(i__),APOGEE_2(i__),Teff_2(i__),
+ v_Fe_H__2(i__)
c ..............Just test output...........
write(6,3)
+ KOI(i__),KIC(i__),Per(i__),E_Per(i__),e_Per_1(i__),Rp(i__),
+ E_Rp(i__),e_Rp_1(i__),Kpmag(i__),APOGEE_2(i__),Teff_2(i__),
+ v_Fe_H__2(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end