FORTRAN Generation
(/./ftp/cats/J/A_A/690/A111)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/690/A111 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 2026-Aug-12
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/690/A111      IceCube neutrinos-blazars association         (Kouch+, 2024)
*================================================================================
*Association of the IceCube neutrinos with blazars in the CGRaBS sample.
*    Kouch P.M., Lindfors E., Hovatta T., Liodakis I., Koljonen K.I.I.,
*    Nilsson K., Kiehlmann S., Max-Moerbeck W., Readhead A.C.S., Reeves R.A.,
*    Pearson T.J., Jormanainen J., Fallah Ramazani V., Graham M.J.
*    <Astron. Astrophys. 690, A111 (2024)>
*    =2024A&A...690A.111K        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'neutrino.dat'	! IceCat1+: high-energy neutrino events used

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

C  J2000 position composed of: RAdeg DEdeg
      character*9   IC          ! IC ID of the high-energy neutrino event (1)
      real*8        MJD         ! (d) Modified Julian Date (MJD) of the arrival time
      real*4        E           ! (TeV) Energy estimate
      real*4        Sness       ! Signalness
      real*4        RAdeg       ! (deg) Right Ascension (J2000)
      real*4        E_RAdeg     ! (deg) Error on Right Ascension (upper value)
      real*4        e_RAdeg_1   ! (deg) Error on Right Ascension (lower value)
      real*4        DEdeg       ! (deg) Declination (J2000)
      real*4        E_DEdeg     ! (deg) Error on Declination (upper value)
      real*4        e_DEdeg_1   ! (deg) Error on Declination (lower value)
      real*8        OmMin       ! (deg+2) Omega in the published error region scenario (2)
      real*8        OmMax       ! (deg+2) Omega in the enlarged error region scenario (2)
      real*8        wMin        ! Weight in the published error region scenario (2)
      real*8        wMax        ! Weight in the enlarged error region scenario (2)
      character*8   Ref         ! IceCube paper reference for the event
*Note (1): The high-energy neutrino events (283) are taken from two references.
*     267 are from Ice-Cat1 (Abbasi et al., 2023ApJS..269...25A,
*      [10.3847/1538-4365/acfa95]).
*     16 are from off-line events analyzed in (Abbasi et al. 2022ApJ...928...50A,
*      [10.3847/1538-4357/ac4d29]).
*     The IC ID of the latter events ends in an 'X'.
*Note (2): The published and enlarged error region scenarios are described in
*          Section 3.3 of the paper.

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

C  Declarations for 'blazars.dat'	! CGRaBS blazars: monitored by OVRO

      integer*4 nr__1
      parameter (nr__1=1157)	! Number of records
      character*104 ar__1  	! Full-size record

C  J2000 position composed of: RAdeg DEdeg
      character*10  Blz         ! CGRaBS blazar name (JHHMM+DDMM)
      real*8        RAdeg_1     ! (deg) Blazar right ascension (J2000)
      real*8        DEdeg_1     ! (deg) Blazar declination (J2000)
      character*1   BZCc        ! Blazar 5BZCat type (1)
      character*3   FGLc        ! Blazar 4FGL class (2)
      character*71  Alias       ! Aliases of the blazar separated by '/'
*Note (1): The 5BZCat blazar types are 'B' for BL Lac objects, 'Q' for Flast
*          Spectrum Radio Quasars, 'U' is for uncertain, and '-' means that the
*          source is not in the 5BZCat catalog.
*Note (2): The 4FGL classes are low-, intermediate-, and high-synchrotron peaked
*          sources, respectively, denoted by LSP, ISP, and HSP. Most of the
*          sources do not have a 4FGL class and are marked with '-'.

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

C  Declarations for 'assoc.dat'	! All blazar-neutrino spatial associations

      integer*4 nr__2
      parameter (nr__2=275)	! Number of records
      character*148 ar__2  	! Full-size record

      character*9   IC_1        ! IC ID of spatially-associated neutrino events
      character*10  Blz_1       ! CGRaBS name of spatially-associated blazars
      real*8        dBN         ! (deg) Distance between the neutrino and blazar
      real*8        dMin        ! (deg) Distance between the neutrino and published
*                                 edge (1)
      real*8        dMax        ! (deg) Distance between the neutrino and enlarged
