FORTRAN Generation
(/./ftp/cats/J/A_A/501/485)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/501/485 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-16
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/501/485       X-ray properties of Chandra red galaxies    (Campisi+, 2009)
*================================================================================
*On the nature of red galaxies: the Chandra perspective.
*    Campisi M.A., Vignali C., Brusa M., Daddi E., Comastri A., Pozzetti L.,
*    Alexander D.M., Renzini A., Arimoto N., Kong X.
*   <Astron. Astrophys., 501, 485-494 (2009)>
*   =2009A&A...501..485C
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablea1.dat'	! X-ray properties of the sources detected by
                              Chandra in the "Daddi field"

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     XID        (nr__) ! X-ray identification number in the
*                                   Chandra mosaic
      real*8        RAdeg      (nr__) ! (deg) Right ascension in decimal degrees (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination  in decimal degrees (J2000)
      real*4        theta      (nr__) ! (arcmin) Off-axis angle at the source position
*                                   averaged over the Chandra observations
      real*4        Counts     (nr__) ! (ct) Source net counts in the 0.5-8keV band
      character*1   n_Counts   (nr__) ! [hs] s when counts in 0.5-2keV band,
*                                       h when counts in 2-8kev band
      real*4        ExpTime    (nr__) ! (ks) Exposure time at the source position
      real*4        F_0_5_8    (nr__) ! (mW/m2) ? Flux in the 0.5-8keV band (1)
      character*1   l_F_0_5_2  (nr__) ! Limit flag on F(0.5-2) (2)
      real*4        F_0_5_2    (nr__) ! (mW/m2) ? Flux in the soft 0.5-2keV band (1)
      character*1   l_F_2_8    (nr__) ! Limit flag on F(2-8) (2)
      real*4        F_2_8      (nr__) ! (mW/m2) ? Flux in the hard 2-8keV band (1)
      character*1   n_F_2_8    (nr__) ! [h] h when flux in the 2-10keV band
      character*1   l_HR       (nr__) ! Limit flag on HR
      real*4        HR         (nr__) ! ? Hardness ratio (H-S/H+S)
      real*4        e_HR       (nr__) ! ? rms uncertainty on HR
*Note (1): Fluxes obtained from the count-rate conversion, assuming a
*     power-law model with Gamma=1.8/2.0/1.4/1.4.
*Note (2): The upper limits (at the 95% confidence level) to the counts,
*     hence the reported fluxes, were computed according to Kraft et al.
*     (1991ApJ...374..344K). Only five sources are detected in the full band
*     without being detected in the two sub-bands considered in this work
*     (because of the adopted detection threshold).

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

C  Loading file 'tablea1.dat'	! X-ray properties of the sources detected by
*                              Chandra in the "Daddi field"

C  Format for file interpretation

    1 format(
     +  I3,1X,F10.6,1X,F9.6,1X,F4.1,1X,F5.1,A1,1X,F4.1,1X,E8.3,1X,A1,
     +  E8.3,1X,A1,E8.3,A1,A1,F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea1.dat')
      write(6,*) '....Loading file: tablea1.dat'
      do i__=1,149
        read(1,'(A82)')ar__
        read(ar__,1)
     +  XID(i__),RAdeg(i__),DEdeg(i__),theta(i__),Counts(i__),
     +  n_Counts(i__),ExpTime(i__),F_0_5_8(i__),l_F_0_5_2(i__),
     +  F_0_5_2(i__),l_F_2_8(i__),F_2_8(i__),n_F_2_8(i__),l_HR(i__),
     +  HR(i__),e_HR(i__)
        if(ar__(43:50) .EQ. '') F_0_5_8(i__) = rNULL__
        if(ar__(53:60) .EQ. '') F_0_5_2(i__) = rNULL__
        if(ar__(63:70) .EQ. '') F_2_8(i__) = rNULL__
        if(ar__(73:77) .EQ. '') HR(i__) = rNULL__
        if(ar__(79:82) .EQ. '') e_HR(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  XID(i__),RAdeg(i__),DEdeg(i__),theta(i__),Counts(i__),
     +  n_Counts(i__),ExpTime(i__),F_0_5_8(i__),l_F_0_5_2(i__),
     +  F_0_5_2(i__),l_F_2_8(i__),F_2_8(i__),n_F_2_8(i__),l_HR(i__),
     +  HR(i__),e_HR(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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