FORTRAN Generation
(/./ftp/cats/J/ApJ/703/42)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/703/42 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/703/42    HST photometry of M87 globular clusters            (Peng+, 2009)
*================================================================================
*The color-magnitude relation for metal-poor globular clusters in M87:
*confirmation from deep HST/ACS imaging.
*    Peng E.W., Jordan A., Blakeslee J.P., Mieske S., Cote P., Ferrarese L.,
*    Harris W.E., Madrid J.P., Meurer G.R.
*   <Astrophys. J., 703, 42-51 (2009)>
*   =2009ApJ...703...42P
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Positions and KINGPHOT photometry for M87 GCs

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     v_PJB2009_  ! Running identification number
      real*8        RAdeg       ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg       ! (deg) Declination in decimal degrees (J2000)
      real*4        Vmag        ! (mag) Converted V band magnitude (Vega) (1)
      real*4        e_Vmag      ! (mag) The 1{sigma} uncertainty in Vmag
      real*4        Imag        ! (mag) Converted I band magnitude (Vega) (1)
      real*4        e_Imag      ! (mag) The 1{sigma} uncertainty in Imag
*Note (1): We converted magnitudes to V and I by using the relation between
*     (V-I) and (m_F606W_-m_F814W_) presented in Equation (3) of DeGraaff et
*     al. (2007, Cat. J/ApJ/671/1624), namely
*          (V-I)=1.2(m_F606W_-m_F814W_)+0.06,
*     and the following equation from Table 22 in Sirianni et al.,
*     2005PASP..117.1049S; I=m_F814W,OBMAG_+25.495-0.002(V-I) (see section
*     3.1 for further details).

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

C  Loading file 'table1.dat'	! Positions and KINGPHOT photometry for M87 GCs

C  Format for file interpretation

    1 format(I4,1X,F11.7,1X,F10.7,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,2250
        read(1,'(A53)')ar__
        read(ar__,1)v_PJB2009_,RAdeg,DEdeg,Vmag,e_Vmag,Imag,e_Imag
c    ..............Just test output...........
        write(6,1)v_PJB2009_,RAdeg,DEdeg,Vmag,e_Vmag,Imag,e_Imag
c    .......End.of.Just test output...........
      end do
      close(1)

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