Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/164/228 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/164/228 Visual Orbits of Binaries with CHARA Array. IV. (Lester+, 2022)
*================================================================================
*Visual Orbits of Spectroscopic Binaries with the CHARA Array.
*IV. HD61859, HD89822, HD109510, and HD191692.
* Lester K.V., Schaefer G.H., Fekel F.C., Gies D.R., Henry T.J., Jao W.-C.,
* Paredes L.A., Hubbard-James H.-S., Farrington C.D., Gordon K.D.,
* Chojnowski S.D., Monnier J.D., Kraus S., Le Bouquin J.-B., Anugu N.,
* Brummelaar T.T., Davies C.L., Gardner T., Labdon A., Lanthermann C.,
* Setterholm B.R.
* <Astron. J., 164, 228 (2022)>
* =2022AJ....164..228L
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Orbital parameters from VB+SB2 solution
integer*4 nr__
parameter (nr__=4) ! Number of records
character*140 ar__ ! Full-size record
character*9 Name ! Identifier
real*8 Per ! (d) [7.33/31.6] Period
real*8 e_Per ! (d) [1e-05/9e-05] Error on Per
real*8 HJD ! (d) [57756/59362] Heliocentric Julian Date;
* HJD-2400000
real*4 e_HJD ! (d) [0.004/0.02] Error on HJD
real*4 e ! [0.19/0.61] Eccentricity
real*4 e_e ! [0.0007/0.002] Error on e
real*4 omega ! (deg) [33.7/303] Argument of periastron ({omega}1)
real*4 e_omega ! (deg) [0.2/0.3] Error on omega
real*4 i ! (deg) [61.4/145] Inclination
real*4 e_i ! (deg) [0.1/4] Error on i
real*4 alpha ! (mas) [1/4.41] Position relative to phase centre
real*4 e_alpha ! (mas) [0.001/0.04] Error on alpha
real*4 Omega_1 ! (deg) [96.9/238] Ascending node
real*4 e_Omega_1 ! (deg) [0.1/4] Error on Omega
real*4 gamma ! (km/s) [-29.3/3.51] gamma velocity
real*4 e_gamma ! (km/s) [0.03/0.08] Error on gamma
real*4 K1 ! (km/s) [38.1/68.2] Velocity semi-amplitude of primary
real*4 e_K1 ! (km/s) [0.04/0.09] Error on K1
real*4 K2 ! (km/s) [52.8/81.3] Velocity semi-amplitude of secondary
real*4 e_K2 ! (km/s) [0.03/0.2] Error on K2
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Astrophysical parameters
integer*4 nr__1
parameter (nr__1=4) ! Number of records
character*180 ar__1 ! Full-size record
character*9 Name_1 ! Identifier
real*4 Mass1 ! (Msun) [1.62/3.57] Primary mass
real*4 e_Mass1 ! (Msun) [0.02/0.3] Error on Mass1
real*4 Mass2 ! (Msun) [1.44/2.74] Secondary mass
real*4 e_Mass2 ! (Msun) [0.02/0.2] Error on Mass2
real*4 Rad1 ! (Rsun) [2.28/4.76] Primary radius
real*4 e_Rad1 ! (Rsun) [0.06/0.2] Error on Rad1
real*4 Rad2 ! (Rsun) [1.51/2.34] Secondary radius
real*4 e_Rad2 ! (Rsun) [0.06/0.07] Error on Rad2
integer*4 Teff1 ! (K) [6390/10300] Effective temperature, primary
integer*4 e_Teff1 ! (K) [100/200] Error on Teff1
integer*4 Teff2 ! (K) [6610/10230] Effective temperature, secondary
integer*4 e_Teff2 ! (K) [140/230] Error on Teff2
real*4 logg1 ! ([-]) [3.64/3.88] Primary surface gravity
real*4 e_logg1 ! ([-]) [0.01/0.05] Error on logg1
real*4 logg2 ! ([-]) [4.09/4.22] Secondary surface gravity
real*4 e_logg2 ! ([-]) [0.02/0.05] Error on logg2
real*4 Lum1 ! (Lsun) [9.6/230] Primary luminosity
real*4 e_Lum1 ! (Lsun) [1.3/23] Error on Lum1
real*4 Lum2 ! (Lsun) [4.1/54] Secondary luminosity
real*4 e_Lum2 ! (Lsun) [0.5/6] Error on Lum2
character*2 l_vsini1 ! Limit flag on vsini1
real*4 vsini1 ! (km/s) [4.2/37.1] Primary rotational velocity
real*4 e_vsini1 ! (km/s) [0.4/2]? Error on vsini1
character*2 l_vsini2 ! Limit flag on vsini2
real*4 vsini2 ! (km/s) [4.2/14.2] Secondary rotational velocity
real*4 e_vsini2 ! (km/s) [0.9/3]? Error on vsini2
real*4 v_z1_zs_ ! ([-]) [-0.05/0.11] log primary redshift divided by
* Sun redshift
real*4 e__z1_zs_ ! ([-]) [0.02/0.2] Error on [z1/zs]
real*4 v_z2_zs_ ! ([-]) [-0.06/0.12] log secondary redshift divided
* by Sun redshift
real*4 e__z2_zs_ ! ([-]) [0.05/0.2] Error on [z2/zs]
real*4 Dist ! (pc) [64.4/111] Distance from this work
real*4 e_Dist ! (pc) [0.3/6.1] Error on Dist
real*4 DistG ! (pc) [-104/112] Distance from Gaia DR3
real*4 e_DistG ! (pc) [0.4/3] Error on DistG
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table5.dat' ! Radial velocity measurements
integer*4 nr__2
parameter (nr__2=294) ! Number of records
character*66 ar__2 ! Full-size record
character*9 Name_2 ! Identifier
integer*4 Obs_Y ! (yr) [2004/2021] Year of observation
character*3 Obs_M ! ("month") Month of observation
integer*4 Obs_D ! (d) Day of observation
real*8 HJD_1 ! (d) [53091/59367] Heliocentric Julian Date;
* HJD-2400000
real*4 RVel1 ! (km/s) [-56.1/81.4] Primary radial velocity
real*4 e_RVel1 ! (km/s) [0.1/2] Error on RVel1
real*8 RVel2 ! (km/s) [-128/78.2] Secondary radial velocity
real*4 e_RVel2 ! (km/s) [0.2/3] Error on RVel2
character*8 Ref ! Reference(s) used; APO, CTIO or Fairborn
C=============================================================================
C Loading file 'table2.dat' ! Orbital parameters from VB+SB2 solution
C Format for file interpretation
1 format(
+ A9,1X,F9.6,1X,F8.6,1X,F9.3,1X,F5.3,1X,F6.4,1X,F6.4,1X,F6.2,1X,
+ F4.2,1X,F6.2,1X,F4.2,1X,F5.3,1X,F5.3,1X,F6.2,1X,F4.2,1X,F6.2,
+ 1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,4
read(1,'(A140)')ar__
read(ar__,1)
+ Name,Per,e_Per,HJD,e_HJD,e,e_e,omega,e_omega,i,e_i,alpha,
+ e_alpha,Omega_1,e_Omega_1,gamma,e_gamma,K1,e_K1,K2,e_K2
c ..............Just test output...........
write(6,1)
+ Name,Per,e_Per,HJD,e_HJD,e,e_e,omega,e_omega,i,e_i,alpha,
+ e_alpha,Omega_1,e_Omega_1,gamma,e_gamma,K1,e_K1,K2,e_K2
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! Astrophysical parameters
C Format for file interpretation
2 format(
+ A9,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F4.2,1X,F4.2,1X,F4.2,1X,
+ F4.2,1X,I5,1X,I3,1X,I5,1X,I3,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,
+ 1X,F5.1,1X,F4.1,1X,F4.1,1X,F3.1,1X,A2,1X,F4.1,1X,F3.1,1X,A2,
+ 1X,F4.1,1X,F3.1,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.1,1X,
+ F3.1,1X,F6.1,1X,F3.1)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,4
read(1,'(A180)')ar__1
read(ar__1,2)
+ Name_1,Mass1,e_Mass1,Mass2,e_Mass2,Rad1,e_Rad1,Rad2,e_Rad2,
+ Teff1,e_Teff1,Teff2,e_Teff2,logg1,e_logg1,logg2,e_logg2,Lum1,
+ e_Lum1,Lum2,e_Lum2,l_vsini1,vsini1,e_vsini1,l_vsini2,vsini2,
+ e_vsini2,v_z1_zs_,e__z1_zs_,v_z2_zs_,e__z2_zs_,Dist,e_Dist,
+ DistG,e_DistG
if(ar__1(123:125) .EQ. '') e_vsini1 = rNULL__
if(ar__1(135:137) .EQ. '') e_vsini2 = rNULL__
c ..............Just test output...........
write(6,2)
+ Name_1,Mass1,e_Mass1,Mass2,e_Mass2,Rad1,e_Rad1,Rad2,e_Rad2,
+ Teff1,e_Teff1,Teff2,e_Teff2,logg1,e_logg1,logg2,e_logg2,Lum1,
+ e_Lum1,Lum2,e_Lum2,l_vsini1,vsini1,e_vsini1,l_vsini2,vsini2,
+ e_vsini2,v_z1_zs_,e__z1_zs_,v_z2_zs_,e__z2_zs_,Dist,e_Dist,
+ DistG,e_DistG
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table5.dat' ! Radial velocity measurements
C Format for file interpretation
3 format(
+ A9,1X,I4,1X,A3,1X,I2,1X,F10.4,1X,F6.2,1X,F4.2,1X,F7.2,1X,F4.2,
+ 1X,A8)
C Effective file loading
open(unit=1,status='old',file=
+'table5.dat')
write(6,*) '....Loading file: table5.dat'
do i__=1,294
read(1,'(A66)')ar__2
read(ar__2,3)
+ Name_2,Obs_Y,Obs_M,Obs_D,HJD_1,RVel1,e_RVel1,RVel2,e_RVel2,Ref
c ..............Just test output...........
write(6,3)
+ Name_2,Obs_Y,Obs_M,Obs_D,HJD_1,RVel1,e_RVel1,RVel2,e_RVel2,Ref
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end