FORTRAN Generation
(/./ftp/cats/J/A_A/602/A123)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/602/A123 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-Oct-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/A+A/602/A123  AGN vs. host galaxy properties in COSMOS field (Lanzuisi+, 2017)
*================================================================================
*AGN vs. host galaxy properties in the COSMOS field.
*    Lanzuisi G., Delvecchio I., Berta S., Brusa M., Comastri A., Gilli R.,
*    Gruppioni C., Marchesi S., Perna M., Pozzi F., Salvato M., Symeonidis M.,
*    Vignali C., Vito F., Volonteri M., Zamorani G.
*    <Astron. Astrophys. 602, A123 (2017)>
*    =2017A&A...602A.123L        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Multiwavelength properties of the 692 sources
                                 in the X-FIR sample

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

C  J2000.0 position composed of: RAdeg DEdeg
      integer*4     ID         (nr__) ! ID from Capak et al. (2007, Cat. II/284),
*                                    Photo-z COSMOS identifier from
*                                    Ilbert el al. (2009, Cat. J/ApJ/690/1236)
      real*8        RAdeg      (nr__) ! (deg) Right ascension (J2000.0)
      real*8        DEdeg      (nr__) ! (deg) Declination (J2000.0)
      real*4        z          (nr__) ! Redshift
      character*4   Flag       (nr__) ! Redshift flag (spectroscopic or photometric)
      real*4        logLIR     (nr__) ! ([10-7W]) Log of IR luminosity from SF
      real*4        e_logLIR   (nr__) ! ([10-7W]) Error in Log space of LIR
      real*4        logM_      (nr__) ! ([Msun]) Log of the stellar mass
      real*4        e_logM_    (nr__) ! ([Msun]) Error in Log space of M*
      real*4        logSFR     (nr__) ! ([Msun/yr]) Log of the Star formation rate
      character*1   l_logNH    (nr__) ! Upper limit flag on logNH
      real*4        logNH      (nr__) ! ([cm-2]) Log of X-ray column density
      real*4        e_logNH    (nr__) ! ([cm-2]) ?=-1 Error low in Log space on column
*                                    density (1)
      real*4        E_logNH_1  (nr__) ! ([cm-2]) ?=-1 Error up in Log space on column
*                                    density (1)
      real*4        logLX      (nr__) ! ([10-7W]) Log of X-ray luminosity
      real*4        e_logLX    (nr__) ! ([10-7W]) Error in Log space on LX
      real*4        logLbol    (nr__) ! ([10-7W]) Log of Bolometric luminosity from Marconi et
*                                    al. (2004MNRAS.351..169M)
      integer*4     XMMID      (nr__) ! ? ID from XMM-Cosmos Catalog (Brusa et al.,
*                                    2010, Cat. J/ApJ/716/348),
*                                    XMMC NNNNN in Simbad
      character*9   CHAID      (nr__) ! ID from Chandra-Cosmos Legacy
*                                    (Marchesi et al., 2016ApJ...832...70A, from
*                                    Civano et al., 2016, Cat. J/ApJ/819/62),
*                                    lid_NNNN or cid_NNNN
*Note (1): For sources with e_logNH and E_logNH=-1 the value of LogNH is the
*           upper-limit on column density.

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

C  Loading file 'table1.dat'	! Multiwavelength properties of the 692 sources
*                                 in the X-FIR sample

C  Format for file interpretation

    1 format(
     +  I7,1X,F9.5,1X,F8.6,1X,F6.4,1X,A4,1X,F5.2,1X,F4.2,1X,F5.2,1X,
     +  F4.2,1X,F5.2,1X,A1,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F4.2,1X,
     +  F5.2,1X,I5,1X,A9)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,692
        read(1,'(A118)')ar__
        read(ar__,1)
     +  ID(i__),RAdeg(i__),DEdeg(i__),z(i__),Flag(i__),logLIR(i__),
     +  e_logLIR(i__),logM_(i__),e_logM_(i__),logSFR(i__),
     +  l_logNH(i__),logNH(i__),e_logNH(i__),E_logNH_1(i__),
     +  logLX(i__),e_logLX(i__),logLbol(i__),XMMID(i__),CHAID(i__)
        if(ar__(104:108) .EQ. '') XMMID(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  ID(i__),RAdeg(i__),DEdeg(i__),z(i__),Flag(i__),logLIR(i__),
     +  e_logLIR(i__),logM_(i__),e_logM_(i__),logSFR(i__),
     +  l_logNH(i__),logNH(i__),e_logNH(i__),E_logNH_1(i__),
     +  logLX(i__),e_logLX(i__),logLbol(i__),XMMID(i__),CHAID(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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