FORTRAN Generation
(/./ftp/cats/J/MNRAS/457/3470)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/457/3470 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-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/MNRAS/457/3470    SN Ia host-galaxy/cosmological parameters  (Campbell+, 2016)
*================================================================================
*How SN Ia host-galaxy properties affect cosmological parameters.
*    Campbell H., Fraser M., Gilmore G.
*   <Mon. Not. R. Astron. Soc., 457, 3470-3491 (2016)>
*   =2016MNRAS.457.3470C    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablec1.dat'	! SNe Ia with host galaxy data

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     SN         (nr__) ! SN identification number,
*                                       SDSS-II SN NNNNN in Simbad
      real*8        zH         (nr__) ! Host-galaxy redshift
      real*4        e_zH       (nr__) ! Host-galaxy redshift error
      real*8        RAdeg      (nr__) ! (deg) [-43/45] SN right ascension (J2000)
      real*8        DEdeg      (nr__) ! (deg) [-1.3/1.3] SN declination (J2000)
      real*4        X0         (nr__) ! (mag) SN SALT2 parameter X0
      real*4        e_X0       (nr__) ! (mag) SN SALT2 parameter X0 error
      real*8        X1         (nr__) ! (mag) SN SALT2 parameter X1
      real*8        e_X1       (nr__) ! (mag) SN SALT2 parameter X1 error
      real*8        c          (nr__) ! (mag) SN SALT2 colour ((B-V)max-<B-V>)
      real*8        e_c        (nr__) ! (mag) SN SALT2 colour error
      real*4        C00        (nr__) ! SN SALT2 X0 variance
      real*4        C01        (nr__) ! SN SALT2 (X0, X1) covariance
      real*4        C02        (nr__) ! SN SALT2 X0, colour) covariance
      real*8        C11        (nr__) ! SN SALT2 X1 variance
      real*8        C12        (nr__) ! SN SALT2 (X1, colour) covariance
      real*8        C22        (nr__) ! SN SALT2 colour variance
      real*8        mu         (nr__) ! (mag) SN distance modulus uncorrected for
*                                       Malmquist bias
      real*8        muc        (nr__) ! (mag) SN distance modulus corrected for
*                                       Malmquist bias
      real*8        e_muc      (nr__) ! (mag) SN distance modulus error
      real*8        mucos      (nr__) ! (mag) SN best-fitting cosmology estimated
*                                       distance modulus
      real*8        e_mucos    (nr__) ! (mag) SN best-fitting cosmology estimated
*                                       distance modulus error
      real*8        HR         (nr__) ! (mag) SN Hubble Residual from distance modulus
*                                       uncorrected for Malmquist bias
      real*8        HRc        (nr__) ! (mag) SN Hubble Residual from distance modulus
*                                       corrected for Malmquist bias
      real*8        e_HRc      (nr__) ! (mag) HR error
      character*20  Host       (nr__) ! Host-galaxy ObjID (DR8)
      character*1   n_Host     (nr__) ! [*] * when ObjID from SDSS DR7
      character*12  TypeH      (nr__) ! Host-galaxy type
      character*1   l_MetH     (nr__) ! [l] Limit flag on MetH
      real*8        MetH       (nr__) ! ([-]) Host-galaxy metallicity (Z)
      real*8        e_MetH     (nr__) ! ([-]) Host-galaxy metallicity error
      character*8   n_MetH     (nr__) ! Host-galaxy metallicity type
*                                       (measured or upper limit)
      real*8        logMassH   (nr__) ! ([Msun]) Host-galaxy mass
      real*8        e_logMassH (nr__) ! ([Msun]) Host-galaxy mass error
      character*1   l_logSFRH  (nr__) ! [l] Limit flag on logSFRH
      real*8        logSFRH    (nr__) ! ([Msun/yr]) Host-galaxy SFR
      real*8        e_logSFRH  (nr__) ! ([Msun/yr]) Host-galaxy SFR error
      character*5   n_logSFRH  (nr__) ! Host-galaxy SFR type
*                                       (measured or upper limit)
      real*8        logsSFRH   (nr__) ! ([yr-1]) Host-galaxy sSFR
      real*8        e_logsSFRH (nr__) ! ([yr-1]) Host-galaxy sSFR error
      real*8        logAge     (nr__) ! ([Gyr]) Host-galaxy age
      real*8        e_logAge   (nr__) ! ([Gyr]) Host-galaxy age error

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

C  Loading file 'tablec1.dat'	! SNe Ia with host galaxy data

C  Format for file interpretation

    1 format(
     +  I5,1X,F8.6,1X,E8.4,1X,F10.6,1X,F9.6,1X,E11.6,1X,E11.6,1X,F8.5,
     +  1X,F7.5,1X,F11.8,1X,F10.8,1X,E11.6,1X,E12.6,1X,E12.6,1X,F10.7,
     +  1X,F10.7,1X,F9.7,1X,F7.4,1X,F7.4,1X,F8.6,1X,F8.5,2X,F7.5,1X,
     +  F9.6,1X,F9.6,1X,F8.6,1X,A20,A1,1X,A12,1X,A1,F9.7,1X,F11.7,1X,
     +  A8,1X,F8.5,1X,F7.5,1X,A1,F11.8,1X,F8.6,1X,A5,1X,F9.5,1X,F7.5,
     +  1X,F9.6,1X,F8.6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablec1.dat')
      write(6,*) '....Loading file: tablec1.dat'
      do i__=1,564
        read(1,'(A399)')ar__
        read(ar__,1)
     +  SN(i__),zH(i__),e_zH(i__),RAdeg(i__),DEdeg(i__),X0(i__),
     +  e_X0(i__),X1(i__),e_X1(i__),c(i__),e_c(i__),C00(i__),C01(i__),
     +  C02(i__),C11(i__),C12(i__),C22(i__),mu(i__),muc(i__),
     +  e_muc(i__),mucos(i__),e_mucos(i__),HR(i__),HRc(i__),
     +  e_HRc(i__),Host(i__),n_Host(i__),TypeH(i__),l_MetH(i__),
     +  MetH(i__),e_MetH(i__),n_MetH(i__),logMassH(i__),
     +  e_logMassH(i__),l_logSFRH(i__),logSFRH(i__),e_logSFRH(i__),
     +  n_logSFRH(i__),logsSFRH(i__),e_logsSFRH(i__),logAge(i__),
     +  e_logAge(i__)
c    ..............Just test output...........
        write(6,1)
     +  SN(i__),zH(i__),e_zH(i__),RAdeg(i__),DEdeg(i__),X0(i__),
     +  e_X0(i__),X1(i__),e_X1(i__),c(i__),e_c(i__),C00(i__),C01(i__),
     +  C02(i__),C11(i__),C12(i__),C22(i__),mu(i__),muc(i__),
     +  e_muc(i__),mucos(i__),e_mucos(i__),HR(i__),HRc(i__),
     +  e_HRc(i__),Host(i__),n_Host(i__),TypeH(i__),l_MetH(i__),
     +  MetH(i__),e_MetH(i__),n_MetH(i__),logMassH(i__),
     +  e_logMassH(i__),l_logSFRH(i__),logSFRH(i__),e_logSFRH(i__),
     +  n_logSFRH(i__),logsSFRH(i__),e_logsSFRH(i__),logAge(i__),
     +  e_logAge(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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