*                                 edge (1)
      real*8        Sr          ! (Jy) Unweighted mean radio flux density (1)
      real*8        wSrMin      ! (Jy) Weighted mean radio flux density (published) (1)
      real*8        wSrMax      ! (Jy) Weighted mean radio flux density (enlarged) (1)
      character*8   So          ! (mJy) Unweighted mean optical flux density (1)
      character*7   wSoMin      ! (mJy) Weighted mean optical flux density
*                                 (published) (1)
      character*7   wSoMax      ! (mJy) Weighted mean optical flux density
*                                 (enlarged) (1)
      real*8        AIr         ! Unweighted radio activity index (1)
      real*8        wAIrMin     ! Weighted radio activity index (published) (1)
      real*8        wAIrMax     ! Weighted radio activity index (enlarged) (1)
      character*7   AIo         ! Unweighted optical activity index (1)
      character*7   wAIoMin     ! Weighted optical activity index (published) (1)
      character*7   wAIoMax     ! Weighted optical activity index (enlarged) (1)
*Note (1): 'Published' refers to the published error region scenario and
*          'enlarged' refers to the enlarged error region scenario. These are
*          explained in Section 3.3 of the paper.
*          The weighting scheme is explained in Section 3.2 of the paper.

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

C  Loading file 'neutrino.dat'	! IceCat1+: high-energy neutrino events used

C  Format for file interpretation

    1 format(
     +  A9,1X,F11.5,1X,F6.1,1X,F5.3,1X,F6.2,1X,F6.2,1X,F6.2,1X,F6.2,
     +  1X,F4.2,1X,F5.2,1X,F10.5,1X,F10.5,1X,F7.5,1X,F7.5,1X,A8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'neutrino.dat')
      write(6,*) '....Loading file: neutrino.dat'
      do i__=1,283
        read(1,'(A120)')ar__
        read(ar__,1)
     +  IC,MJD,E,Sness,RAdeg,E_RAdeg,e_RAdeg_1,DEdeg,E_DEdeg,
     +  e_DEdeg_1,OmMin,OmMax,wMin,wMax,Ref
c    ..............Just test output...........
        write(6,1)
     +  IC,MJD,E,Sness,RAdeg,E_RAdeg,e_RAdeg_1,DEdeg,E_DEdeg,
     +  e_DEdeg_1,OmMin,OmMax,wMin,wMax,Ref
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'blazars.dat'	! CGRaBS blazars: monitored by OVRO

C  Format for file interpretation

    2 format(A10,1X,F7.3,1X,F7.3,1X,A1,1X,A3,1X,A71)

C  Effective file loading

      open(unit=1,status='old',file=
     +'blazars.dat')
      write(6,*) '....Loading file: blazars.dat'
      do i__=1,1157
        read(1,'(A104)')ar__1
        read(ar__1,2)Blz,RAdeg_1,DEdeg_1,BZCc,FGLc,Alias
c    ..............Just test output...........
        write(6,2)Blz,RAdeg_1,DEdeg_1,BZCc,FGLc,Alias
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'assoc.dat'	! All blazar-neutrino spatial associations

C  Format for file interpretation

    3 format(
     +  A9,1X,A10,1X,F9.5,1X,F9.5,1X,F9.5,1X,F8.5,1X,F7.5,1X,F7.5,1X,
     +  A8,1X,A7,1X,A7,1X,F7.5,1X,F7.5,1X,F7.5,1X,A7,1X,A7,1X,A7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'assoc.dat')
      write(6,*) '....Loading file: assoc.dat'
      do i__=1,275
        read(1,'(A148)')ar__2
        read(ar__2,3)
     +  IC_1,Blz_1,dBN,dMin,dMax,Sr,wSrMin,wSrMax,So,wSoMin,wSoMax,
     +  AIr,wAIrMin,wAIrMax,AIo,wAIoMin,wAIoMax
c    ..............Just test output...........
        write(6,3)
     +  IC_1,Blz_1,dBN,dMin,dMax,Sr,wSrMin,wSrMax,So,wSoMin,wSoMax,
     +  AIr,wAIrMin,wAIrMax,AIo,wAIoMin,wAIoMax
c    .......End.of.Just test output...........
      end do
      close(1)

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