Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/616/L15 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-Aug-11
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/616/L15 Parallaxes and Proper Motions of OB stars (Xu+, 2018)
*================================================================================
*A comparison of local spiral structure from Gaia DR2 and VLBI maser parallaxes.
* Xu Y., Bian S.B., Reid M.J., Li J.J., Zhang B., Yan Q.Z., Dame T.M.,
* Menten K.M., He Z.H., Liao S.L., Tang Z.H.
* <Astron. Astrophys. 616, L15 (2018)>
* =2018A&A...616L..15X (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Parallaxes and proper motions of OB stars
integer*4 nr__
parameter (nr__=5772) ! Number of records
character*172 ar__ ! Full-size record
C Position composed of: RAdeg DEdeg (Epoch=2015.5)
character*9 Name ! Source Name (Name)
integer*8 Source ! Unique source identifier with Gaia DR2
* (DR2_source_id)
real*8 RAdeg ! (deg) Right ascension (ICRS, epoch 2015.5) (ra)
real*8 DEdeg ! (deg) Declination (ICRS, epoch 2015.5) (dec)
real*8 plx ! (mas) ? Absolute stellar parallax (parallax)
real*8 e_plx ! (mas) ? Standard error of the stellar parallax
* (parallax_error)
real*8 pmRA ! (mas) ? Proper motion in right ascension direction
* (pmra)
real*8 e_pmRA ! (mas) ? Standard error of pmra (pmra_error)
real*8 pmDE ! (mas) ? Proper motion in declination direction
* (pmdec)
real*8 e_pmDE ! (mas) ? Standard error of pmdec (pmdec_error)
real*4 vlsr ! (km/s) ? LSR velocity (vlsr)
real*4 e_vlsr ! (km/s) ? Standard error of vlsr (velocity_error)
character*22 SpType ! Spectral type (spectral_type)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Parallaxes and Proper Motions of O stars
integer*4 nr__1
parameter (nr__1=284) ! Number of records
character*172 ar__1 ! Full-size record
C Position composed of: RAdeg DEdeg (Epoch=2015.5)
character*9 Name_1 ! Source Name (Name)
integer*8 Source_1 ! Unique source identifier with Gaia DR2
* (DR2_source_id)
real*8 RAdeg_1 ! (deg) Right ascension (ICRS, epoch 2015.5) (ra)
real*8 DEdeg_1 ! (deg) Declination (ICRS, epoch 2015.5) (dec)
real*8 plx_1 ! (mas) ? Absolute stellar parallax (parallax)
real*8 e_plx_1 ! (mas) ? Standard error of the stellar parallax
* (parallax_error)
real*8 pmRA_1 ! (mas) ? Proper motion in right ascension direction
* (pmra)
real*8 e_pmRA_1 ! (mas) ? Standard error of pmra (pmra_error)
real*8 pmDE_1 ! (mas) ? Proper motion in declination direction
* (pmdec)
real*8 e_pmDE_1 ! (mas) ? Standard error of pmdec (pmdec_error)
real*4 vlsr_1 ! (km/s) ? LSR velocity (vlsr)
real*4 e_vlsr_1 ! (km/s) ? Standard error of vlsr (velocity_error)
character*22 SpType_1 ! Spectral type (spectral_type)
C=============================================================================
C Loading file 'table1.dat' ! Parallaxes and proper motions of OB stars
C Format for file interpretation
1 format(
+ A9,1X,I19,1X,F13.9,1X,F13.9,1X,F13.9,1X,F11.9,1X,F14.9,1X,
+ F11.9,1X,F13.9,1X,F11.9,1X,F6.1,1X,F5.1,1X,A22)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,5772
read(1,'(A172)')ar__
read(ar__,1)
+ Name,Source,RAdeg,DEdeg,plx,e_plx,pmRA,e_pmRA,pmDE,e_pmDE,
+ vlsr,e_vlsr,SpType
if(ar__(59:71) .EQ. '') plx = rNULL__
if(ar__(73:83) .EQ. '') e_plx = rNULL__
if(ar__(85:98) .EQ. '') pmRA = rNULL__
if(ar__(100:110) .EQ. '') e_pmRA = rNULL__
if(ar__(112:124) .EQ. '') pmDE = rNULL__
if(ar__(126:136) .EQ. '') e_pmDE = rNULL__
if(ar__(138:143) .EQ. '') vlsr = rNULL__
if(ar__(145:149) .EQ. '') e_vlsr = rNULL__
c ..............Just test output...........
write(6,1)
+ Name,Source,RAdeg,DEdeg,plx,e_plx,pmRA,e_pmRA,pmDE,e_pmDE,
+ vlsr,e_vlsr,SpType
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Parallaxes and Proper Motions of O stars
C Format for file interpretation
2 format(
+ A9,1X,I19,1X,F13.9,1X,F13.9,1X,F13.9,1X,F11.9,1X,F14.9,1X,
+ F11.9,1X,F13.9,1X,F11.9,1X,F6.1,1X,F5.1,1X,A22)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,284
read(1,'(A172)')ar__1
read(ar__1,2)
+ Name_1,Source_1,RAdeg_1,DEdeg_1,plx_1,e_plx_1,pmRA_1,e_pmRA_1,
+ pmDE_1,e_pmDE_1,vlsr_1,e_vlsr_1,SpType_1
if(ar__1(59:71) .EQ. '') plx_1 = rNULL__
if(ar__1(73:83) .EQ. '') e_plx_1 = rNULL__
if(ar__1(85:98) .EQ. '') pmRA_1 = rNULL__
if(ar__1(100:110) .EQ. '') e_pmRA_1 = rNULL__
if(ar__1(112:124) .EQ. '') pmDE_1 = rNULL__
if(ar__1(126:136) .EQ. '') e_pmDE_1 = rNULL__
if(ar__1(138:143) .EQ. '') vlsr_1 = rNULL__
if(ar__1(145:149) .EQ. '') e_vlsr_1 = rNULL__
c ..............Just test output...........
write(6,2)
+ Name_1,Source_1,RAdeg_1,DEdeg_1,plx_1,e_plx_1,pmRA_1,e_pmRA_1,
+ pmDE_1,e_pmDE_1,vlsr_1,e_vlsr_1,SpType_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end