Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/828/47 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-10
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/ApJ/828/47 Radial velocities of the Be star HR 2142 (Peters+, 2016)
*================================================================================
*The hot companion and circumbinary disk of the Be star HR 2142.
* Peters G.J., Wang L., Gies D.R., Grundstrom E.D.
* <Astrophys. J., 828, 47-47 (2016)>
* =2016ApJ...828...47P (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Spectroscopic observations of HR 2142
integer*4 nr__
parameter (nr__=5) ! Number of records
character*65 ar__ ! Full-size record
integer*4 Seq ! [1/5] Observation Code
character*8 Source ! Telescope/Instrument/Satellite used
integer*4 Nsp ! [8/88] Number of spectra
character*1 l_R1 ! Limit flag on R1
integer*4 R1 ! Spectral resolving power, {lambda}/{Delta}{lambda}
* or lower range of R if R2 exists
integer*4 R2 ! ? Upper range of spectral resolving power,
* {lambda}/{Delta}{lambda}
integer*4 lam1 ! (0.1nm) [1150/6563] Lower range of wavelength, in Angstrom
integer*4 lam2 ! (0.1nm) [1950/7140]? Upper range of wavelength, in Angstrom
character*1 u_lam1 ! Uncertainty flag in lam1
integer*4 Date1 ! (yr) Date of first observation in Besselian year
integer*4 Date2 ! (yr) Date of last observation in Besselian year
character*17 Obs ! Observer(s)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Be star radial velocities
integer*4 nr__1
parameter (nr__1=271) ! Number of records
character*40 ar__1 ! Full-size record
real*8 HJD ! (d) Observation date, HJD-2400000
character*1 f_HJD ! [d] d=Discrepant datum flag (1)
real*4 Phase ! Orbital Phase
real*4 HRV ! (km/s) [22.8/65.8] Heliocentric Radial Velocity
real*4 e_HRV ! (km/s) [0.5/36] Uncertainty in HRV, {sigma}
real*4 O_C ! (km/s) [-19.1/16.8] O-C residual
integer*4 ObsID ! [1/55943] Source (2)
*Note (1): Discrepant datum (flag=d) was assigned zero-weight in orbital
* solution.
*Note (2): Source row listed in Table 1 (Column "Seq") or IUE
* short-wavelength-prime (SWP) detector number if greater than 5.
C=============================================================================
C Loading file 'table1.dat' ! Spectroscopic observations of HR 2142
C Format for file interpretation
1 format(
+ I1,1X,A8,1X,I2,1X,A1,I5,1X,I5,1X,I4,1X,I4,A1,1X,I4,1X,I4,1X,
+ A17)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,5
read(1,'(A65)')ar__
read(ar__,1)
+ Seq,Source,Nsp,l_R1,R1,R2,lam1,lam2,u_lam1,Date1,Date2,Obs
if(ar__(22:26) .EQ. '') R2 = iNULL__
if(ar__(33:36) .EQ. '') lam2 = iNULL__
c ..............Just test output...........
write(6,1)
+ Seq,Source,Nsp,l_R1,R1,R2,lam1,lam2,u_lam1,Date1,Date2,Obs
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Be star radial velocities
C Format for file interpretation
2 format(F10.4,1X,A1,1X,F5.3,1X,F4.1,1X,F4.1,1X,F5.1,1X,I5)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,271
read(1,'(A40)')ar__1
read(ar__1,2)HJD,f_HJD,Phase,HRV,e_HRV,O_C,ObsID
c ..............Just test output...........
write(6,2)HJD,f_HJD,Phase,HRV,e_HRV,O_C,ObsID
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end