FORTRAN Generation
(/./ftp/cats/J/A_A/327/1114)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/327/1114 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-17
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/A+A/327/1114      Optical flares on EV Lac in 1967-1977 (Leto+ 1997)
*================================================================================
*Long-term photometric flares patrol (1967-1977) on EV Lac:
*a clear evidence of a longitude concentrated  flaring activity in 1970
*    Leto G., Pagano I., Buemi C.S., Rodono M.
*   <Astron. Astrophys. 327, 1114 (1997)>
*   =1997A&A...327.1114L      (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2'	! Summary of flare data

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

      integer*4     No         (nr__) ! Flare sequential number in year
      character*8   OBSdate    (nr__) ! ("DD/MM/YY") Observation date
      integer*4     UTmaxh     (nr__) ! (h) UT flare maximum (hours)
      integer*4     UTmaxm     (nr__) ! (min) UT flare maximum (minutes)
      character*1   Band       (nr__) ! [UBV] Band
      integer*4     Tel        (nr__) ! (cm) Telescope diameter
      character*2   n_Lmax     (nr__) ! [ pl] pl : partially lost (no data following)
      real*4        Lmax       (nr__) ! (10+21W) ? Luminosity at maximum
      real*4        E          (nr__) ! (10+22J) ? Integrated flare energy
      integer*4     Trise      (nr__) ! (s) ? Rise-time to the highest peak
      integer*4     Duration   (nr__) ! (s) ? Duration of the light decrease to quiescence
      real*4        Dm         (nr__) ! (mag) ? Flare amplitude
      real*4        e_Dm       (nr__) ! (mag) ? Error on flare magnitude

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

C  Loading file 'table2'	! Summary of flare data

C  Format for file interpretation

    1 format(
     +  I2,1X,A8,1X,I2,1X,I2,1X,A1,1X,I2,1X,A2,F5.2,1X,F6.2,1X,I4,1X,
     +  I4,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2')
      write(6,*) '....Loading file: table2'
      do i__=1,355
        read(1,'(A57)')ar__
        read(ar__,1)
     +  No(i__),OBSdate(i__),UTmaxh(i__),UTmaxm(i__),Band(i__),
     +  Tel(i__),n_Lmax(i__),Lmax(i__),E(i__),Trise(i__),
     +  Duration(i__),Dm(i__),e_Dm(i__)
        if(ar__(26:30) .EQ. '') Lmax(i__) = rNULL__
        if(ar__(32:37) .EQ. '') E(i__) = rNULL__
        if(ar__(39:42) .EQ. '') Trise(i__) = iNULL__
        if(ar__(44:47) .EQ. '') Duration(i__) = iNULL__
        if(ar__(49:52) .EQ. '') Dm(i__) = rNULL__
        if(ar__(54:57) .EQ. '') e_Dm(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  No(i__),OBSdate(i__),UTmaxh(i__),UTmaxm(i__),Band(i__),
     +  Tel(i__),n_Lmax(i__),Lmax(i__),E(i__),Trise(i__),
     +  Duration(i__),Dm(i__),e_Dm(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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