FORTRAN Generation
(/./ftp/cats/J/ApJ/663/296)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/663/296 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/663/296 UBV(RI)c phot. of omega Cen (NGC5139) subgiants (Villanova+, 2007)
*================================================================================
*The multiplicity of the subgiant branch of {omega} Centauri:
*evidence for prolonged star formation.
*    Villanova S., Piotto G., King I.R., Anderson J., Bedin L.R., Gratton R.G.,
*    Cassisi S., Momany Y., Bellini A., Cool A.M., Recio-Blanco A., Renzini A.
*   <Astrophys. J., 663, 296-314 (2007)>
*   =2007ApJ...663..296V
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Stars observed at HST

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

C  J2000.0 position composed of: RAdeg DEdeg
      integer*4     PKD        (nr__) ! Sequential number,
*                                     Cl* NGC 5139 PKD NNNNN in Simbad
      real*8        RAdeg      (nr__) ! (deg) Right ascension in decimal degrees (J2000.0)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000.0)
      real*4        F435W      (nr__) ! (mag) HST F435W magnitude
      real*4        F435W_F625W(nr__) ! (mag) HST F435W-F625W colour index
      real*4        Vmag       (nr__) ! (mag) Johnson V magnitude
      integer*4     HRV        (nr__) ! (km/s) Heliocentric radial velocity
      integer*4     Teff       (nr__) ! (K) Effective temperature
      real*4        logg       (nr__) ! ([cm/s2]) Surface gravity

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

C  Declarations for 'table2.dat'	! Stars observed at WFI

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

C  J2000.0 position composed of: RAdeg DEdeg
      integer*4     PKD_1      (nr__1) ! Sequential number,
*                                     Cl* NGC 5139 PKD NNNNN in Simbad
      real*8        RAdeg_1    (nr__1) ! (deg) Right ascension in decimal degrees (J2000.0)
      real*8        DEdeg_1    (nr__1) ! (deg) Declination in decimal degrees (J2000.0)
      real*4        Vmag_1     (nr__1) ! (mag) Johnson V magnitude
      real*4        B_V        (nr__1) ! (mag) Johnson B-V colour index
      real*4        V_Ic       (nr__1) ! (mag) Johnson-Cousins V-I colour index
      real*4        V_Rc       (nr__1) ! (mag) Johnson-Cousins V-R colour index
      integer*4     HRV_1      (nr__1) ! (km/s) Heliocentric radial velocity
      integer*4     Teff_1     (nr__1) ! (K) Effective temperature
      real*4        logg_1     (nr__1) ! ([cm/s2]) Surface gravity
      real*4        v_Fe_H_    (nr__1) ! ([-]) Metallicity
      real*4        Age        (nr__1) ! (Gyr) Estimated age

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

C  Loading file 'table1.dat'	! Stars observed at HST

C  Format for file interpretation

    1 format(
     +  I5,1X,F10.6,1X,F10.6,1X,F5.2,1X,F4.2,1X,F5.2,1X,I3,1X,I4,1X,
     +  F3.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,22
        read(1,'(A57)')ar__
        read(ar__,1)
     +  PKD(i__),RAdeg(i__),DEdeg(i__),F435W(i__),F435W_F625W(i__),
     +  Vmag(i__),HRV(i__),Teff(i__),logg(i__)
c    ..............Just test output...........
        write(6,1)
     +  PKD(i__),RAdeg(i__),DEdeg(i__),F435W(i__),F435W_F625W(i__),
     +  Vmag(i__),HRV(i__),Teff(i__),logg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Stars observed at WFI

C  Format for file interpretation

    2 format(
     +  I5,1X,F10.6,1X,F10.6,1X,F5.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,I3,1X,
     +  I4,1X,F3.1,1X,F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,57
        read(1,'(A72)')ar__1
        read(ar__1,2)
     +  PKD_1(i__),RAdeg_1(i__),DEdeg_1(i__),Vmag_1(i__),B_V(i__),
     +  V_Ic(i__),V_Rc(i__),HRV_1(i__),Teff_1(i__),logg_1(i__),
     +  v_Fe_H_(i__),Age(i__)
c    ..............Just test output...........
        write(6,2)
     +  PKD_1(i__),RAdeg_1(i__),DEdeg_1(i__),Vmag_1(i__),B_V(i__),
     +  V_Ic(i__),V_Rc(i__),HRV_1(i__),Teff_1(i__),logg_1(i__),
     +  v_Fe_H_(i__),Age(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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