FORTRAN Generation
(/./ftp/cats/J/ApJ/723/737)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/723/737 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-20
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/ApJ/723/737  Catalog of variability selected AGNs in GOODS  (Villforth+, 2010)
*================================================================================
*A new extensive catalog of optically variable active galactic nuclei in the
*GOODS fields and a new statistical approach to variability selection.
*    Villforth C., Koekemoer A.M., Grogin N.A.
*   <Astrophys. J., 723, 737-754 (2010)>
*   =2010ApJ...723..737V
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table5.dat'	! Basic properties of variability selected AGNs

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

C  J2000.0 position composed of: RAdeg DEdeg
      character*19  GOODS      (nr__) ! GOODS ID (JHHMMSS.ss+DDMMSS.s, J2000)
      character*4   n_GOODS    (nr__) ! Object detected in other studies (1)
      real*8        RAdeg      (nr__) ! (deg) Right ascension in decimal degrees (J2000.0)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000.0)
      real*4        zmag       (nr__) ! (mag) Magnitude in F850LP band
      real*4        Stel       (nr__) ! [0/1] Stellarity Measure ClassStar from
*                                   Sextractor (1 is point like, 0 is extended)
      real*4        C          (nr__) ! C-Statistics (2)
      real*4        Var        (nr__) ! (%) Variability Strength
      character*6   Det        (nr__) ! Detection significance (3)
      character*25  Comment    (nr__) ! Description of Morphology or Identification
*                                   as Star
      character*1   r_Comment  (nr__) ! Reference for Comment (4)
      real*4        z          (nr__) ! ?=- Spectroscopic redshift
      character*1   q_z        (nr__) ! [LSTN] Quality of redshift (5)
      character*1   r_z        (nr__) ! [fj] Redshift reference if not Popesso
*                                       et al. (2009A&A...494..443P) (6)
      real*4        zMAG_1     (nr__) ! (mag) ?=- Absolute magnitude in restframe F850LP
*                                      band only if redshift known
*Note (1): Abbreviations used as follows:
*      C = Cohen et al. (2006ApJ...639..731C)
*      T = Trevese et al. (2008, Cat. J/A+A/488/73)
*     KS = Klesman & Sarajedini (2007ApJ...665..225K)
*Note (2): Measure of Variability, this value was used to determine which
*     objects are variable.
*Note (3): Catalog ID:
*   Normal = this object is in the catalog with 99.9% significance
*   Clean  = this object is in the catalog with 99.99% significance
*Note (4): References as follows:
*      a = Popesso et al., 2009A&A...494..443P
*      b = Wolf et al., 2008A&A...492..933W
*      c = Groenewegen et al., 2002, Cat. J/A+A/392/741
*      d = Santini et al., 2009, Cat. J/A+A/504/751
*      e = Hatziminaoglou et al., 2002, Cat. J/A+A/384, 81
*      g = Straughn et al., 2006, Cat. J/ApJ/639/724
*      h = Taylor et al., 2009, Cat. J/ApJ/639/724
*      i = Mendez & Guzman, 1998A&A...333..106M
*      k = Riess et al., 2004, Cat. J/ApJ/607/665
*Note (5): Notes on z as follows:
*      L = likely redshift
*      S = secure redshift
*      T = tentative redshift
*      N = if spectroscopy was performed but no redshift could be derived
*Note (6): References as follows:
*      f = Szokoly et al. 2004, Cat. J/ApJS/155/271
*      j = Hornschemeier et al., 2001, Cat. J/ApJ/554/742

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

C  Loading file 'table5.dat'	! Basic properties of variability selected AGNs

C  Format for file interpretation

    1 format(
     +  A19,1X,A4,1X,F11.7,1X,F11.7,1X,F5.2,1X,F4.2,1X,F5.2,1X,F5.2,
     +  1X,A6,1X,A25,A1,1X,F6.4,A1,A1,1X,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,155
        read(1,'(A121)')ar__
        read(ar__,1)
     +  GOODS(i__),n_GOODS(i__),RAdeg(i__),DEdeg(i__),zmag(i__),
     +  Stel(i__),C(i__),Var(i__),Det(i__),Comment(i__),
     +  r_Comment(i__),z(i__),q_z(i__),r_z(i__),zMAG_1(i__)
        if (idig(ar__(107:112)).EQ.0) z(i__) =  rNULL__
        if (idig(ar__(116:121)).EQ.0) zMAG_1(i__) =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  GOODS(i__),n_GOODS(i__),RAdeg(i__),DEdeg(i__),zmag(i__),
     +  Stel(i__),C(i__),Var(i__),Det(i__),Comment(i__),
     +  r_Comment(i__),z(i__),q_z(i__),r_z(i__),zMAG_1(i__)
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