FORTRAN Generation
(/./ftp/cats/J/ApJ/687/1201)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/687/1201 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-Mar-29
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/687/1201    SN and LGRB locations in their host galaxies    (Kelly+, 2008)
*================================================================================
*Long {gamma}-ray bursts and type Ic core-collapse supernovae have similar
*locations in hosts.
*    Kelly P.L., Kirshner R.P., Pahre M.
*   <Astrophys. J., 687, 1201-1207 (2008)>
*   =2008ApJ...687.1201K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Measurements at SN locations

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

      character*6   SN          ! Supernova identification (YYYYaa)
      character*9   Type        ! Supernova type (1)
      character*1   u_Type      ! [*:?] Uncertainty on Type (2)
      character*9   Morph       ! Host galaxy morphology
      real*4        FFlux       ! Fractional flux (3)
      real*4        FFnoB       ! ? Fractional flux without bulge (4)
      real*4        g_SB        ! (mag/arcsec2) ? SDSS-DR6 g' band surface brightness
*Note (1): We list data values for SN Ib/Ic and other ambiguously typed SN
*     as well as SN classified from light curves, even though they are not
*     included in plots in the main text. Each SN type plotted in this Paper
*     includes all subtypes and SN with peculiar ("pec") designations. These
*     subtypes include broad-lined ("Ib-bl") for SN Ic and linear ("IIL"),
*     plateau ("IIP"), with narrow emission lines ("IIn"), and the
*     transitional type ("IIb") for SNII.
*Note (2): the asterisk (*) indicates a classification made using a light
*     curve; the other symbols indicate an uncertainty in the classification.
*Note (3): The sum of counts registered in all pixels with fewer counts than
*     measured at the SN location divided by the sum of all counts
*     associated with the galaxy. See section 3.1 for additional details.
*Note (4): For galaxies with bulges, we make an additional calculation of
*     the fractional flux after removing bulge light by replacing pixels
*     values inside a circular region encompassing the bulge-dominated
*     center with the mean of the perimeter pixel values.

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

C  Loading file 'table3.dat'	! Measurements at SN locations

C  Format for file interpretation

    1 format(A6,1X,A9,A1,1X,A9,1X,F4.2,1X,F4.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,263
        read(1,'(A43)')ar__
        read(ar__,1)SN,Type,u_Type,Morph,FFlux,FFnoB,g_SB
        if(ar__(34:37) .EQ. '') FFnoB = rNULL__
        if(ar__(39:43) .EQ. '') g_SB = rNULL__
c    ..............Just test output...........
        write(6,1)SN,Type,u_Type,Morph,FFlux,FFnoB,g_SB
c    .......End.of.Just test output...........
      end do
      close(1)

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