FORTRAN Generation
()

Conversion of standardized ReadMe file for catalog 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.5, on 2013-Jun-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__=-1.e37)     	! NULL real number
      parameter  (iNULL__=-2147483647)	! NULL int  number

C=============================================================================
Cat. J/MNRAS/403/1213   Tracers of stellar mass-loss. I.  (Gonzalez-Lopezlira+, 2010)
*================================================================================
*Tracers of stellar mass-loss.
*I. Optical and near-IR colours and surface brightness fluctuations.
*    Gonzalez-Lopezlira R.A., Bruzual-A. G., Charlot S., Ballesteros-Paredes J.,
*    Loinard L.
*   <Mon. Not. R. Astron. Soc. 403, 1213 (2010)>
*   =2010MNRAS.403.1213G
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Colours for CB09 models with fiducial mass-loss
                             but without dusty envelopes

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

      real*4        Z          (nr__) ! Initial metallicity
      real*4        Y          (nr__) ! Initial helium fraction
      real*4        Age        (nr__) ! (Gyr) Age
      real*4        V_B        (nr__) ! (mag) V-B colour index
      real*4        V_R        (nr__) ! (mag) V-R colour index
      real*4        V_I        (nr__) ! (mag) V-I colour index
      real*4        V_J        (nr__) ! (mag) V-J colour index
      real*4        V_H        (nr__) ! (mag) V-H colour index
      real*4        V_Ks       (nr__) ! (mag) V-K_s colour index
      real*4        V_K        (nr__) ! (mag) V-K colour index

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

C  Declarations for 'table2.dat'	! Colours for CB09 models with fiducial mass-loss
                             and dusty envelopes

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

      real*4        Z_1        (nr__1) ! Initial metallicity
      real*4        Y_1        (nr__1) ! Initial helium fraction
      real*4        Age_1      (nr__1) ! (Gyr) Age
      real*4        V_B_1      (nr__1) ! (mag) V-B colour index
      real*4        V_R_1      (nr__1) ! (mag) V-R colour index
      real*4        V_I_1      (nr__1) ! (mag) V-I colour index
      real*4        V_J_1      (nr__1) ! (mag) V-J colour index
      real*4        V_H_1      (nr__1) ! (mag) V-H colour index
      real*4        V_Ks_1     (nr__1) ! (mag) V-K_s colour index
      real*4        V_K_1      (nr__1) ! (mag) V-K colour index

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

C  Declarations for 'table3.dat'	! Surface brightness fluctuation (SBF) amplitudes
                             of CB09 models with fiducial mass-loss
                             but without dusty envelopes

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

      real*4        Z_2        (nr__2) ! Initial metallicity
      real*4        Y_2        (nr__2) ! Initial helium fraction
      real*4        Age_2      (nr__2) ! (Gyr) Age
      real*4        Bamp       (nr__2) ! (mag) B band surface brightness fluctuation amplitudes
      real*4        Vamp       (nr__2) ! (mag) V band surface brightness fluctuation amplitudes
      real*4        Ramp       (nr__2) ! (mag) R band surface brightness fluctuation amplitudes
      real*4        Iamp       (nr__2) ! (mag) I band surface brightness fluctuation amplitudes
      real*4        Jamp       (nr__2) ! (mag) J band surface brightness fluctuation amplitudes
      real*8        Hamp       (nr__2) ! (mag) H band surface brightness fluctuation amplitudes
      real*8        Ksamp      (nr__2) ! (mag) Ks band surface brightness fluctuation amplitudes
      real*8        Kamp       (nr__2) ! (mag) K band surface brightness fluctuation amplitudes

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

C  Declarations for 'table4.dat'	! Surface brightness fluctuation (SBF) amplitudes
                             of CB09 models with fiducial mass-loss
                             and dusty envelopes

      integer*4 nr__3
      parameter (nr__3=342)	! Number of records
      character*77 ar__3  	! Full-size record

      real*4        Z_3        (nr__3) ! Initial metallicity
      real*4        Y_3        (nr__3) ! Initial helium fraction
      real*4        Age_3      (nr__3) ! (Gyr) Age
      real*4        Bamp_1     (nr__3) ! (mag) B band surface brightness fluctuation amplitudes
      real*4        Vamp_1     (nr__3) ! (mag) V band surface brightness fluctuation amplitudes
      real*4        Ramp_1     (nr__3) ! (mag) R band surface brightness fluctuation amplitudes
      real*4        Iamp_1     (nr__3) ! (mag) I band surface brightness fluctuation amplitudes
      real*4        Jamp_1     (nr__3) ! (mag) J band surface brightness fluctuation amplitudes
      real*8        Hamp_1     (nr__3) ! (mag) H band surface brightness fluctuation amplitudes
      real*8        Ksamp_1    (nr__3) ! (mag) Ks band surface brightness fluctuation amplitudes
      real*8        Kamp_1     (nr__3) ! (mag) K band surface brightness fluctuation amplitudes

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

