FORTRAN Generation
(/./ftp/cats/J/BaltA/8/325)

Conversion of standardized ReadMe file for file /./ftp/cats/J/BaltA/8/325 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 2024-Apr-16
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/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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg       ! (deg) Right Ascension J2000
      real*8        DEdeg       ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     Seq         ! Sequential number of star
      character*4   Cat         ! Catalog name (1)
      character*10  CatNo       ! Catalog number
      character*1   Mult        ! Visual binary component code
      integer*4     RAh         ! (h) Right ascension (J2000)
      integer*4     RAm         ! (min) Right ascension (J2000)
      integer*4     RAs         ! (s) Right ascension (J2000)
      character*1   DE_         ! Declination sign
      integer*4     DEd         ! (deg) Declination (J2000)
      integer*4     DEm         ! (arcmin) Declination (J2000)
      integer*4     DEs         ! (arcsec) Declination (J2000)
      real*4        Vmag        ! (mag) ? Johnson's V magnitude
      character*19  SpType      ! Spectral type and luminosity class
      real*4        v_RV_       ! (km/s) Mean radial velocity
      real*4        e__RV_      ! (km/s) Mean error of mean radial velocity
      real*4        E           ! (km/s) ? Standard deviation (external error) of the
*                                     individual radial velocity observations
      real*4        E_I         ! ? External and internal error ratio
      integer*4     Nobs        ! Number of observations
      character*1   Notes       ! [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       ! Sequential number of star
      character*13  Name        ! Star name and visual binary component code
      real*8        JD          ! (d) Julian date
      real*4        RV          ! (km/s) Individual radial velocity
      real*4        e_RV        ! (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       ! Sequential number of star
      character*14  Name_1      ! Star name and visual binary component code
      character*61  Note        ! 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,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,164
        read(1,'(A100)')ar__
        read(ar__,1)
     +  Seq,Cat,CatNo,Mult,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,SpType,
     +  v_RV_,e__RV_,E,E_I,Nobs,Notes
        if(ar__(43:47) .EQ. '') Vmag = rNULL__
        if(ar__(85:87) .EQ. '') E = rNULL__
        if(ar__(91:93) .EQ. '') E_I = rNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  Seq,Cat,CatNo,Mult,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,SpType,
     +  v_RV_,e__RV_,E,E_I,Nobs,Notes
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
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,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,621
        read(1,'(A43)')ar__1
        read(ar__1,2)Seq_1,Name,JD,RV,e_RV
c    ..............Just test output...........
        write(6,2)Seq_1,Name,JD,RV,e_RV
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,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,95
        read(1,'(A80)')ar__2
        read(ar__2,3)Seq_2,Name_1,Note
c    ..............Just test output...........
        write(6,3)Seq_2,Name_1,Note
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================
      stop
      end