FORTRAN Generation
(/./ftp/cats/J/AZh/80/8)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AZh/80/8 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.81 (2015-09-23), on 2026-Jun-08
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/AZh/80/8          Proper motions of open star clusters         (Loktin+, 2003)
*================================================================================
*Proper motions of open star clusters and the rotation rate of the Galaxy.
*    Loktin A.V., Beshenov G.V.
*   <Astron. Zh. 80, 8 (2003)>
*   =2003AZh....80....8L
*   =2003ARep...47....6L
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'catalog.dat'	! Proper motions of open star clusters

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

      character*10  Name       (nr__) ! Cluster name
      real*4        pmRA       (nr__) ! (mas/yr) Proper motion in RA (no cos DE)
      real*4        e_pmRA     (nr__) ! (mas/yr) rms uncertainty of pmRA (*cos DEm)
      real*4        pmDE       (nr__) ! (mas/yr) Proper motion in DE
      real*4        e_pmDE     (nr__) ! (mas/yr) rms uncertainty of pmDE
      integer*4     Nstar      (nr__) ! Number of stars used for proper motion
*                                   computation
      character*2   u_pm       (nr__) ! [:: ] Reliable proper motion -
*                                   : unreliable data, :: very unreliable data
      integer*4     Dist       (nr__) ! (pc) ? Distance from the Sun

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

C  Loading file 'catalog.dat'	! Proper motions of open star clusters

C  Format for file interpretation

    1 format(A10,1X,F6.2,2X,F4.2,4X,F6.2,2X,F4.2,4X,I3,2X,A2,2X,I5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'catalog.dat')
      write(6,*) '....Loading file: catalog.dat'
      do i__=1,390
        read(1,'(A57)')ar__
        read(ar__,1)
     +  Name(i__),pmRA(i__),e_pmRA(i__),pmDE(i__),e_pmDE(i__),
     +  Nstar(i__),u_pm(i__),Dist(i__)
        if(ar__(53:57) .EQ. '') Dist(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),pmRA(i__),e_pmRA(i__),pmDE(i__),e_pmDE(i__),
     +  Nstar(i__),u_pm(i__),Dist(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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