Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/389/925 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-May-17
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/389/925 Triple and quadruple stars (Tokovinin, 2008)
*================================================================================
*Comparative statistics and origin of triple and quadruple stars.
* Tokovinin A.
* <Mon. Not. R. Astron. Soc., 389, 925-938 (2008)>
* =2008MNRAS.389..925T
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Triple stars
integer*4 nr__
parameter (nr__=725) ! Number of records
character*57 ar__ ! Full-size record
character*10 WDS ! WDS J2000 name
real*4 logPL ! ([d]) Outer period
real*4 logPS ! ([d]) Inner period
real*4 Mass1 ! (solMass) Primary mass
character*1 n_Mass1 ! [a*mvq] Mass code for Mass1 (G1)
real*4 Mass2 ! (solMass) Secondary mass
character*1 n_Mass2 ! [a*m] Mass code for Mass2 (G1)
real*4 Mass3 ! (solMass) Tertiary mass
character*1 n_Mass3 ! [a*mvq] Mass code for Mass3 (G1)
real*4 plx ! (mas) Parallax
character*1 n_WDS ! [*] * indicates a note in notes.dat file
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Quadruple stars
integer*4 nr__1
parameter (nr__1=81) ! Number of records
character*71 ar__1 ! Full-size record
character*10 WDS_1 ! WDS J2000 name
character*1 f_WDS ! [*] 17146+1423 corrected into 17146+1424
real*4 logPL_1 ! ([d]) Outer period
real*4 logPS1 ! ([d]) Inner period 1
real*4 logPS2 ! ([d]) Inner period 2
real*4 Mass11 ! (solMass) Primary mass 1
character*1 n_Mass11 ! [*a] Mass code for Mass11 (G1)
real*4 Mass12 ! (solMass) Secondary mass 1
character*1 n_Mass12 ! [*asqmv:] Mass code for Mass12 (G1)
real*4 Mass21 ! (solMass) Primary mass 2
character*1 n_Mass21 ! [*a] Mass code for Mass21 (G1)
real*4 Mass22 ! (solMass) Secondary mass 2
character*1 n_Mass22 ! [*asqmv:] Mass code for Mass22 (G1)
real*4 plx_1 ! (mas) Parallax
character*1 n_WDS_1 ! [*] * indicates a note in notes.dat file
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'notes.dat' ! Individual notes
integer*4 nr__2
parameter (nr__2=172) ! Number of records
character*80 ar__2 ! Full-size record
character*10 WDS_2 ! WDS J2000 name
character*69 Note ! Text of the note (1)
*Note (1): Abbreviations used mean:
* SB = spectroscopic binary
* SB1 = single-lined spectroscopic binary
* SB2 = double-lined spectroscopic binary
* VB = visual binary
* EB = eclipsing binary
* CPM = common-proper-motion pair
* PMS = pre-Main Sequence
C=============================================================================
C Loading file 'table2.dat' ! Triple stars
C Format for file interpretation
1 format(
+ A10,2X,F5.2,1X,F5.2,1X,F5.2,1X,A1,1X,F5.2,1X,A1,1X,F5.2,1X,A1,
+ 2X,F6.1,1X,A1)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,725
read(1,'(A57)')ar__
read(ar__,1)
+ WDS,logPL,logPS,Mass1,n_Mass1,Mass2,n_Mass2,Mass3,n_Mass3,plx,
+ n_WDS
c ..............Just test output...........
write(6,1)
+ WDS,logPL,logPS,Mass1,n_Mass1,Mass2,n_Mass2,Mass3,n_Mass3,plx,
+ n_WDS
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! Quadruple stars
C Format for file interpretation
2 format(
+ A10,A1,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,A1,1X,F5.2,1X,A1,1X,
+ F5.2,1X,A1,1X,F5.2,1X,A1,3X,F5.1,1X,A1)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,81
read(1,'(A71)')ar__1
read(ar__1,2)
+ WDS_1,f_WDS,logPL_1,logPS1,logPS2,Mass11,n_Mass11,Mass12,
+ n_Mass12,Mass21,n_Mass21,Mass22,n_Mass22,plx_1,n_WDS_1
c ..............Just test output...........
write(6,2)
+ WDS_1,f_WDS,logPL_1,logPS1,logPS2,Mass11,n_Mass11,Mass12,
+ n_Mass12,Mass21,n_Mass21,Mass22,n_Mass22,plx_1,n_WDS_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'notes.dat' ! Individual notes
C Format for file interpretation
3 format(A10,1X,A69)
C Effective file loading
open(unit=1,status='old',file=
+'notes.dat')
write(6,*) '....Loading file: notes.dat'
do i__=1,172
read(1,'(A80)')ar__2
read(ar__2,3)WDS_2,Note
c ..............Just test output...........
write(6,3)WDS_2,Note
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end