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

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