FORTRAN Generation
(/./ftp/cats/V/55)

Conversion of standardized ReadMe file for file /./ftp/cats/V/55 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-20
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. V/55              A catalogue of high-velocity stars   (Roman, 1955)
*================================================================================
*A catalogue of high-velocity stars
*     Roman N.G.
*    <Astrophys. J. Suppl. 2, 195 (Contrib. McDonald Obs. 262) (1955)>
*    =1955ApJS....2..195R
C=============================================================================

C  Internal variables

      integer*4 i__

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'hvcat.dat'	! High-velocity stars catalogue

      integer*4 nr__
      parameter (nr__=633)	! Number of records
      character*163 ar__   	! Full-size record

C  1950.0 position composed of: RArad DErad
      integer*4     RHV         ! RHV catalogue number
      character*1   f_RHV       ! [P] P indicates that the star is from Table 2
      character*10  Name        ! HD/BD Number
      character*1   m_Name      ! Binary star component
      integer*4     MDSP_S1     ! ? MDSP/S1 Catalogue Number
      character*1   n_MDSP_S1   ! [P] P indicates the MDSPS1
      integer*4     RAh         ! (h) Rigth ascension 1900.0
      real*4        RAm         ! (min) Rigth ascension 1900.0
      character*1   DE_         ! Declination sign
      integer*4     DEd         ! (deg) Declination 1900.0
      integer*4     DEm         ! (arcmin) [0,60] Declination 1900.0
      integer*4     RAh2        ! (h) Right ascension 2000.0
      real*4        RAm2        ! (min) Right ascension 2000.0
      character*1   DE_2        ! Declination sign
      integer*4     DEd2        ! (deg) Declination 2000.0
      integer*4     DEm2        ! (arcmin) Declination 2000.0
      real*8        RArad       ! (rad) Right ascension 1950.0
      real*8        DErad       ! (rad) Declination 1950.0
      real*4        GLON        ! (deg) Galactic longitude l
      real*4        GLAT        ! (deg) Galactic latitude b
      character*1   n_Spect     ! [M] M indicates a spectrum from
*                                       Johnson and Morgan (1953ApJ...117..313J)
      character*9   Spect       ! Spectrum
      character*1   n_Vmag      ! [J] J indicates UBV photometry from
*                                       Johnson & Morgan (1953ApJ...117..313J)
      real*4        Vmag        ! (mag) ? V magnitude
      character*1   u_Vmag      ! uncertainty flag on Vmag
      real*4        B_V         ! (mag) ? B-V color-index
      character*1   u_B_V       ! uncertainty flag on B-V
      real*4        U_B         ! (mag) ? U-B color-index
      character*1   u_U_B       ! uncertainty flag on U-B
      real*4        plx         ! (arcsec) ? Trigonometric parallax
      real*4        SpPlx       ! (arcsec) ? Spectroscopic parallax
      integer*4     RV          ! (km/s) ? Radial velocity
      real*4        pmRA        ! (arcsec/yr) ? Proper motion in right ascension
      real*4        pmDE        ! (arcsec/yr) ? Proper motion in declination
      character*10  r_pm        ! Source of the proper motion
      integer*4     Uvel        ! (km/s) ? U component of space motion (L=90.0, B=0)
      integer*4     Vvel        ! (km/s) ? V component of space motion (L=180.0, B=0)
      integer*4     Wvel        ! (km/s) ? W component of space motion (B=0, + to N)
      integer*4     Vel         ! (km/s) ? Total space velocity
      real*4        eps         ! ? Eccentricity of the Newtonian orbit
      real*4        a           ! (kpc) ? Semimajor axis of the orbit
*                                       (99.9 if >99.9)
      character*1   n_Vel       ! [R] R indicates retrograde motion
      character*1   Note        ! [*] * indicates a note in file notes.dat

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'notes.dat'	! Notes

      integer*4 nr__1
      parameter (nr__1=206)	! Number of records
      character*189 ar__1  	! Full-size record

      integer*4     RHV_1       ! RHV catalogue number
      character*1   Note_1      ! [p] p indicates that the star is from Table 2
      character*12  Name_1      ! HD or BD number
      character*170 Rem         ! Remarks

C=============================================================================

C  Loading file 'hvcat.dat'	! High-velocity stars catalogue

C  Format for file interpretation

    1 format(
     +  I3,A1,A10,A1,I4,A1,I2,F4.1,A1,I2,I2,I2,F4.1,A1,I2,I2,F8.6,
     +  F9.6,F6.2,F6.2,A1,A9,A1,F5.2,A1,F5.2,A1,F5.2,A1,F6.3,F6.4,I4,
     +  F6.3,F6.3,A10,I4,I4,I4,I3,F4.2,F4.1,A1,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'hvcat.dat')
      write(6,*) '....Loading file: hvcat.dat'
      do i__=1,633
        read(1,'(A163)')ar__
        read(ar__,1)
     +  RHV,f_RHV,Name,m_Name,MDSP_S1,n_MDSP_S1,RAh,RAm,DE_,DEd,DEm,
     +  RAh2,RAm2,DE_2,DEd2,DEm2,RArad,DErad,GLON,GLAT,n_Spect,Spect,
     +  n_Vmag,Vmag,u_Vmag,B_V,u_B_V,U_B,u_U_B,plx,SpPlx,RV,pmRA,pmDE,
     +  r_pm,Uvel,Vvel,Wvel,Vel,eps,a,n_Vel,Note
        if(ar__(16:19) .EQ. '') MDSP_S1 = iNULL__
        if(ar__(83:87) .EQ. '') Vmag = rNULL__
        if(ar__(89:93) .EQ. '') B_V = rNULL__
        if(ar__(95:99) .EQ. '') U_B = rNULL__
        if(ar__(101:106) .EQ. '') plx = rNULL__
        if(ar__(107:112) .EQ. '') SpPlx = rNULL__
        if(ar__(113:116) .EQ. '') RV = iNULL__
        if(ar__(117:122) .EQ. '') pmRA = rNULL__
        if(ar__(123:128) .EQ. '') pmDE = rNULL__
        if(ar__(139:142) .EQ. '') Uvel = iNULL__
        if(ar__(143:146) .EQ. '') Vvel = iNULL__
        if(ar__(147:150) .EQ. '') Wvel = iNULL__
        if(ar__(151:153) .EQ. '') Vel = iNULL__
        if(ar__(154:157) .EQ. '') eps = rNULL__
        if(ar__(158:161) .EQ. '') a = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  RHV,f_RHV,Name,m_Name,MDSP_S1,n_MDSP_S1,RAh,RAm,DE_,DEd,DEm,
     +  RAh2,RAm2,DE_2,DEd2,DEm2,RArad,DErad,GLON,GLAT,n_Spect,Spect,
     +  n_Vmag,Vmag,u_Vmag,B_V,u_B_V,U_B,u_U_B,plx,SpPlx,RV,pmRA,pmDE,
     +  r_pm,Uvel,Vvel,Wvel,Vel,eps,a,n_Vel,Note
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'notes.dat'	! Notes

C  Format for file interpretation

    2 format(1X,I3,A1,1X,A12,1X,A170)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,206
        read(1,'(A189)')ar__1
        read(ar__1,2)RHV_1,Note_1,Name_1,Rem
c    ..............Just test output...........
        write(6,2)RHV_1,Note_1,Name_1,Rem
c    .......End.of.Just test output...........
      end do
      close(1)

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