Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/635/A73 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-Sep-12
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/635/A73 Multiplicity study of transiting exoplanet hosts. I. (Bohn+, 2020)
*================================================================================
*A multiplicity study of transiting exoplanet host stars.
*I. High-contrast imaging with VLT/SPHERE .
* Bohn A.J., Southworth, J., Ginski, C., Kenworthy M.A., Maxted P.F.L.,
* Evans D.F.
* <Astron. Astrophys. 635, A73 (2020)>
* =2020A&A...635A..73B (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'stars.dat' ! List of studied stars
integer*4 nr__
parameter (nr__=23) ! Number of records
character*95 ar__ ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg ! (deg) Right Ascension J2000
real*8 DEdeg ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*8 Star ! Star name
integer*4 RAh ! (h) Right Ascension (J2000)
integer*4 RAm ! (min) Right Ascension (J2000)
real*4 RAs ! (s) Right Ascension (J2000)
character*1 DE_ ! Declination sign (J2000)
integer*4 DEd ! (deg) Declination (J2000)
integer*4 DEm ! (arcmin) Declination (J2000)
real*4 DEs ! (arcsec) Declination (J2000)
integer*4 Nx ! Number of pixels along X-axis
integer*4 Ny ! Number of pixels along Y-axis
integer*4 size ! (Kibyte) Size of FITS file
character*18 FileName ! Name of FITS file, in subdirectory fits
character*31 Title ! Title of the FITS file
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Astrometry, photometry, background probability
and derived masses and effective temperatures
of identified candidate companions
integer*4 nr__1
parameter (nr__1=29) ! Number of records
character*101 ar__1 ! Full-size record
character*8 Star_1 ! Host star name around which the companion
* was detected
integer*4 CCID ! ID of the companion candidate
character*10 Date ! ("date") Date of the observation
real*4 Sep ! (arcsec) Separation of the CC
real*4 e_Sep ! (arcsec) Uncertainty of CC separation
real*4 PA ! (deg) Position angle of the CC
real*4 e_PA ! (deg) Uncertainty of the CC PA
real*4 Kmag ! (mag) K band magnitude of the host star,
* corrected for contribution of the CCs
real*4 DeltaK ! (mag) Magnitude difference between primary and CC
real*4 e_DeltaK ! (mag) Uncertainty in magnitude difference between
* primary and CC
character*1 Status ! [ABC] Status of the CC (1)
real*8 pbg ! Probability that CC is background object
real*4 Mass ! (Msun) ? Mass of the CC (2)
real*4 B_Mass ! (Msun) ? Upper threshold for CC mass
real*4 b_Mass_1 ! (Msun) ? Lower threshold for CC mass
integer*4 Teff ! (K) ? Effective temperature of the CC (2)
integer*4 B_Teff ! (K) ? Upper threshold for CC temperature
integer*4 b_Teff_1 ! (K) ? Lower threshold for CC temperature
*Note (1): Status of the CC as follows:
* C = companion
* B = background
* A = ambiguous
*Note (2): No mass and Teff are provided for background objects.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'det-lim.dat' ! Contrast limits of our data reduction for
all targets
integer*4 nr__2
parameter (nr__2=4815) ! Number of records
character*46 ar__2 ! Full-size record
character*8 Star_2 ! Star name
real*4 Sep_1 ! (arcsec) Projected separation
real*4 DeltaKs ! (mag) Magnitude contrast Ks band
real*4 e_DeltaKs ! (mag) Uncertainty of magnitude contrast Ks band
real*4 Masslimit ! (Mjup) Average mass limit
real*4 E_Masslimit ! (Mjup) Upper mass limit
real*4 e_Masslimit_1 ! (Mjup) Lower mass limit
C=============================================================================
C Loading file 'stars.dat' ! List of studied stars
C Format for file interpretation
1 format(
+ A8,1X,I2,1X,I2,1X,F5.2,A1,I2,1X,I2,1X,F4.1,1X,I3,1X,I3,1X,I4,
+ 1X,A18,1X,A31)
C Effective file loading
open(unit=1,status='old',file=
+'stars.dat')
write(6,*) '....Loading file: stars.dat'
do i__=1,23
read(1,'(A95)')ar__
read(ar__,1)
+ Star,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Nx,Ny,size,FileName,Title
RAdeg = rNULL__
DEdeg = rNULL__
c Derive coordinates RAdeg and DEdeg from input data
c (RAdeg and DEdeg are set to rNULL__ when unknown)
if(RAh .GT. -180) RAdeg=RAh*15.
if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
if(DEd .GE. 0) DEdeg=DEd
if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c ..............Just test output...........
write(6,1)
+ Star,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Nx,Ny,size,FileName,Title
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Astrometry, photometry, background probability
* and derived masses and effective temperatures
* of identified candidate companions
C Format for file interpretation
2 format(
+ A8,1X,I1,1X,A10,1X,F5.3,1X,F5.3,1X,F5.1,1X,F5.1,1X,F5.2,1X,
+ F4.2,1X,F4.2,1X,A1,1X,F7.5,1X,F4.2,1X,F4.2,1X,F4.2,1X,I4,1X,
+ I4,1X,I4)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,29
read(1,'(A101)')ar__1
read(ar__1,2)
+ Star_1,CCID,Date,Sep,e_Sep,PA,e_PA,Kmag,DeltaK,e_DeltaK,
+ Status,pbg,Mass,B_Mass,b_Mass_1,Teff,B_Teff,b_Teff_1
if(ar__1(73:76) .EQ. '') Mass = rNULL__
if(ar__1(78:81) .EQ. '') B_Mass = rNULL__
if(ar__1(83:86) .EQ. '') b_Mass_1 = rNULL__
if(ar__1(88:91) .EQ. '') Teff = iNULL__
if(ar__1(93:96) .EQ. '') B_Teff = iNULL__
if(ar__1(98:101) .EQ. '') b_Teff_1 = iNULL__
c ..............Just test output...........
write(6,2)
+ Star_1,CCID,Date,Sep,e_Sep,PA,e_PA,Kmag,DeltaK,e_DeltaK,
+ Status,pbg,Mass,B_Mass,b_Mass_1,Teff,B_Teff,b_Teff_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'det-lim.dat' ! Contrast limits of our data reduction for
* all targets
C Format for file interpretation
3 format(A8,1X,F4.2,1X,F5.2,1X,F5.2,1X,F6.2,1X,F6.2,1X,F6.2)
C Effective file loading
open(unit=1,status='old',file=
+'det-lim.dat')
write(6,*) '....Loading file: det-lim.dat'
do i__=1,4815
read(1,'(A46)')ar__2
read(ar__2,3)
+ Star_2,Sep_1,DeltaKs,e_DeltaKs,Masslimit,E_Masslimit,
+ e_Masslimit_1
c ..............Just test output...........
write(6,3)
+ Star_2,Sep_1,DeltaKs,e_DeltaKs,Masslimit,E_Masslimit,
+ e_Masslimit_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end