Conversion of standardized ReadMe file for
file /./ftp/cats/J/BaltA/8/325 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.5, on 2013-May-21
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__
ter (rNULL__=-1.e37) ! NULL real number
parameter (iNULL__=-2147483647) ! NULL int number
C=============================================================================
Cat. J/BaltA/8/325 Radial velocities of Pop. II stars (Bartkevicius+ 1999)
*================================================================================
*Radial velocities of Population II Stars
* Bartkevicius A., Sperauskas J.
* <Baltic Astronomy, 8, 325 (1999)>
* =1999BaltA...8..325B
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Weighted mean of radial velocities and other data
integer*4 nr__
parameter (nr__=164) ! Number of records
character*100 ar__ ! Full-size record
real*8 RA_ (nr__) ! (deg) Right Ascension J2000
real*8 Dec (nr__) ! (deg) Declination J2000
integer*4 Seq (nr__) ! Sequential number of star
character*4 Cat (nr__) ! Catalog name (1)
character*10 CatNo (nr__) ! Catalog number
character*1 Mult (nr__) ! Visual binary component code
integer*4 RAh (nr__) ! (h) Right ascension (J2000)
integer*4 RAm (nr__) ! (min) Right ascension (J2000)
integer*4 RAs (nr__) ! (s) Right ascension (J2000)
character*1 DE_ (nr__) ! Declination sign
integer*4 DEd (nr__) ! (deg) Declination (J2000)
integer*4 DEm (nr__) ! (arcmin) Declination (J2000)
integer*4 DEs (nr__) ! (arcsec) Declination (J2000)
real*4 Vmag (nr__) ! (mag) ? Johnson's V magnitude
character*19 SpType (nr__) ! Spectral type and luminosity class
real*4 v_RV_ (nr__) ! (km/s) Mean radial velocity
real*4 e__RV_ (nr__) ! (km/s) Mean error of mean radial velocity
real*4 E (nr__) ! (km/s) ? Standard deviation (external error) of the
* individual radial velocity observations
real*4 E_I (nr__) ! ? External and internal error ratio
integer*4 Nobs (nr__) ! Number of observations
character*1 Notes (nr__) ! [N] N indicates a note in notes.dat file
*Note (1): Catalog names:
* G: Lowell Proper Motion Survey, North (<I/79>) and South (<I/112>)
* BD: Bonner Durchmusterung, Cat. <I/122>
* HD: Henry Draper Catalogue, Cat. <III/135>
* VA: Van altena, 1966AJ.....71..482V, Cl* Melotte 25 VA NNN in Simbad
* GSC: HST Guide Star Catalog, Cat. <I/255>
* HDE: Henry Draper Catalogue Extension, Cat. <III/135>
* LDS: LDS Catalogue, Cat. <I/130>
* PPM: Positions and Proper Motions, North (<I/146>) and South (<I/193>)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Individual radial velocities
integer*4 nr__1
parameter (nr__1=621) ! Number of records
character*43 ar__1 ! Full-size record
integer*4 Seq_1 (nr__1) ! Sequential number of star
character*13 Name (nr__1) ! Star name and visual binary component code
real*8 JD (nr__1) ! (d) Julian date
real*4 RV (nr__1) ! (km/s) Individual radial velocity
real*4 e_RV (nr__1) ! (km/s) Mean error on RV
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'notes.dat' ! Notes to table1
integer*4 nr__2
parameter (nr__2=95) ! Number of records
character*80 ar__2 ! Full-size record
integer*4 Seq_2 (nr__2) ! Sequential number of star
character*14 Name_1 (nr__2) ! Star name and visual binary component code
character*61 Note (nr__2) ! Text of the note (1)
*Note (1): Abbreviations used:
* RV : radial velocity,
* RV0: radial velocity of center of mass of spectroscopic binary (SB),
* D : angular separation of double star components in arcsec,
* dm : magnitude differences of double star components,
* Hp : Hipparcos magnitude Hp differences of double star components, or
* amplitude of variation Hp of variable stars (Var),
* [HIP] : data from Hipparcos Celestia catalog (Cat. <I/239>)
* CPM : Common Proper Motion pair
C=============================================================================
C Loading file 'table1.dat' ! Weighted mean of radial velocities and other data
C Format for file interpretation
1 format(
+ 1X,I3,A4,A10,A1,2X,I2,1X,I2,1X,I2,2X,A1,I2,1X,I2,1X,I2,2X,
+ F5.2,2X,A19,1X,F6.1,3X,F3.1,3X,F3.1,3X,F3.1,2X,I2,2X,A1)
C Effective file loading
open(unit=1,file='table1.dat', status='old')
write(6,*) '....Loading file: table1.dat'
do i__=1,164
read(1,'(A100)')ar__
read(ar__,1)
+ Seq(i__),Cat(i__),CatNo(i__),Mult(i__),RAh(i__),RAm(i__),
+ RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),Vmag(i__),
+ SpType(i__),v_RV_(i__),e__RV_(i__),E(i__),E_I(i__),Nobs(i__),
+ Notes(i__)
if(ar__(43:47) .EQ. '') Vmag(i__) = rNULL__
if(ar__(85:87) .EQ. '') E(i__) = rNULL__
if(ar__(91:93) .EQ. '') E_I(i__) = rNULL__
c Derive coordinates RA_ and Dec from input data
c (RA_ and Dec are set to rNULL_ when unknown)
RA_(i__) = RAh(i__)
if(RAh(i__) .GE. 0) RA_(i__)=RAh(i__)*15.
if(RAm(i__) .GE. 0) RA_(i__)=RA_(i__)+RAm(i__)/4.
if(RAs(i__) .GE. 0) RA_(i__)=RA_(i__)+RAs(i__)/240.
Dec(i__) = DEd(i__)
if(DEm(i__) .GE. 0) Dec(i__)=Dec(i__)+DEm(i__)/60.
if(DEs(i__) .GE. 0) Dec(i__)=Dec(i__)+DEs(i__)/3600.
if(DE_(i__).EQ.'-'.AND.Dec(i__).GE.0) Dec(i__)=-Dec(i__)
c ..............Just test output...........
write(6,1)
+ Seq(i__),Cat(i__),CatNo(i__),Mult(i__),RAh(i__),RAm(i__),
+ RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),Vmag(i__),
+ SpType(i__),v_RV_(i__),e__RV_(i__),E(i__),E_I(i__),Nobs(i__),
+ Notes(i__)
write(6,'(6H Pos: 2F8.4)') RA_(i__),Dec(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Individual radial velocities
C Format for file interpretation
2 format(1X,I3,1X,A13,1X,F11.3,1X,F6.1,2X,F3.1)
C Effective file loading
open(unit=1,file='table2.dat', status='old')
write(6,*) '....Loading file: table2.dat'
do i__=1,621
read(1,'(A43)')ar__1
read(ar__1,2)Seq_1(i__),Name(i__),JD(i__),RV(i__),e_RV(i__)
c ..............Just test output...........
write(6,2)Seq_1(i__),Name(i__),JD(i__),RV(i__),e_RV(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'notes.dat' ! Notes to table1
C Format for file interpretation
3 format(I3,1X,A14,1X,A61)
C Effective file loading
open(unit=1,file='notes.dat', status='old')
write(6,*) '....Loading file: notes.dat'
do i__=1,95
read(1,'(A80)')ar__2
read(ar__2,3)Seq_2(i__),Name_1(i__),Note(i__)
c ..............Just test output...........
write(6,3)Seq_2(i__),Name_1(i__),Note(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end