FORTRAN Generation
(/./ftp/cats/J/ApJ/682/199)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/682/199 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-19
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/682/199   Globulars with X-ray sources in NGC 5128      (Woodley+, 2008)
*================================================================================
*Globular clusters and X-ray point sources in Centaurus A (NGC 5128).
*    Woodley K.A., Raychaudhury S., Kraft R.P., Harris W.E., Jordan A.,
*    Whitaker K.E., Jones C., Forman W.R., Murray S.S.
*   <Astrophys. J., 682, 199-211 (2008)>
*   =2008ApJ...682..199W
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Globular clusters in Cen A (NGC 5128) with
                             X-ray sources

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg      (nr__) ! (deg) Right Ascension J2000
      real*8        DEdeg      (nr__) ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*11  Name       (nr__) ! Globular cluster name (1)
      character*3   n_Name     (nr__) ! [bcd, ] Individual notes (2)
      integer*4     RAh        (nr__) ! (h) Hour of right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) Minute of right ascension (J2000)
      real*4        RAs        (nr__) ! (s) Second of right ascension (J2000)
      character*1   DE_        (nr__) ! Declination sign (J2000)
      integer*4     DEd        (nr__) ! (deg) Degree of declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) Arcminute of declination (J2000)
      real*4        DEs        (nr__) ! (arcsec) Arcsecond of declination (J2000)
      real*4        Rad        (nr__) ! (arcmin) Galactocentric radius
      real*4        Bmag       (nr__) ! (mag) ? B-band magnitude (3)
      real*4        Vmag       (nr__) ! (mag) ? V-band magnitude (3)
      real*4        Icmag      (nr__) ! (mag) ? Ic-band magnitude (3)
      real*4        T1mag      (nr__) ! (mag) ? T1-band magnitude (4)
      real*4        C_T1       (nr__) ! (mag) ? C-T1 color index (4)
      real*8        v_Fe_H_    (nr__) ! ([-]) ? [Fe/H] metallicity (5)
*Note (1): Globular cluster names significations:
*   GC      = GCs from Woodley et al. (2007, Cat. J/AJ/134/494). Clusters
*             confirmed by either radial velocity or HST imaging. (Objects are
*             <[WHB2007] GCNNNN> in Simbad).
*   BTC     = candidate GCs from Harris et al. (2004, Cat. J/AJ/128/723,
*             objects are <[HHG2004] NNN> in Simbad)
*   Minniti = candidate clusters from Minniti et al. (2004, Cat. J/ApJ/600/716,
*             objects are <[MRF2004] NNN> in Simbad)
*   K-      = candidate GCs (with no radial velocity measurement) from
*             Peng et al. (2004, Cat. J/ApJS/150/367, objects are <[KKF2001] NNN>
*             in Simbad).
*Note (2): Flags as follows:
*   b = GCs with radial velocity measurement listed as an average weight of all
*       previous measurements in Woodley et al. (2007, Cat. J/AJ/134/494).
*   c = GC 0233 matched both X-ray point source 55 and 56 within 1.5", and one of
*       them within 0.5".
*   d = Minniti et al. (2004, Cat. J/ApJ/600/716) suggest that Minniti 53 is
*       spectroscopically confirmed from Harris et al. (1992AJ....104..613H), yet
*       in this study, we do not find that the position of Minniti 53 matches any
*       previously known GC with a radial velocity measurement within a search
*       radius of 2". We list this object as a candidate GC.
*Note (3): The BVI data are taken from Peng et al. (2004, Cat. J/ApJS/150/367)
*          and are not dereddened.
*Note (4): The Washington photometry data are from Harris et al. (2004, Cat.
*     J/AJ/128/723) and are not dereddened.
*Note (5): The metallicity [Fe/H] was determined from the color (C-T_1_)_0_,
*     using a conversion derived by Harris & Harris (2002AJ....123.3108H),
*     which produces an uncertainty in [Fe/H] of +/-0.2dex at the metal-poor
*     end and +/-0.07dex at the metal-rich end for a typical photometric
*     uncertainty of {sigma}(C-T_1_)~0.1, assuming a mean age of
*     {tau}~13Gyr.

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

C  Loading file 'table2.dat'	! Globular clusters in Cen A (NGC 5128) with
*                             X-ray sources

C  Format for file interpretation

    1 format(
     +  A11,A3,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,F5.2,1X,
     +  F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F6.3,1X,F7.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,67
        read(1,'(A83)')ar__
        read(ar__,1)
     +  Name(i__),n_Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),Rad(i__),Bmag(i__),Vmag(i__),
     +  Icmag(i__),T1mag(i__),C_T1(i__),v_Fe_H_(i__)
        if(ar__(46:50) .EQ. '') Bmag(i__) = rNULL__
        if(ar__(52:56) .EQ. '') Vmag(i__) = rNULL__
        if(ar__(58:62) .EQ. '') Icmag(i__) = rNULL__
        if(ar__(64:68) .EQ. '') T1mag(i__) = rNULL__
        if(ar__(70:75) .EQ. '') C_T1(i__) = rNULL__
        if(ar__(77:83) .EQ. '') v_Fe_H_(i__) = rNULL__
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),n_Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),Rad(i__),Bmag(i__),Vmag(i__),
     +  Icmag(i__),T1mag(i__),C_T1(i__),v_Fe_H_(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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