FORTRAN Generation
(/./ftp/cats/J/ApJ/805/65)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/805/65 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-Mar-28
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/805/65 FLAMES observations of NGC 5128's globular clusters (Taylor+, 2015)
*================================================================================
*Observational evidence for a dark side to NGC 5128's globular cluster system.
*    Taylor M.A., Puzia T.H., Gomez M., Woodley K.A.
*   <Astrophys. J., 805, 65 (2015)>
*   =2015ApJ...805...65T
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Star cluster observations

      integer*4 nr__
      parameter (nr__=140)	! Number of records
      character*60 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)

      integer*4     GC         (nr__) ! [5/441] Cluster identifier (G1)
      integer*4     RAh        (nr__) ! (h) [13] Hour of Right Ascension (J2000)
      integer*4     RAm        (nr__) ! (min) [23/26] Minute of Right Ascension (J2000)
      real*4        RAs        (nr__) ! (s) Second of Right Ascension (J2000)
      character*1   DE_        (nr__) ! [-] Sign of the Declination (J2000)
      integer*4     DEd        (nr__) ! (deg) [42/43] Degree of Declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) Arcminute of Declination (J2000)
      real*4        DEs        (nr__) ! (arcsec) Arcsecond of Declination (J2000)
      real*4        Rmag       (nr__) ! (mag) [17/20.5] Apparent R band magnitude (1)
      real*4        Vmag       (nr__) ! (mag) [16.8/20.7] Dereddened apparent V band
*                                magnitude (2)
      real*4        e_Vmag     (nr__) ! (mag) [0.01/0.2] Uncertainty in Vmag
      integer*4     Exp        (nr__) ! (s) [1200/26400] Total integration time
      real*4        S_N        (nr__) ! [0.2/11]?=-99 Signal-to-Noise ratio (3)
*Note (1): Used for target acquisition.
*Note (2): Or r'-band magnitudes. Most of our sample objects have apparent
*          V-band magnitudes provided in the Woodley et al. (2007, J/AJ/134/494)
*          catalog (see also references therein). Where V-band magnitudes are
*          not available, we list de-reddened r'-band magnitudes from
*          Sinnott et al. (2010, J/AJ/140/2101). See section 3.6.
*Note (3): See Section 2.2 for a definition. A "-99." indicates the S/N
*          could not be estimated because no radial velocity was able
*          to be obtained from the literature or our data.

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

C  Declarations for 'table2.dat'	! Star cluster kinematics

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

      integer*4     GC_1       (nr__1) ! [5/441] Cluster identifier (G1)
      real*4        Rgc        (nr__1) ! (arcmin) [1/21.5] Galacto-centric angular radius
      integer*4     RVlt       (nr__1) ! (km/s) [146/890]?=-99 Literature radial velocity
      integer*4     e_RVlt     (nr__1) ! (km/s) [1/202]?=-99 Uncertainty in RVlt
      integer*4     RV         (nr__1) ! (km/s) [19/836]?=-99 Penalized pixel fitting technique
*                                  radial velocity
      real*4        e_RV       (nr__1) ! (km/s) [0.3/31]?=-99 Uncertainty in RV
      real*4        sigma      (nr__1) ! (km/s) [1/68]?=-99 Penalized pixel fitting technique
*                                  velocity dispersion {sigma}
      real*4        e_sigma    (nr__1) ! (km/s) [0.3/52]?=-99 Uncertainty in sigma
      real*8        sig_ap     (nr__1) ! (km/s) [3.6/68]?=-99 Model aperture corrected
*                                  velocity dispersion {sigma}_ap_ (4)
      real*8        E_sig_ap   (nr__1) ! (km/s) ?=-99 Upper uncertainty in sig.ap
      real*8        e_sig_ap_1 (nr__1) ! (km/s) ?=-99 Lower uncertainty in sig.ap
      real*8        sig_gl     (nr__1) ! (km/s) [3.5/62]?=-99 Global aperture corrected
