FORTRAN Generation
(/./ftp/cats/J/PAZh/43/859)

Conversion of standardized ReadMe file for file /./ftp/cats/J/PAZh/43/859 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. J/PAZh/43/859       ISGRI type I X-ray bursts (2003-2015)    (Chelovekov+, 2017)
*================================================================================
*Type I X-ray bursts detected by the JEM-X telescope onboard the INTEGRAL
*observatory in 2003-2015.
*    Chelovekov I.V., Grebenev S.A., Mereminskiy I.A., Prosvetov A.V.
*    <Pis'ma Astron. Zh. 43, 859 (2017)>
*    =2017AstL...43..781C
*    =2017PAZh...43..859C        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Parameters of known X-ray bursters based on
                                publicaly available publications (23-Oct-2017)

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

C  J2000.0 position composed of: RAdeg DEdeg
      character*22  Source     (nr__) ! Source name
      real*4        RAdeg      (nr__) ! (deg) Right ascension (J2000.0)
      real*4        DEdeg      (nr__) ! (deg) Declination (J2000.0)
      real*4        Dist       (nr__) ! (kpc) Distance
      real*4        NH         (nr__) ! (10-22cm-2) Hydrogen column density

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

C  Declarations for 'table2.dat'	! Catalog of type I X-ray bursts detected by
                                the ISGRI detector for 24 sources

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

      integer*4     Seq        (nr__1) ! Burst number
      character*17  Source_1   (nr__1) ! Source name
      character*10  Obs_date   (nr__1) ! ("DD.MM.YYYY") Observation date (UTC)
      character*8   Obs_time   (nr__1) ! ("h:m:s") Observation time (UTC)
      integer*4     DurI       (nr__1) ! (s) Duration ISGRI burst parameters
      real*4        FluxI      (nr__1) ! (Crab) Peak flux ISGRI burst parameters
      integer*4     DurJ       (nr__1) ! (s) ? Duration JEM-X burst parameters
      real*4        FluxJ      (nr__1) ! (Crab) ? Peak flux JEM-X burst parameters
      real*8        TLB        (nr__1) ! (h) ? Time since last burst from the source
      real*8        JD         (nr__1) ! (d) TimeB Burst time (JD-2450000)

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

C  Declarations for 'catalog.dat'	! *Catalog of type I X-ray bursts detected by
                                IBIS/ISGRI and JEM-X telescopes onboard INTEGRAL
                                for 55 sources

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

      integer*4     Seq_1      (nr__2) ! Burst sequential number
      character*21  Source_2   (nr__2) ! Source Name
      character*16  SCW        (nr__2) ! SCW identified
      character*10  Obs_date_1 (nr__2) ! ("YYYY-MM-DD") Observation date (UTC)
      character*8   Obs_time_1 (nr__2) ! ("h:m:s") Observation time (UTC)
      integer*4     DurI_1     (nr__2) ! (s) Duration, ISGRI burst parameters
      real*4        pctI       (nr__2) ! (Crab) Peak countrate, ISGRI burst parameters
      integer*4     DurJ_1     (nr__2) ! (s) ? Duration, JEM-X burst parameters
      character*5   n_DurJ     (nr__2) ! [ISGRI ] ISGRI for detected by ISGRI
      real*4        pctJ       (nr__2) ! (ct/s) ? Peak countrate, JEM-X burst parameters
      real*4        e_pctJ     (nr__2) ! (ct/s) ? rms uncertainty on pctJ
      character*5   n_pctJ     (nr__2) ! [ISGRI ] ISGRI for detected by ISGRI
      real*4        FluxP      (nr__2) ! (10-11W/m2) ? Peak burst 3-20keV JEM-X flux
*                                      (10^-8^erg/cm^2^/s)
      real*4        e_FluxP    (nr__2) ! (10-11W/m2) ? rms uncertainty pn FluxP
      character*5   n_FluxP    (nr__2) ! [ISGRI ] ISGRI for detected by ISGRI
      real*4        Fluxp_1    (nr__2) ! (10-13W/m2) ? Preburst 3-100 keV JEM-X flux
*                                      (10^-10^erg/cm^2^/s)
      real*4        e_Fluxp_1  (nr__2) ! (10-13W/m2) ? rms uncertainty pn Fluxp
      character*5   n_Fluxp_1  (nr__2) ! [ISGRI ] ISGRI for detected by ISGRI
      real*8        Tsb        (nr__2) ! (h) ? Time since last burst from the source
      real*8        TimeP      (nr__2) ! (d) Burst peak time (IJD, JD-2450000)
      real*4        Fluence    (nr__2) ! (10+31J) Burst fluence (10^38^erg)

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

