Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/609/A8 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-09
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/A+A/609/A8 Close encounters to the Sun in Gaia DR1 (Bailer-Jones, 2018)
*================================================================================
*The completeness-corrected rate of stellar encounters with the Sun from the
*first Gaia data release.
* Bailer-Jones C.A.L.
* <Astron. Astrophys. 609, A8 (2018)>
* =2018A&A...609A...8B (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'encount.dat' ! Perihelion parameters for all objects with a
median perihelion distance below 10pc, in order
of increasing median perihelion distance (table3)
integer*4 nr__
parameter (nr__=646) ! Number of records
character*166 ar__ ! Full-size record
character*12 ID ! Tycho or Hipparcos identifier
integer*4 Cat ! [1/10] Radial velocity catalogue identifier (1)
real*8 tphmed ! (kyr) Median perihelion time
real*8 tphlo ! (kyr) 5% bound on perihelion time distribution
real*8 tphup ! (kyr) 95% bound on perihelion time distribution
real*8 dphmed ! (pc) Median perihelion distance
real*8 dphlo ! (pc) 5% bound on perihelion distance distribution
real*8 dphup ! (pc) 95% bound on perihelion distance distribution
real*8 vphmed ! (km/s) Median perihelion speed
real*8 vphlo ! (km/s) 5% bound on perihelion speed distribution
real*8 vphup ! (km/s) 95% bound on perihelion speed distribution
integer*4 f0_5 ! Probability star approaches within 0.5pc
integer*4 f1_0 ! Probability star approaches within 1.0pc
integer*4 f2_0 ! Probability star approaches within 2.0pc
real*8 plx ! (mas) Parallax
real*8 e_plx ! (mas) Parallax uncertainty (1 sigma)
real*8 pm ! (mas/yr) Proper motion
real*8 e_pm ! (mas/yr) Proper motion uncertainty (1 sigma)
real*8 RV ! (km/s) Radial velocity
real*8 e_RV ! (km/s) Radial velocity uncertainty (1 sigma)
*Note (1): Catalogs as follows:
* 1 = RAVE-DR5, Kunder et al. (2017, Cat. III/279)
* 2 = GCS2001, Casagrande et al. (2011,Cat. J/A+A/530/A138)
* 3 = Pulkovo, Gontcharov, 2006, Cat. III/252
* 4 = Famey et al., 2005, Cat. J/A+A/430/165
* 5 = Duflot et al., 1995, Cat. III/190
* 6 = Barbier-Brossat & Figon, 2000, Cat. III/213
* 7 = Maladora et al., 2000, Cat. III/249
* 8 = Maldonado et al., 2010, Cat. J/A+A/521/A12
* 9 = Fehrenbach et al., 1997, Cat. J/A+AS/124/255
* 10 = APOGEE2, SDSS Collaboration (2016, in prep.)
* 11 = Gaia-ESO-DR2, https://www.gaia-eso.eu
* 12 = GALAH, Martell et al., 2010, Cat. J/MNRAS/465/3203
C=============================================================================
C Loading file 'encount.dat' ! Perihelion parameters for all objects with a
* median perihelion distance below 10pc, in order
* of increasing median perihelion distance (table3)
C Format for file interpretation
1 format(
+ A12,1X,I2,1X,F9.1,1X,F9.1,1X,F9.1,1X,F7.3,1X,F7.3,1X,F7.3,1X,
+ F8.2,1X,F8.2,1X,F8.2,1X,I3,1X,I3,1X,I3,1X,F9.3,1X,F9.3,1X,
+ F9.3,1X,F9.3,1X,F8.2,1X,F8.2)
C Effective file loading
open(unit=1,status='old',file=
+'encount.dat')
write(6,*) '....Loading file: encount.dat'
do i__=1,646
read(1,'(A166)')ar__
read(ar__,1)
+ ID,Cat,tphmed,tphlo,tphup,dphmed,dphlo,dphup,vphmed,vphlo,
+ vphup,f0_5,f1_0,f2_0,plx,e_plx,pm,e_pm,RV,e_RV
c ..............Just test output...........
write(6,1)
+ ID,Cat,tphmed,tphlo,tphup,dphmed,dphlo,dphup,vphmed,vphlo,
+ vphup,f0_5,f1_0,f2_0,plx,e_plx,pm,e_pm,RV,e_RV
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end