*                                  velocity dispersion {sigma}_gl_
      real*8        E_sig_gl   (nr__1) ! (km/s) [0.02/18]?=-99 Upper uncertainty in sig.gl
      real*8        e_sig_gl_1 (nr__1) ! (km/s) [0.07/18]?=-99 Lower uncertainty in sig.gl
      real*4        sig_0      (nr__1) ! (km/s) [4/69.2]?=-99 Cluster core aperture corrected
*                                  velocity dispersion {sigma}_0_
      real*8        E_sig_0    (nr__1) ! (km/s) ?=-99 Upper uncertainty in sig.0
      real*4        e_sig_0_1  (nr__1) ! (km/s) ?=-99 Lower uncertainty in sig.0
      real*4        sig_hl     (nr__1) ! (km/s) [3.9/66]?=-99 Aperature corrected 2D projected
*                                  half-light radius velocity dispersion
*                                  {sigma}_1/2_
      real*4        E_sig_hl   (nr__1) ! (km/s) ?=-99 Upper uncertainty in sig.hl
      real*4        e_sig_hl_1 (nr__1) ! (km/s) ?=-99 Lower uncertainty in sig.hl
      integer*4     r_RVlt     (nr__1) ! [1/5]?=-99 Reference code for RVlt (5)
*Note (4): The model velocity dispersion corresponding to the FLAMES aperture.
*Note (5): Reference as follows:
*    1 = Woodley et al. (2010, J/AJ/139/1871);
*    2 = Woodley et al. (2007, J/AJ/134/494), their mean;
*    3 = Woodley et al. (2007, J/AJ/134/494), LDSS2;
*    4 = Woodley et al. (2007, J/AJ/134/494), VIMOS;
*    5 = Woodley et al. (2007, J/AJ/134/494), Hydra.

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

C  Declarations for 'table3.dat'	! Star cluster structural parameters

      integer*4 nr__2
      parameter (nr__2=140)	! Number of records
      character*125 ar__2  	! Full-size record

      integer*4     GC_2       (nr__2) ! [5/441] Cluster identifier (G1)
      real*8        Mhm        (nr__2) ! (Msun) [0.03/7.5]?=-99 The 'half-mass' M_1/2_ (6)
      real*8        E_Mhm      (nr__2) ! (Msun) ?=-99 Upper limit uncertainty in Mhm
      real*8        e_Mhm_1    (nr__2) ! (Msun) ?=-99 Lower limit uncertainty in Mhm
      real*8        Mdyn       (nr__2) ! (Msun) [0.07/15.4]?=-99 Dynamical mass
      real*8        E_Mdyn     (nr__2) ! (Msun) ?=-99 Upper limit uncertainty in Mdyn
      real*8        e_Mdyn_1   (nr__2) ! (Msun) ?=-99 Lower limit uncertainty in Mdyn
      real*4        M_Lhm      (nr__2) ! (Msun/Lsun) [0.4/64.5]?=-99 The 'half-mass'
*                                    mass-to-light ratio
      real*4        E_M_Lhm    (nr__2) ! (Msun/Lsun) ?=-99 Upper limit uncertainty in M/Lhm
      real*4        e_M_Lhm_1  (nr__2) ! (Msun/Lsun) ?=-99 Lower limit uncertainty in M/Lhm
      real*4        M_Ldyn     (nr__2) ! (Msun/Lsun) [0.5/66.7]?=-99 Dynamic mass-to-light ratio
      real*4        E_M_Ldyn   (nr__2) ! (Msun/Lsun) ?=-99 Upper limit uncertainty in M/Ldyn
      real*4        e_M_Ldyn_1 (nr__2) ! (Msun/Lsun) ?=-99 Lower limit uncertainty in M/Ldyn
      real*4        rh         (nr__2) ! (pc) [0.2/23]?=-99 Half light radius
      real*4        e_rh       (nr__2) ! (pc) ?=-99 Uncertainty in rh
      real*4        c          (nr__2) ! [0.8/2.5]?=-99 Concentration parameter
      integer*4     r_rh       (nr__2) ! ?=-99 Reference for rh (7)