C  Loading file 'table1.dat'	! Colours for CB09 models with fiducial mass-loss
*                             but without dusty envelopes

C  Format for file interpretation

    1 format(
     +  F6.4,1X,F4.2,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,
     +  1X,F6.3,1X,F6.3)

C  Effective file loading

      open(unit=1,file='table1.dat', status='old')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,342
        read(1,'(A67)')ar__
        read(ar__,1)
     +  Z(i__),Y(i__),Age(i__),V_B(i__),V_R(i__),V_I(i__),V_J(i__),
     +  V_H(i__),V_Ks(i__),V_K(i__)
c    ..............Just test output...........
        write(6,1)
     +  Z(i__),Y(i__),Age(i__),V_B(i__),V_R(i__),V_I(i__),V_J(i__),
     +  V_H(i__),V_Ks(i__),V_K(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Colours for CB09 models with fiducial mass-loss
*                             and dusty envelopes

C  Format for file interpretation

    2 format(
     +  F6.4,1X,F4.2,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,
     +  1X,F6.3,1X,F6.3)

C  Effective file loading

      open(unit=1,file='table2.dat', status='old')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,342
        read(1,'(A67)')ar__1
        read(ar__1,2)
     +  Z_1(i__),Y_1(i__),Age_1(i__),V_B_1(i__),V_R_1(i__),V_I_1(i__),
     +  V_J_1(i__),V_H_1(i__),V_Ks_1(i__),V_K_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  Z_1(i__),Y_1(i__),Age_1(i__),V_B_1(i__),V_R_1(i__),V_I_1(i__),
     +  V_J_1(i__),V_H_1(i__),V_Ks_1(i__),V_K_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Surface brightness fluctuation (SBF) amplitudes
*                             of CB09 models with fiducial mass-loss
*                             but without dusty envelopes

C  Format for file interpretation

    3 format(
     +  F6.4,1X,F4.2,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,
     +  1X,F7.3,1X,F7.3,1X,F7.3)

C  Effective file loading

      open(unit=1,file='table3.dat', status='old')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,342
        read(1,'(A77)')ar__2
        read(ar__2,3)
     +  Z_2(i__),Y_2(i__),Age_2(i__),Bamp(i__),Vamp(i__),Ramp(i__),
     +  Iamp(i__),Jamp(i__),Hamp(i__),Ksamp(i__),Kamp(i__)
c    ..............Just test output...........
        write(6,3)
     +  Z_2(i__),Y_2(i__),Age_2(i__),Bamp(i__),Vamp(i__),Ramp(i__),
     +  Iamp(i__),Jamp(i__),Hamp(i__),Ksamp(i__),Kamp(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Surface brightness fluctuation (SBF) amplitudes
*                             of CB09 models with fiducial mass-loss
*                             and dusty envelopes

C  Format for file interpretation

    4 format(
     +  F6.4,1X,F4.2,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,
     +  1X,F7.3,1X,F7.3,1X,F7.3)

C  Effective file loading

      open(unit=1,file='table4.dat', status='old')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,342
        read(1,'(A77)')ar__3
        read(ar__3,4)
     +  Z_3(i__),Y_3(i__),Age_3(i__),Bamp_1(i__),Vamp_1(i__),
     +  Ramp_1(i__),Iamp_1(i__),Jamp_1(i__),Hamp_1(i__),Ksamp_1(i__),
     +  Kamp_1(i__)
c    ..............Just test output...........
        write(6,4)
     +  Z_3(i__),Y_3(i__),Age_3(i__),Bamp_1(i__),Vamp_1(i__),
     +  Ramp_1(i__),Iamp_1(i__),Jamp_1(i__),Hamp_1(i__),Ksamp_1(i__),
     +  Kamp_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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