FORTRAN Generation
(/./ftp/cats/J/A_A/528/A122)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/528/A122 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 2026-Jun-13
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/528/A122      SwiftFT catalog                          (Puccetti+, 2011)
*================================================================================
*The Swift Serendipitous Survey in deep XRT GRB fields (SwiftFT).
*I. The X-ray catalog and number counts.
*    Puccetti S., Capalbi M., Giommi P., Perri G.M., Stratta , Angelini L.,
*    Burrows D.N., Campana S., Chincarini G., Cusumano G., Gehrels N.,
*    Moretti A., Nousek J., Osborne J.P., Tagliaferri. G.
*   <Astron. Astrophys. 528, A122 (2011)>
*   =2011A&A...528A.122P
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'xrtcat.dat'	! The SwiftFT survey

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

C  J2000 position composed of: RAdeg DEdeg
      character*17  SWIFTFT    (nr__) ! Swift name (JHHMMSS.s+DDMM.m)
      real*8        RAdeg      (nr__) ! (deg) Swift-XRT Right ascension, degrees (J2000)
      real*8        DEdeg      (nr__) ! (deg) Swift-XRT Declination, degrees (J2000)
      real*4        e68        (nr__) ! (arcsec) Positional error at 68% confidence level
      real*4        e90        (nr__) ! (arcsec) Positional error at 90% confidence level
      real*4        Xpos       (nr__) ! (pix) X position
      real*4        Ypos       (nr__) ! (pix) Y position
      character*10  Target     (nr__) ! XRT field (target name)
      character*19  t_start    (nr__) ! ("datime") Start time of the field observations
*                                   (YYYY-MM-DDThh:mm:ss)
      character*19  t_end      (nr__) ! ("datime") End time of the field observations
*                                  (YYYY-MM-DDThh:mm:ss.s)
      integer*4     t_exp      (nr__) ! (s) Total exposure time
      real*4        CR         (nr__) ! (ct/s) Full band (0.3-10keV) count rate
*                                   or 90% upper limit
      real*4        e_CR       (nr__) ! (ct/s) ?=-99. rms uncertainty on CR
      real*4        Flux       (nr__) ! (mW/m2) Flux in 0.5-10kev band or 90% upper limit
      real*4        e_Flux     (nr__) ! (mW/m2) ?=-99. rms uncertainty on FluxF
      real*4        Pdet       (nr__) ! 0.3-10keV detection probability (1)
      real*4        SNR        (nr__) ! 0.3-10keV signal-to-noise ratio
      integer*4     texp       (nr__) ! (s) 1.5keV exposure time, from the exposure maps
*                                   including vignetting
      real*4        CR_s       (nr__) ! (ct/s) Count rate in soft (0.3-3keV) band
*                                   or 90% upper limit
      real*4        e_CR_s     (nr__) ! (ct/s) ?=-99. rms uncertainty on CRS
      real*4        Flux_s     (nr__) ! (mW/m2) Flux in 0.5-2keV band
      real*4        e_Flux_s   (nr__) ! (mW/m2) ?=-99. rms uncertainty on FluxS
      real*4        Pdet_s     (nr__) ! 0.3-3keV detection probability (1)
      real*4        SNR_s      (nr__) ! 0.3-3keV signal-to-noise ratio
      integer*4     texp_s     (nr__) ! (s) 1keV exposure time, from the exposure maps
*                                   including vignetting
      real*4        CR_h       (nr__) ! (ct/s) Count rate in hard (2-10keV) band
*                                   or 90% upper limit
      real*4        e_CR_h     (nr__) ! (ct/s) ?=-99. rms uncertainty on CRH
      real*4        Flux_h     (nr__) ! (mW/m2) Flux in 2-10keV band or 90% upper limit
      real*4        e_Flux_h   (nr__) ! (mW/m2) ?=-99. rms uncertainty on FluxH
      real*4        Pdet_h     (nr__) ! 2-10keV detection probability (1)
      real*4        SNR_h      (nr__) ! 2-10 signal-to-noise ratio
      integer*4     texp_h     (nr__) ! (s) 4.5keV exposure time, from the exposure maps
*                                   including vignetting
      real*4        HR         (nr__) ! ?=-99. Hardness ratio or 90% upper limit
      real*4        e_HR       (nr__) ! ?=-99. rms uncertainty on HR
      real*4        offaxis    (nr__) ! (arcmin) Distance from the field median center
      real*4        NHI        (nr__) ! (cm-2) Galactic hydrogen (21cm) column density
*Note (1): this probability represents the significance level
*     of being a spurious source.

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

C  Loading file 'xrtcat.dat'	! The SwiftFT survey

C  Format for file interpretation

    1 format(
     +  7X,A17,2X,F8.4,2X,F8.4,1X,F4.1,1X,F4.1,1X,F5.1,1X,F5.1,1X,A10,
     +  3X,A19,3X,A19,4X,I7,1X,E9.3,1X,E8.2,1X,E9.3,1X,E8.2,1X,E8.2,
     +  1X,F6.2,1X,I8,1X,E9.3,1X,E8.2,1X,E9.3,1X,E8.2,1X,E8.2,1X,F6.2,
     +  1X,I8,1X,E9.3,1X,E8.2,1X,E9.3,1X,E8.2,1X,E8.2,1X,F6.2,1X,I8,
     +  1X,F6.2,1X,F6.2,1X,F5.2,1X,E8.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'xrtcat.dat')
      write(6,*) '....Loading file: xrtcat.dat'
      do i__=1,9387
        read(1,'(A350)')ar__
        read(ar__,1)
     +  SWIFTFT(i__),RAdeg(i__),DEdeg(i__),e68(i__),e90(i__),
     +  Xpos(i__),Ypos(i__),Target(i__),t_start(i__),t_end(i__),
     +  t_exp(i__),CR(i__),e_CR(i__),Flux(i__),e_Flux(i__),Pdet(i__),
     +  SNR(i__),texp(i__),CR_s(i__),e_CR_s(i__),Flux_s(i__),
     +  e_Flux_s(i__),Pdet_s(i__),SNR_s(i__),texp_s(i__),CR_h(i__),
     +  e_CR_h(i__),Flux_h(i__),e_Flux_h(i__),Pdet_h(i__),SNR_h(i__),
     +  texp_h(i__),HR(i__),e_HR(i__),offaxis(i__),NHI(i__)
c    ..............Just test output...........
        write(6,1)
     +  SWIFTFT(i__),RAdeg(i__),DEdeg(i__),e68(i__),e90(i__),
     +  Xpos(i__),Ypos(i__),Target(i__),t_start(i__),t_end(i__),
     +  t_exp(i__),CR(i__),e_CR(i__),Flux(i__),e_Flux(i__),Pdet(i__),
     +  SNR(i__),texp(i__),CR_s(i__),e_CR_s(i__),Flux_s(i__),
     +  e_Flux_s(i__),Pdet_s(i__),SNR_s(i__),texp_s(i__),CR_h(i__),
     +  e_CR_h(i__),Flux_h(i__),e_Flux_h(i__),Pdet_h(i__),SNR_h(i__),
     +  texp_h(i__),HR(i__),e_HR(i__),offaxis(i__),NHI(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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