Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_AS/100/517 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.5, on 2013-May-23
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__=-1.e37) ! NULL real number
parameter (iNULL__=-2147483647) ! NULL int number
C=============================================================================
Cat. J/A+AS/100/517 CCD Observations of wide visual double stars (van Dessel+ 1993)
*================================================================================
*CCD astrometry and instrumental Delta-V photometry of wide visual double stars.
*III. Differential measurements of often observed southern pairs.
* VAN DESSEL A., SINACHOPOULOS D.
* <Astron. Astrophys. Suppl. Ser. 100, 517 (1993)>
* =1993A&AS..100..517V
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1' ! The observations (epoch: 1992.5)
integer*4 nr__
parameter (nr__=91) ! Number of records
character*80 ar__ ! Full-size record
real*8 RA_ ! (deg) Right Ascension 1992.5, Epoch=1992.5
real*8 Dec ! (deg) Declination 1992.5, Epoch=1992.5
integer*4 RAh ! (h) right ascension J2000
real*4 RAm ! (min) right ascension J2000
character*1 DE_ ! declination sign
integer*4 DEd ! (deg) declination J2000
integer*4 DEm ! (arcmin) declination J2000
character*10 IDS ! IDS19000 code of the double stars as listed
* in WDS (Worley and Douglass, 1984)
character*9 Durchm_ ! Durchmusterung designation of the primaries
character*2 Sp1 ! spectral type of the primary
character*2 Sp2 ! spectral type of the component B when known
real*4 mA ! (mag) primary magnitude taken from the WDS
real*4 Delta_V ! (mag) observed magnitude difference Delta-V
real*4 e_Delta_V ! (mag) rms uncertainty on Delta-V
real*4 rho ! (arcsec) angular separation
real*4 e_rho ! (arcsec) rms uncertainty on rho
real*4 theta ! (deg) position angle
real*4 e_theta ! (deg) rms uncertainty on theta
C=============================================================================
C Loading file 'table1' ! The observations (epoch: 1992.5)
C Format for file interpretation
1 format(
+ 1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,A10,1X,A9,4X,A2,A2,1X,F4.1,1X,
+ F4.2,1X,F3.2,1X,F5.2,1X,F3.2,1X,F6.2,1X,F4.2)
C Effective file loading
open(unit=1,file='table1', status='old')
write(6,*) '....Loading file: table1'
do i__=1,91
read(1,'(A80)')ar__
read(ar__,1)
+ RAh,RAm,DE_,DEd,DEm,IDS,Durchm_,Sp1,Sp2,mA,Delta_V,e_Delta_V,
+ rho,e_rho,theta,e_theta
c Derive coordinates RA_ and Dec from input data
c (RA_ and Dec are set to rNULL_ when unknown)
RA_ = RAh
if(RAh .GE. 0) RA_=RAh*15.
if(RAm .GE. 0) RA_=RA_+RAm/4.
Dec = DEd
if(DEm .GE. 0) Dec=Dec+DEm/60.
if(DE_.EQ.'-'.AND.Dec.GE.0) Dec=-Dec
c ..............Just test output...........
write(6,1)
+ RAh,RAm,DE_,DEd,DEm,IDS,Durchm_,Sp1,Sp2,mA,Delta_V,e_Delta_V,
+ rho,e_rho,theta,e_theta
write(6,'(6H Pos: 2F8.4)') RA_,Dec
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end