FORTRAN Generation
(/./ftp/cats/J/MNRAS/446/3199)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/446/3199 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-Oct-14
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/MNRAS/446/3199    24um fluxes of GOODS-S AGN          (Garcia-Gonzalez+, 2015)
*================================================================================
*Selection of AGN candidates in the GOODS-South Field through
*Spitzer/MIPS 24 {mu}m variability.
*    Garcia-Gonzalez J., Alonso-Herrero A., Perez-Gonzalez P.G.,
*    Hernan-Caballero A., Sarajedini V.L., Villar V.
*   <Mon. Not. R. Astron. Soc., 446, 3199-3223 (2015)>
*   =2015MNRAS.446.3199G    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tabled1.dat'	! Catalogue of the long-term variable candidates

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     ID          ! Identification number
      character*1   f_ID        ! [*] *: in the E-CDFS
      character*3   n_ID        ! [a,b ] Note (G1)
      real*8        RAdeg       ! (deg) Right ascension (J2000)
      real*8        DEdeg       ! (deg) Declination (J2000)
      integer*4     Flux1       ! (uJy) Spitzer/MIPS 24um Flux [epoch 1]
      integer*4     e_Flux1     ! (uJy) rms uncertainty on Flux1
      integer*4     Flux3       ! (uJy) Spitzer/MIPS 24um Flux [epoch 3]
      integer*4     e_Flux3     ! (uJy) rms uncertainty on Flux3
      integer*4     Flux6       ! (uJy) Spitzer/MIPS 24um Flux [epoch 6]
      integer*4     e_Flux6     ! (uJy) rms uncertainty on Flux6
      integer*4     Flux7       ! (uJy) Spitzer/MIPS 24um Flux [epoch 7]
      integer*4     e_Flux7     ! (uJy) rms uncertainty on Flux7
      integer*4     v_Flux_     ! (uJy) Mean 24um flux
      real*4        chi2        ! Chi^2^ value
      real*4        Var         ! (%) Measure of the variability
*                                   (Var=[(Fmax-Fmin)/<F>]*100)
      real*4        Rmax        ! Maximum to minimum flux ratio (Dmax/Fmin)
      real*4        zph         ! ? Photometric redshift
      real*4        zsp         ! ? Spectrocopic redshift (G2)
      real*4        R           ! ?=- COMBO-17 R magnitude
      character*3   Xray_       ! [YES NO] Detected in X-ray ?
      character*3   Radio_      ! [YES NO] Detected in radio ?

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

C  Declarations for 'tablee1.dat'	! Catalogue of the short-term variable candidates

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     ID_1        ! Identification number
      character*1   f_ID_1      ! [*] *: in the E-CDFS
      character*3   n_ID_1      ! [a,b ] Note (G1)
      real*8        RAdeg_1     ! (deg) Right ascension (J2000)
      real*8        DEdeg_1     ! (deg) Declination (J2000)
      integer*4     Flux7a      ! (uJy) Spitzer/MIPS 24um Flux [epoch 7a]
      integer*4     e_Flux7a    ! (uJy) rms uncertainty on Flux7a
      integer*4     Flux7b      ! (uJy) Spitzer/MIPS 24um Flux [epoch 7b]
      integer*4     e_Flux7b    ! (uJy) rms uncertainty on Flux7b
      integer*4     Flux7_1     ! (uJy) Spitzer/MIPS 24um Flux [epoch 7]
      integer*4     e_Flux7_1   ! (uJy) rms uncertainty on Flux7
      integer*4     v_Flux__1   ! (uJy) Mean 24um flux
      real*4        chi2_1      ! Chi^2^ value
      real*4        Var_1       ! (%) Measure of the variability
*                                   (Var=[(Fmax-Fmin)/<F>]*100)
      real*4        Rmax_1      ! Maximum to minimum flux ratio (Dmax/Fmin)
      real*4        zph_1       ! ? Photometric redshift
      real*4        zsp_1       ! ? Spectrocopic redshift (G2)
      real*4        R_1         ! ?=- COMBO-17 R magnitude
      character*3   Xray__1     ! [YES NO] Detected in X-ray ?
      character*3   Radio__1    ! [YES NO] Detected in radio ?

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

C  Loading file 'tabled1.dat'	! Catalogue of the long-term variable candidates

C  Format for file interpretation

    1 format(
     +  I5,A1,A3,2X,F10.7,1X,F11.7,1X,I3,1X,I2,1X,I3,1X,I2,1X,I3,1X,
     +  I2,1X,I3,1X,I2,1X,I3,1X,F5.2,1X,F4.1,1X,F4.2,1X,F4.2,1X,F5.3,
     +  1X,F5.2,1X,A3,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tabled1.dat')
      write(6,*) '....Loading file: tabled1.dat'
      do i__=1,39
        read(1,'(A106)')ar__
        read(ar__,1)
     +  ID,f_ID,n_ID,RAdeg,DEdeg,Flux1,e_Flux1,Flux3,e_Flux3,Flux6,
     +  e_Flux6,Flux7,e_Flux7,v_Flux_,chi2,Var,Rmax,zph,zsp,R,Xray_,
     +  Radio_
        if(ar__(83:86) .EQ. '') zph = rNULL__
        if(ar__(88:92) .EQ. '') zsp = rNULL__
        if (idig(ar__(94:98)).EQ.0) R =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  ID,f_ID,n_ID,RAdeg,DEdeg,Flux1,e_Flux1,Flux3,e_Flux3,Flux6,
     +  e_Flux6,Flux7,e_Flux7,v_Flux_,chi2,Var,Rmax,zph,zsp,R,Xray_,
     +  Radio_
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tablee1.dat'	! Catalogue of the short-term variable candidates

C  Format for file interpretation

    2 format(
     +  I5,A1,A3,2X,F10.7,1X,F11.7,1X,I3,1X,I2,1X,I3,1X,I2,1X,I3,1X,
     +  I2,1X,I3,1X,F5.2,1X,F4.1,1X,F4.2,1X,F4.2,1X,F5.3,1X,F5.2,1X,
     +  A3,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablee1.dat')
      write(6,*) '....Loading file: tablee1.dat'
      do i__=1,55
        read(1,'(A99)')ar__1
        read(ar__1,2)
     +  ID_1,f_ID_1,n_ID_1,RAdeg_1,DEdeg_1,Flux7a,e_Flux7a,Flux7b,
     +  e_Flux7b,Flux7_1,e_Flux7_1,v_Flux__1,chi2_1,Var_1,Rmax_1,
     +  zph_1,zsp_1,R_1,Xray__1,Radio__1
        if(ar__1(76:79) .EQ. '') zph_1 = rNULL__
        if(ar__1(81:85) .EQ. '') zsp_1 = rNULL__
        if (idig(ar__1(87:91)).EQ.0) R_1 =  rNULL__
c    ..............Just test output...........
        write(6,2)
     +  ID_1,f_ID_1,n_ID_1,RAdeg_1,DEdeg_1,Flux7a,e_Flux7a,Flux7b,
     +  e_Flux7b,Flux7_1,e_Flux7_1,v_Flux__1,chi2_1,Var_1,Rmax_1,
     +  zph_1,zsp_1,R_1,Xray__1,Radio__1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end