FORTRAN Generation
(/./ftp/cats/I/14)

Conversion of standardized ReadMe file for file /./ftp/cats/I/14 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-Oct-05
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. I/14        Proper Motions of 1160 Late-Type Stars (Fogh Olsen, 1970)
*================================================================================
*Proper Motions of 1160 Late-Type Stars
*    Olsen F.H.J.
*   <Astron. Astrophys. Suppl. Ser., 2, 69 (1970)>
*   =1970A&AS....2...69O
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'pmlate.dat'	! Proper motion data

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

      integer*4     ID          ! *Identification of the star
      real*8        pmRA        ! (0.01s/yr) ? Centennial Proper Motion RA
      real*8        pmDE        ! (10mas/yr) ? Centennial Proper Motion Dec
      integer*4     RV          ! (km/s) ? Radial Velocity
*Note on ID:
*   Henry Draper or Bonner Durchmusterung number

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

C  Loading file 'pmlate.dat'	! Proper motion data

C  Format for file interpretation

    1 format(I6,5X,F7.3,4X,F7.2,6X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'pmlate.dat')
      write(6,*) '....Loading file: pmlate.dat'
      do i__=1,1160
        read(1,'(A39)')ar__
        read(ar__,1)ID,pmRA,pmDE,RV
        if(ar__(12:18) .EQ. '') pmRA = rNULL__
        if(ar__(23:29) .EQ. '') pmDE = rNULL__
        if(ar__(36:39) .EQ. '') RV = iNULL__
c    ..............Just test output...........
        write(6,1)ID,pmRA,pmDE,RV
c    .......End.of.Just test output...........
      end do
      close(1)

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