C  Loading file 'table1.dat'	! Parameters of known X-ray bursters based on
*                                publicaly available publications (23-Oct-2017)

C  Format for file interpretation

    1 format(A22,2X,F6.2,2X,F6.2,2X,F6.2,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,103
        read(1,'(A53)')ar__
        read(ar__,1)
     +  Source(i__),RAdeg(i__),DEdeg(i__),Dist(i__),NH(i__)
c    ..............Just test output...........
        write(6,1)
     +  Source(i__),RAdeg(i__),DEdeg(i__),Dist(i__),NH(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Catalog of type I X-ray bursts detected by
*                                the ISGRI detector for 24 sources

C  Format for file interpretation

    2 format(
     +  I3,1X,A17,A10,1X,A8,1X,I2,1X,F4.1,1X,I3,1X,F4.2,1X,F12.6,1X,
     +  F11.6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,833
        read(1,'(A82)')ar__1
        read(ar__1,2)
     +  Seq(i__),Source_1(i__),Obs_date(i__),Obs_time(i__),DurI(i__),
     +  FluxI(i__),DurJ(i__),FluxJ(i__),TLB(i__),JD(i__)
        if(ar__1(50:52) .EQ. '') DurJ(i__) = iNULL__
        if(ar__1(54:57) .EQ. '') FluxJ(i__) = rNULL__
        if(ar__1(59:70) .EQ. '') TLB(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Seq(i__),Source_1(i__),Obs_date(i__),Obs_time(i__),DurI(i__),
     +  FluxI(i__),DurJ(i__),FluxJ(i__),TLB(i__),JD(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'catalog.dat'	! *Catalog of type I X-ray bursts detected by
*                                IBIS/ISGRI and JEM-X telescopes onboard INTEGRAL
*                                for 55 sources

C  Format for file interpretation

    3 format(
     +  I4,1X,A21,1X,A16,1X,A10,1X,A8,1X,I3,1X,F3.1,1X,I3,A5,1X,F6.1,
     +  1X,F5.1,A5,F5.2,1X,F5.2,A5,1X,F6.1,1X,F4.1,A5,1X,F7.1,1X,
     +  F11.6,1X,F5.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'catalog.dat')
      write(6,*) '....Loading file: catalog.dat'
      do i__=1,2201
        read(1,'(A157)')ar__2
        read(ar__2,3)
     +  Seq_1(i__),Source_2(i__),SCW(i__),Obs_date_1(i__),
     +  Obs_time_1(i__),DurI_1(i__),pctI(i__),DurJ_1(i__),n_DurJ(i__),
     +  pctJ(i__),e_pctJ(i__),n_pctJ(i__),FluxP(i__),e_FluxP(i__),
     +  n_FluxP(i__),Fluxp_1(i__),e_Fluxp_1(i__),n_Fluxp_1(i__),
     +  Tsb(i__),TimeP(i__),Fluence(i__)
        if(ar__2(73:75) .EQ. '') DurJ_1(i__) = iNULL__
        if(ar__2(82:87) .EQ. '') pctJ(i__) = rNULL__
        if(ar__2(89:93) .EQ. '') e_pctJ(i__) = rNULL__
        if(ar__2(99:103) .EQ. '') FluxP(i__) = rNULL__
        if(ar__2(105:109) .EQ. '') e_FluxP(i__) = rNULL__
        if(ar__2(116:121) .EQ. '') Fluxp_1(i__) = rNULL__
        if(ar__2(123:126) .EQ. '') e_Fluxp_1(i__) = rNULL__
        if(ar__2(133:139) .EQ. '') Tsb(i__) = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  Seq_1(i__),Source_2(i__),SCW(i__),Obs_date_1(i__),
     +  Obs_time_1(i__),DurI_1(i__),pctI(i__),DurJ_1(i__),n_DurJ(i__),
     +  pctJ(i__),e_pctJ(i__),n_pctJ(i__),FluxP(i__),e_FluxP(i__),
     +  n_FluxP(i__),Fluxp_1(i__),e_Fluxp_1(i__),n_Fluxp_1(i__),
     +  Tsb(i__),TimeP(i__),Fluence(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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