FORTRAN Generation
(/./ftp/cats/J/ApJ/788/30)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/788/30 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 2024-Apr-20
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/ApJ/788/30       Gamma-ray burst flares: X-ray flaring        (Swenson+, 2014)
*================================================================================
*Gamma-ray burst flares: X-ray flaring. II.
*    Swenson C.A., Roming P.W.A.
*   <Astrophys. J., 788, 30 (2014)>
*   =2014ApJ...788...30S    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! X-ray Flares

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

      character*1   FP          ! [Y/N] Flaring Period observed; Y/N
      character*10  Name        ! Source name (GRB YYMMDDA) (1)
      real*4        z           ! ? Redshift
      real*8        Tpeak       ! (s) Flare peak time (2)
      real*8        Tstart      ! (s) Lower limit on flare start time (2)
      real*8        Tstop       ! (s) Upper limit on flare stop time (2)
      real*4        Delt_t      ! The (Tstop-Tstart)/Tpeak ratio
      real*8        FRatio      ! Flux ratio (3)
      real*4        Conf        ! Confidence measure (4)
*Note (1): Flares are listed in chronological order by GRB date,
*          then sorted by confidence.
*Note (2): Our analysis identifies a specific data point in the light curve as
*          being associated with these quantities. The large number of digits
*          reported for Tpeak, Tstart and Tstop are not reflective of our
*          confidence in their determination, but are rather the timestamp
*          associated with the data point identified. We have chosen not to
*          round these values for two reasons: 1) any rounding decision we make
*          would be arbitrary, and 2) the relative effect of the rounding on
*          each value would differ depending on the size of the value. This
*          also prevents the introduction of an arbitrary bias to the data. All
*          times are relative to the time of the initial burst trigger.
*Note (3): Calculated as the flux at the flare peak time divided by the
*          extrapolated flux of the underlying light curve at the same time,
*          normalized using the flux of the underlying light curve, and is a
*          lower limit of the actual peak flux ratio.
*Note (4): Represents the fraction of times the flare was identified during the
*          10000 Monte Carlo simulations. The first column identifies whether
*          the identified feature comes from an overlapping `flaring period'.

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

C  Loading file 'table1.dat'	! X-ray Flares

C  Format for file interpretation

    1 format(
     +  A1,1X,A10,1X,F6.4,1X,F9.2,1X,F9.2,1X,F10.2,1X,F6.2,1X,F7.2,1X,
     +  F6.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,498
        read(1,'(A72)')ar__
        read(ar__,1)FP,Name,z,Tpeak,Tstart,Tstop,Delt_t,FRatio,Conf
        if(ar__(14:19) .EQ. '') z = rNULL__
c    ..............Just test output...........
        write(6,1)FP,Name,z,Tpeak,Tstart,Tstop,Delt_t,FRatio,Conf
c    .......End.of.Just test output...........
      end do
      close(1)

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