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

Conversion of standardized ReadMe file for file /./ftp/cats/II/55 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 2024-Apr-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__=--2147483648.)  	! NULL real number
      parameter  (iNULL__=(-2147483647-1))	! NULL int  number
      integer    idig			! testing NULL 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.dat'	! The catalogue of flare stars

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

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

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

C  Loading file 'catalog.dat'	! 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,status='old',file=
     +'catalog.dat')
      write(6,*) '....Loading file: catalog.dat'
      do i__=1,53
        read(1,'(A69)')ar__
        read(ar__,1)
     +  Name(i__),RAdeg(i__),DEdeg(i__),Rem(i__),Period(i__),
     +  x_Period(i__),MajAxis(i__),Remark(i__)
        if(ar__(41:50) .EQ. '') Period(i__) = rNULL__
        if(ar__(54:58) .EQ. '') MajAxis(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),RAdeg(i__),DEdeg(i__),Rem(i__),Period(i__),
     +  x_Period(i__),MajAxis(i__),Remark(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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