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

Conversion of standardized ReadMe file for file /./ftp/cats/II/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.5, on 2013-May-19
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__=-1.e37)     	! NULL real number
      parameter  (iNULL__=-2147483647)	! NULL int  number

C=============================================================================
Cat. II/55               Gershberg Flare Star Catalogue   (Shakhovskaya 1971)
*================================================================================
*Gershberg Flare Star Catalogue
*     Shakhovskaya N.I.
*    <Veroeff. Bamberg IX, 138 (1971)>
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'catalog'	! The catalogue of flare stars

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

      character*10  Name        ! Designation of the object
      real*8        RAdeg       ! (deg) Right ascension B1950 (degrees)
      real*8        DEdeg       ! (deg) Declination B1950 (degrees)
      character*8   Rem         ! Remark (Multiplicity, other id., etc.)
      real*8        Period      ! []? Period (for binaries) in days or
*                                    years depending on x_Period
      character*1   x_Period    ! [YD] Units in which Period is expressed
      real*4        MajAxis     ! (arcsec) []?  Semi-major axis (for binaries)
      character*9   Remark      ! Other designation (Gliese number) or comment

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

C  Loading file 'catalog'	! The catalogue of flare stars

C  Format for file interpretation

    1 format(A10,1X,F8.4,1X,F8.4,2X,A8,2X,F10.5,A1,2X,F5.2,2X,A9)

C  Effective file loading

      open(unit=1,file='catalog', status='old')
      write(6,*) '....Loading file: catalog'
      do i__=1,53
        read(1,'(A69)')ar__
        read(ar__,1)
     +  Name,RAdeg,DEdeg,Rem,Period,x_Period,MajAxis,Remark
        if(ar__(41:50) .EQ. '') Period = rNULL__
        if(ar__(54:58) .EQ. '') MajAxis = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name,RAdeg,DEdeg,Rem,Period,x_Period,MajAxis,Remark
c    .......End.of.Just test output...........
      end do
      close(1)

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