Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/616/L15 into FORTRAN code for loading all data files into arrays.
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 (nr__) ! Source Name (Name)
integer*8 Source (nr__) ! Unique source identifier with Gaia DR2
* (DR2_source_id)
real*8 RAdeg (nr__) ! (deg) Right ascension (ICRS, epoch 2015.5) (ra)
real*8 DEdeg (nr__) ! (deg) Declination (ICRS, epoch 2015.5) (dec)
real*8 plx (nr__) ! (mas) ? Absolute stellar parallax (parallax)
real*8 e_plx (nr__) ! (mas) ? Standard error of the stellar parallax
* (parallax_error)
real*8 pmRA (nr__) ! (mas) ? Proper motion in right ascension direction
* (pmra)
real*8 e_pmRA (nr__) ! (mas) ? Standard error of pmra (pmra_error)
real*8 pmDE (nr__) ! (mas) ? Proper motion in declination direction
* (pmdec)
real*8 e_pmDE (nr__) ! (mas) ? Standard error of pmdec (pmdec_error)
real*4 vlsr (nr__) ! (km/s) ? LSR velocity (vlsr)
real*4 e_vlsr (nr__) ! (km/s) ? Standard error of vlsr (velocity_error)
character*22 SpType (nr__) ! 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 (nr__1) ! Source Name (Name)
integer*8 Source_1 (nr__1) ! Unique source identifier with Gaia DR2
* (DR2_source_id)
real*8 RAdeg_1 (nr__1) ! (deg) Right ascension (ICRS, epoch 2015.5) (ra)
real*8 DEdeg_1 (nr__1) ! (deg) Declination (ICRS, epoch 2015.5) (dec)
real*8 plx_1 (nr__1) ! (mas) ? Absolute stellar parallax (parallax)
real*8 e_plx_1 (nr__1) ! (mas) ? Standard error of the stellar parallax
* (parallax_error)
real*8 pmRA_1 (nr__1) ! (mas) ? Proper motion in right ascension direction
* (pmra)
real*8 e_pmRA_1 (nr__1) ! (mas) ? Standard error of pmra (pmra_error)
real*8 pmDE_1 (nr__1) ! (mas) ? Proper motion in declination direction
* (pmdec)
real*8 e_pmDE_1 (nr__1) ! (mas) ? Standard error of pmdec (pmdec_error)
real*4 vlsr_1 (nr__1) ! (km/s) ? LSR velocity (vlsr)
real*4 e_vlsr_1 (nr__1) ! (km/s) ? Standard error of vlsr (velocity_error)
character*22 SpType_1 (nr__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(i__),Source(i__),RAdeg(i__),DEdeg(i__),plx(i__),
+ e_plx(i__),pmRA(i__),e_pmRA(i__),pmDE(i__),e_pmDE(i__),
+ vlsr(i__),e_vlsr(i__),SpType(i__)
if(ar__(59:71) .EQ. '') plx(i__) = rNULL__
if(ar__(73:83) .EQ. '') e_plx(i__) = rNULL__
if(ar__(85:98) .EQ. '') pmRA(i__) = rNULL__
if(ar__(100:110) .EQ. '') e_pmRA(i__) = rNULL__
if(ar__(112:124) .EQ. '') pmDE(i__) = rNULL__
if(ar__(126:136) .EQ. '') e_pmDE(i__) = rNULL__
if(ar__(138:143) .EQ. '') vlsr(i__) = rNULL__
if(ar__(145:149) .EQ. '') e_vlsr(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ Name(i__),Source(i__),RAdeg(i__),DEdeg(i__),plx(i__),
+ e_plx(i__),pmRA(i__),e_pmRA(i__),pmDE(i__),e_pmDE(i__),
+ vlsr(i__),e_vlsr(i__),SpType(i__)
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(i__),Source_1(i__),RAdeg_1(i__),DEdeg_1(i__),
+ plx_1(i__),e_plx_1(i__),pmRA_1(i__),e_pmRA_1(i__),pmDE_1(i__),
+ e_pmDE_1(i__),vlsr_1(i__),e_vlsr_1(i__),SpType_1(i__)
if(ar__1(59:71) .EQ. '') plx_1(i__) = rNULL__
if(ar__1(73:83) .EQ. '') e_plx_1(i__) = rNULL__
if(ar__1(85:98) .EQ. '') pmRA_1(i__) = rNULL__
if(ar__1(100:110) .EQ. '') e_pmRA_1(i__) = rNULL__
if(ar__1(112:124) .EQ. '') pmDE_1(i__) = rNULL__
if(ar__1(126:136) .EQ. '') e_pmDE_1(i__) = rNULL__
if(ar__1(138:143) .EQ. '') vlsr_1(i__) = rNULL__
if(ar__1(145:149) .EQ. '') e_vlsr_1(i__) = rNULL__
c ..............Just test output...........
write(6,2)
+ Name_1(i__),Source_1(i__),RAdeg_1(i__),DEdeg_1(i__),
+ plx_1(i__),e_plx_1(i__),pmRA_1(i__),e_pmRA_1(i__),pmDE_1(i__),
+ e_pmDE_1(i__),vlsr_1(i__),e_vlsr_1(i__),SpType_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end