Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_AS/112/291 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-08
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+AS/112/291 VRI photometry of wide double stars (Sinachopoulos+ 1995)
*================================================================================
*VRI photometry of wide double stars with A- type primaries.
* Sinachopoulos D., Cuypers J., Lampens P., Oblak E., van Dessel E.L.
* <Astron. Astrophys. Suppl. Ser. 112, 291 (1995)>
* =1995A&AS..112..291S (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1' ! VRI photometry of A-type double stars
integer*4 nr__
parameter (nr__=188) ! Number of records
character*72 ar__ ! Full-size record
character*10 IDS ! IDS (Eq. 1900) code of the double star as
* listed in WDS (Worley and Douglass, 1984)
character*9 HIC ! Hipparcos Input Catalogue or
* Durchmusterung number
character*1 m_IDS ! Multiplicity index on star name
real*4 Vmag ! (mag) V magnitude
real*4 e_Vmag ! (mag) rms uncertainty on V magnitude
real*4 V_R ! (mag) V-R color index
real*4 e_V_R ! (mag) rms uncertainty on V-R
real*4 V_I ! (mag) V-I color index
real*4 e_V_I ! (mag) rms uncertainty on V-I
integer*4 o_Vmag ! Number of measurements
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2' ! Relation between Spectral type and (V-I)_0_
index
integer*4 nr__1
parameter (nr__1=28) ! Number of records
character*18 ar__1 ! Full-size record
character*3 Sp ! Spectral type
real*4 V_Imin ! (mag) Minimun V-I color index
real*4 V_Imax ! (mag) ? Maximun V-I color index
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3' ! Computed versus literature spectral types of
34 primaries
integer*4 nr__2
parameter (nr__2=34) ! Number of records
character*28 ar__2 ! Full-size record
character*10 IDS_1 ! IDS (Eq. 1900) name
character*3 SpCal ! Calculated spectral type
character*12 SpLit ! Literature spectral type
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4' ! Astrophysical parameters
integer*4 nr__3
parameter (nr__3=93) ! Number of records
character*86 ar__3 ! Full-size record
character*10 IDS_2 ! IDS (Eq. 1900) name
character*12 ASp ! A component spectral type
character*5 BSp ! B component spectral type
real*4 rho ! (arcsec) Angular separation
integer*4 Dist ! (pc) ? Minimum value of the distance
integer*4 e_Dist ! (pc) ? rms uncertainty on Dist
real*4 Tan_Sep ! (10+3AU) ? Tangential separation component
real*4 e_Tan_Sep ! (10+3AU) ? rms uncertainty on tangential separation
integer*4 P ! (10+3yr) ? Minimum of the orbital period
integer*4 e_P ! (10+3yr) ? rms uncertainty on P
real*4 Vorb ! (km/s) ? Maximum of orbital velocity
real*4 e_Vorb ! (km/s) ? rms uncertainty on Vorb
C=============================================================================
C Loading file 'table1' ! VRI photometry of A-type double stars
C Format for file interpretation
1 format(
+ 1X,A10,1X,A9,3X,A1,5X,F6.3,1X,F4.3,1X,F6.3,1X,F4.3,2X,F6.3,1X,
+ F4.3,4X,I1)
C Effective file loading
open(unit=1,status='old',file=
+'table1')
write(6,*) '....Loading file: table1'
do i__=1,188
read(1,'(A72)')ar__
read(ar__,1)
+ IDS,HIC,m_IDS,Vmag,e_Vmag,V_R,e_V_R,V_I,e_V_I,o_Vmag
c ..............Just test output...........
write(6,1)
+ IDS,HIC,m_IDS,Vmag,e_Vmag,V_R,e_V_R,V_I,e_V_I,o_Vmag
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2' ! Relation between Spectral type and (V-I)_0_
* index
C Format for file interpretation
2 format(1X,A3,1X,F6.3,1X,F6.3)
C Effective file loading
open(unit=1,status='old',file=
+'table2')
write(6,*) '....Loading file: table2'
do i__=1,28
read(1,'(A18)')ar__1
read(ar__1,2)Sp,V_Imin,V_Imax
if(ar__1(13:18) .EQ. '') V_Imax = rNULL__
c ..............Just test output...........
write(6,2)Sp,V_Imin,V_Imax
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3' ! Computed versus literature spectral types of
* 34 primaries
C Format for file interpretation
3 format(1X,A10,1X,A3,1X,A12)
C Effective file loading
open(unit=1,status='old',file=
+'table3')
write(6,*) '....Loading file: table3'
do i__=1,34
read(1,'(A28)')ar__2
read(ar__2,3)IDS_1,SpCal,SpLit
c ..............Just test output...........
write(6,3)IDS_1,SpCal,SpLit
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table4' ! Astrophysical parameters
C Format for file interpretation
4 format(
+ 1X,A10,1X,A12,1X,A5,1X,F5.1,1X,I3,4X,I3,1X,F4.1,6X,F3.1,1X,I4,
+ 4X,I3,1X,F4.2,4X,F4.2)
C Effective file loading
open(unit=1,status='old',file=
+'table4')
write(6,*) '....Loading file: table4'
do i__=1,93
read(1,'(A86)')ar__3
read(ar__3,4)
+ IDS_2,ASp,BSp,rho,Dist,e_Dist,Tan_Sep,e_Tan_Sep,P,e_P,Vorb,
+ e_Vorb
if(ar__3(38:40) .EQ. '') Dist = iNULL__
if(ar__3(45:47) .EQ. '') e_Dist = iNULL__
if(ar__3(49:52) .EQ. '') Tan_Sep = rNULL__
if(ar__3(59:61) .EQ. '') e_Tan_Sep = rNULL__
if(ar__3(63:66) .EQ. '') P = iNULL__
if(ar__3(71:73) .EQ. '') e_P = iNULL__
if(ar__3(75:78) .EQ. '') Vorb = rNULL__
if(ar__3(83:86) .EQ. '') e_Vorb = rNULL__
c ..............Just test output...........
write(6,4)
+ IDS_2,ASp,BSp,rho,Dist,e_Dist,Tan_Sep,e_Tan_Sep,P,e_P,Vorb,
+ e_Vorb
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end