FORTRAN Generation
(/./ftp/cats/J/ApJ/689/919)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/689/919 into FORTRAN code for reading data files line by line.

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/689/919      Dynamical evolution of globular clusters      (Prieto+, 2008)
*================================================================================
*Dynamical evolution of globular clusters in hierarchical cosmology.
*    Prieto J.L., Gnedin O.Y.
*   <Astrophys. J., 689, 919-935 (2008)>
*   =2008ApJ...689..919P    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! *Catalog of clusters in model Sb-ii

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

      real*4        zf          ! Redshift of formation
      real*4        logM        ! ([Msun]) Present cluster mass
      real*4        logMi       ! ([Msun]) Initial cluster mass
      real*4        Rh          ! (pc) Present half-mass radius
      real*4        Rhi         ! (pc) Initial half-mass radius
      real*4        r           ! (kpc) Present distance to center of main galaxy
      real*4        ri          ! (kpc) Initial distance to center of main galaxy
      real*4        logMh       ! ([Msun]) Host galaxy mass at time of cluster formation
      real*4        x           ! (kpc) x-coordinate of cluster with respect to main galaxy
      real*4        y           ! (kpc) y-coordinate of cluster with respect to main galaxy
      real*4        z           ! (kpc) z-coordinate of cluster with respect to main galaxy
      real*4        vx          ! (km/s) x-velocity of cluster
      real*4        vy          ! (km/s) y-velocity of cluster
      real*4        vz          ! (km/s) z-velocity of cluster

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

C  Declarations for 'table4.dat'	! *Catalog of clusters in model Cb-ii

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

      real*4        zf_1        ! Redshift of formation
      real*4        logM_1      ! ([Msun]) Present cluster mass
      real*4        logMi_1     ! ([Msun]) Initial cluster mass
      real*4        Rh_1        ! (pc) Present half-mass radius
      real*4        Rhi_1       ! (pc) Initial half-mass radius
      real*4        r_1         ! (kpc) Present distance to center of main galaxy
      real*4        ri_1        ! (kpc) Initial distance to center of main galaxy
      real*4        logMh_1     ! ([Msun]) Host galaxy mass at time of cluster formation
      real*4        x_1         ! (kpc) x-coordinate of cluster with respect to main galaxy
      real*4        y_1         ! (kpc) y-coordinate of cluster with respect to main galaxy
      real*4        z_1         ! (kpc) z-coordinate of cluster with respect to main galaxy
      real*4        vx_1        ! (km/s) x-velocity of cluster
      real*4        vy_1        ! (km/s) y-velocity of cluster
      real*4        vz_1        ! (km/s) z-velocity of cluster

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

C  Loading file 'table3.dat'	! *Catalog of clusters in model Sb-ii

C  Format for file interpretation

    1 format(
     +  F3.1,1X,F4.2,1X,F4.2,1X,F4.1,1X,F4.1,1X,F5.1,1X,F5.1,1X,F4.1,
     +  1X,F6.1,1X,F6.1,1X,F6.1,1X,F6.1,1X,F6.1,1X,F6.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,97
        read(1,'(A82)')ar__
        read(ar__,1)zf,logM,logMi,Rh,Rhi,r,ri,logMh,x,y,z,vx,vy,vz
c    ..............Just test output...........
        write(6,1)zf,logM,logMi,Rh,Rhi,r,ri,logMh,x,y,z,vx,vy,vz
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! *Catalog of clusters in model Cb-ii

C  Format for file interpretation

    2 format(
     +  F3.1,1X,F4.2,1X,F4.2,1X,F4.1,1X,F4.1,1X,F5.1,1X,F5.1,1X,F4.1,
     +  1X,F6.1,1X,F6.1,1X,F6.1,1X,F6.1,1X,F6.1,1X,F6.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,87
        read(1,'(A82)')ar__1
        read(ar__1,2)
     +  zf_1,logM_1,logMi_1,Rh_1,Rhi_1,r_1,ri_1,logMh_1,x_1,y_1,z_1,
     +  vx_1,vy_1,vz_1
c    ..............Just test output...........
        write(6,2)
     +  zf_1,logM_1,logMi_1,Rh_1,Rhi_1,r_1,ri_1,logMh_1,x_1,y_1,z_1,
     +  vx_1,vy_1,vz_1
c    .......End.of.Just test output...........
      end do
      close(1)

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