*Note (6): In other words the dynamical mass corresponding to that contained
*          within the 2D projected half-light radius.
*Note (7): Reference as follows:
*    1 = Gomez et al. (2015, in prep.);
*    2 = Jordan et al. (2015, in prep.);
*    3 = Harris et al. (2002AJ....124.1435H).

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

C  Loading file 'table1.dat'	! Star cluster observations

C  Format for file interpretation

    1 format(
     +  I4,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,F5.2,1X,F5.2,
     +  1X,F4.2,1X,I5,1X,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,140
        read(1,'(A60)')ar__
        read(ar__,1)
     +  GC(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),
     +  DEs(i__),Rmag(i__),Vmag(i__),e_Vmag(i__),Exp(i__),S_N(i__)
        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)
     +  GC(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),
     +  DEs(i__),Rmag(i__),Vmag(i__),e_Vmag(i__),Exp(i__),S_N(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Star cluster kinematics

C  Format for file interpretation

    2 format(
     +  I4,1X,F5.2,1X,I3,1X,I3,1X,I3,1X,F6.2,1X,F6.2,1X,F6.2,1X,F7.3,
     +  1X,F7.3,1X,F7.3,1X,F7.3,1X,F7.3,1X,F7.3,1X,F6.2,1X,F7.3,1X,
     +  F6.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,140
        read(1,'(A138)')ar__1
        read(ar__1,2)
     +  GC_1(i__),Rgc(i__),RVlt(i__),e_RVlt(i__),RV(i__),e_RV(i__),
     +  sigma(i__),e_sigma(i__),sig_ap(i__),E_sig_ap(i__),
     +  e_sig_ap_1(i__),sig_gl(i__),E_sig_gl(i__),e_sig_gl_1(i__),
     +  sig_0(i__),E_sig_0(i__),e_sig_0_1(i__),sig_hl(i__),
     +  E_sig_hl(i__),e_sig_hl_1(i__),r_RVlt(i__)
c    ..............Just test output...........
        write(6,2)
     +  GC_1(i__),Rgc(i__),RVlt(i__),e_RVlt(i__),RV(i__),e_RV(i__),
     +  sigma(i__),e_sigma(i__),sig_ap(i__),E_sig_ap(i__),
     +  e_sig_ap_1(i__),sig_gl(i__),E_sig_gl(i__),e_sig_gl_1(i__),
     +  sig_0(i__),E_sig_0(i__),e_sig_0_1(i__),sig_hl(i__),
     +  E_sig_hl(i__),e_sig_hl_1(i__),r_RVlt(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Star cluster structural parameters

C  Format for file interpretation

    3 format(
     +  I4,1X,F8.4,1X,F8.4,1X,F8.4,1X,F8.4,1X,F8.4,1X,F8.4,1X,F6.2,1X,
     +  F6.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,F6.2,
     +  1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,140
        read(1,'(A125)')ar__2
        read(ar__2,3)
     +  GC_2(i__),Mhm(i__),E_Mhm(i__),e_Mhm_1(i__),Mdyn(i__),
     +  E_Mdyn(i__),e_Mdyn_1(i__),M_Lhm(i__),E_M_Lhm(i__),
     +  e_M_Lhm_1(i__),M_Ldyn(i__),E_M_Ldyn(i__),e_M_Ldyn_1(i__),
     +  rh(i__),e_rh(i__),c(i__),r_rh(i__)
c    ..............Just test output...........
        write(6,3)
     +  GC_2(i__),Mhm(i__),E_Mhm(i__),e_Mhm_1(i__),Mdyn(i__),
     +  E_Mdyn(i__),e_Mdyn_1(i__),M_Lhm(i__),E_M_Lhm(i__),
     +  e_M_Lhm_1(i__),M_Ldyn(i__),E_M_Ldyn(i__),e_M_Ldyn_1(i__),
     +  rh(i__),e_rh(i__),c(i__),r_rh(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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