Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/472/675 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 2024-Apr-18 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/MNRAS/472/675 Wide binaries in Tycho-Gaia: search method (Andrews+, 2017) *================================================================================ *Wide binaries in Tycho-Gaia: *Search method and the distribution of orbital separations. * Andrews J.J., Chaname J., Agueros M.A. * <Mon. Not. R. Astron. Soc. 472, 675-699 (2017)> * =2017MNRAS.472..675A (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Catalogue of wide binaries in Tycho-Gaia integer*4 nr__ parameter (nr__=7108) ! Number of records character*197 ar__ ! Full-size record integer*8 Gaia_ID1 ! Gaia ID for primary character*12 TYC_ID1 ! Tycho ID for primary real*8 RAdeg1 ! (deg) Right ascension (ICRS) at epoch 2015.0 * for primary real*8 DEdeg1 ! (deg) Declination (ICRS) at epoch 2015.0 * for primary real*8 pmRA1 ! (mas/yr) Proper motion (RA part) for primary real*8 pmDE1 ! (mas/yr) Proper motion (DE part) for primary real*8 plx1 ! (mas) Parallax for primary integer*8 Gaia_ID2 ! Gaia ID for secondary character*11 TYC_ID2 ! Tycho ID for secondary real*8 RAdeg2 ! (deg) Right ascension (ICRS) at epoch 2015.0 * for secondary real*8 DEdeg2 ! (deg) Declination (ICRS) at epoch 2015.0 * for secondary real*8 pmRA2 ! (mas/yr) Proper motion (RA part) for secondary real*8 pmDE2 ! (mas/yr) Proper motion (DE part) for secondary real*8 plx2 ! (mas) Parallax for secondary real*8 P_logflat ! [0/1] Posterior probability of a genuine * binary using the log-flat prior (1) real*8 P_powerlaw ! [0/1] Posterior probability of a genuine * binary using the power-law prior (1) real*8 Sep ! (arcsec) Angular separation of pair *Note (1): Two separate posterior probabilities for each pair being a genuine * binary are provided, depending on whether they are generated using a * log-flat prior or a power-law prior. In many cases these probabilities * disagree. See Section 7.4 for a discussion about how to use this catalogue. C============================================================================= C Loading file 'table2.dat' ! Catalogue of wide binaries in Tycho-Gaia C Format for file interpretation 1 format( + I19,1X,A12,F13.9,1X,F13.9,1X,F9.3,1X,F8.3,1X,F7.3,1X,I19,1X, + A11,1X,F13.9,1X,F13.9,1X,F9.3,1X,F8.3,1X,F7.3,1X,F7.5,1X,F7.5, + 1X,F7.2) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,7108 read(1,'(A197)')ar__ read(ar__,1) + Gaia_ID1,TYC_ID1,RAdeg1,DEdeg1,pmRA1,pmDE1,plx1,Gaia_ID2, + TYC_ID2,RAdeg2,DEdeg2,pmRA2,pmDE2,plx2,P_logflat,P_powerlaw, + Sep c ..............Just test output........... write(6,1) + Gaia_ID1,TYC_ID1,RAdeg1,DEdeg1,pmRA1,pmDE1,plx1,Gaia_ID2, + TYC_ID2,RAdeg2,DEdeg2,pmRA2,pmDE2,plx2,P_logflat,P_powerlaw, + Sep c .......End.of.Just test output........... end do close(1) C============================================================================= stop end