FORTRAN Generation
(/./ftp/cats/J/ApJS/277/5)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJS/277/5 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-May-15
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/ApJS/277/5     GECAM obs. of SGR J1935+2154. I. Burst catalog     (Xie+, 2025)
*================================================================================
*GECAM observations of the Galactic magnetar SGR J1935+2154 during the 2021 and
*2022 burst active episodes.
*I. Burst catalog.
*    Xie S.-L., Cai Ce, Yu Y.-W., Xiong S.-L., Lin L., Zhao Yi, Zhang S.-N.,
*    Song L.-M., Wang P., Li X.-B., Xue W.-C., Zhang P., Zheng C., Zhang Y.-Q.,
*    Liu J.-C., Wang C.-W., Tan W.-J., Wang Y., Yu Z.-H., Feng P.-Y.,
*    Zhang J.-P., Xiao S., Zhao H.-S., Zhang W.-L., Zhang Y.-T., Huang Y.,
*    Zhao X.-Y., Ma X., Zheng S.-J., Li X.-Q., Wen X.-Y., Gong Ke, An Z.-H.,
*    Zhang D.-L., Yang S., Liu X.-J., Zhang F.
*   <Astrophys. J. Suppl. Ser., 277, 5 (2025)>
*   =2025ApJS..277....5X
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! SGR J1935+2154 burst list observed by GECAM-B
                            from 2021 January to 2022 December

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     Seq         ! [1/159] Running sequence number
      character*10  T_date      ! ("Y/M/D") Trigger date (UTC)
      integer*4     T_h         ! (h) Trigger hour (UTC)
      integer*4     T_m         ! (min) Trigger minute (UTC)
      real*4        T_s         ! (s) Trigger second (UTC)
      character*8   Template    ! Template (1)
      real*4        RAdeg       ! (deg) [275.9/312.2] Right ascension (J2000)
      real*4        DEdeg       ! (deg) [2.2/42.4] Declination (J2000)
      real*4        errPos      ! (deg) [0.15/29.7] Position uncertainty
      real*4        sigma       ! [5/89.2] sigma value
      real*8        Tbb         ! (ms) [1.9/2662] Burst duration derived by
*                                      the Bayesian blocks algorithm
      real*8        Tst         ! (ms) [-1051/805.01] Burst start time relative
*                                      to the trigger time using the Bayesian
*                                      blocks algorithm
      character*3   GBM         ! Visible to GBM
      character*3   GECAM       ! Visible to GECAM (-C for Table 2 or
*                                      -B for Table 3)
*Note (1): We utilize the following spectral model templates:
*    the SoftBand function (default softer template for GRB searching), CPL
*    (a power law with high-energy exponential cutoff), OTTB (optically
*    thin thermal bremsstrahlung), Blackbody (BB), and Powerlaw.
*    See Section 2.1.

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

C  Declarations for 'table3.dat'	! SGR J1935+2154 burst list observed by GECAM-C
                            from 2022 October to December

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     Seq_1       ! [1/159] Running sequence number
      character*10  T_date_1    ! ("Y/M/D") Trigger date (UTC)
      integer*4     T_h_1       ! (h) Trigger hour (UTC)
      integer*4     T_m_1       ! (min) Trigger minute (UTC)
      real*4        T_s_1       ! (s) Trigger second (UTC)
      character*8   Template_1  ! Template (1)
      real*4        RAdeg_1     ! (deg) [275.9/312.2] Right ascension (J2000)
      real*4        DEdeg_1     ! (deg) [2.2/42.4] Declination (J2000)
      real*4        errPos_1    ! (deg) [0.15/29.7] Position uncertainty
      real*4        sigma_1     ! [5/89.2] sigma value
      real*8        Tbb_1       ! (ms) [1.9/2662] Burst duration derived by
*                                      the Bayesian blocks algorithm
      real*8        Tst_1       ! (ms) [-1051/805.01] Burst start time relative
*                                      to the trigger time using the Bayesian
*                                      blocks algorithm
      character*3   GBM_1       ! Visible to GBM
      character*3   GECAM_1     ! Visible to GECAM (-C for Table 2 or
*                                      -B for Table 3)
*Note (1): We utilize the following spectral model templates:
*    the SoftBand function (default softer template for GRB searching), CPL
*    (a power law with high-energy exponential cutoff), OTTB (optically
*    thin thermal bremsstrahlung), Blackbody (BB), and Powerlaw.
*    See Section 2.1.

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

C  Loading file 'table2.dat'	! SGR J1935+2154 burst list observed by GECAM-B
*                            from 2021 January to 2022 December

C  Format for file interpretation

    1 format(
     +  I3,1X,A10,1X,I2,1X,I2,1X,F6.3,1X,A8,1X,F6.2,1X,F5.2,1X,F5.2,
     +  1X,F5.2,1X,F7.2,1X,F8.2,1X,A3,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,159
        read(1,'(A86)')ar__
        read(ar__,1)
     +  Seq,T_date,T_h,T_m,T_s,Template,RAdeg,DEdeg,errPos,sigma,Tbb,
     +  Tst,GBM,GECAM
c    ..............Just test output...........
        write(6,1)
     +  Seq,T_date,T_h,T_m,T_s,Template,RAdeg,DEdeg,errPos,sigma,Tbb,
     +  Tst,GBM,GECAM
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! SGR J1935+2154 burst list observed by GECAM-C
*                            from 2022 October to December

C  Format for file interpretation

    2 format(
     +  I3,1X,A10,1X,I2,1X,I2,1X,F6.3,1X,A8,1X,F6.2,1X,F5.2,1X,F5.2,
     +  1X,F5.2,1X,F7.2,1X,F8.2,1X,A3,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,97
        read(1,'(A86)')ar__1
        read(ar__1,2)
     +  Seq_1,T_date_1,T_h_1,T_m_1,T_s_1,Template_1,RAdeg_1,DEdeg_1,
     +  errPos_1,sigma_1,Tbb_1,Tst_1,GBM_1,GECAM_1
c    ..............Just test output...........
        write(6,2)
     +  Seq_1,T_date_1,T_h_1,T_m_1,T_s_1,Template_1,RAdeg_1,DEdeg_1,
     +  errPos_1,sigma_1,Tbb_1,Tst_1,GBM_1,GECAM_1
c    .......End.of.Just test output...........
      end do
      close(1)

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