FORTRAN Generation
(/./ftp/cats/J/AJ/144/17)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/144/17 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 2026-Aug-16
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/AJ/144/17  SDSS and CSP ugri photometry of 9 type Ia supernova (Mosher+, 2012)
*================================================================================
*A precision photometric comparison between SDSS-II and CSP type Ia supernova
*data.
*    Mosher J., Sako M., Corlies L., Folatelli G., Frieman J., Holtzman J.,
*    Jha S.W., Kessler R., Marriner J., Phillips M.M., Stritzinger M.,
*    Morrell N., Schneider D.P.
*   <Astron. J., 144, 17 (2012)>
*   =2012AJ....144...17M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Spectroscopically confirmed overlap SNe Ia

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

      integer*4     SDSS_II    (nr__) ! [4524/18890] SDSS-II Supernova Project ID
      character*6   SN         (nr__) ! Supernova IAU name (YYYYaa)
      real*4        z          (nr__) ! Redshift in heliocentric frame
      real*8        MJD        (nr__) ! (d) [53663/54393] B_max_ Modified Julian Date
      real*4        Dm15       (nr__) ! (mag) ? {Delta}m_15_ (interpolated S-corrected CSP
*                                    magnitude-SDSS magnitude decline plotted as
*                                    a function of rest-frame epoch)
      real*4        AV         (nr__) ! (mag) Extinction A_v_ (from Schlegel et al.,
*                                   1998ApJ...500..525S, dust maps)
      character*4   Ref        (nr__) ! Reference for the CSP photometry (1)
      character*3   Peculiar   (nr__) ! SNe spectroscopic peculiarity (Yes)
      character*1   f_Peculiar (nr__) ! Similarity (2)
*Note (1): Reference as follows:
* P+07 = Phillips et al. (2007PASP..119..360P).
* C+10 = Contreras et al. (2010, Cat. J/AJ/139/519).
* S+11 = Stritzinger et al. (2011, Cat. J/AJ/142/156).
*Note (2): Flag as follows:
* c = SN 2002ic like;
* d = SN 2005hj like;
* e = SN 2002cx like;
* f = SN 1986G like;
* g = SN 1991bg like.

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

C  Declarations for 'table6.dat'	! Magnitude data-u band

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

      character*6   SN_1       (nr__1) ! Supernova IAU name (YYYYaa)
      real*8        MJD_1      (nr__1) ! Modified Julian Date
      real*8        CSP_SDSS   (nr__1) ! (mag) The Carnegie Supernova Project (CSP)
*                                      photometry transformed into the SDSS
*                                      photometric system
      real*4        e_CSP_SDSS (nr__1) ! (mag) Error in CSP(SDSS)
      real*8        SDSS_Native(nr__1) ! (mag) SDSS magnitude in the native photometric
*                                      system
      real*4        e_SDSS_Native(nr__1) ! (mag) Error in SDSS(Native)
      integer*4     Spectrum   (nr__1) ! O=no or 1=yes
      character*1   Band       (nr__1) ! [ugri] Band (filter)

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

C  Declarations for 'table7.dat'	! Magnitude data-g band

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

      character*6   SN_2       (nr__2) ! Supernova IAU name (YYYYaa)
      real*8        MJD_2      (nr__2) ! Modified Julian Date
      real*8        CSP_SDSS_1 (nr__2) ! (mag) The Carnegie Supernova Project (CSP)
*                                      photometry transformed into the SDSS
*                                      photometric system
      real*4        e_CSP_SDSS_1(nr__2) ! (mag) Error in CSP(SDSS)
      real*8        SDSS_Native_1(nr__2) ! (mag) SDSS magnitude in the native photometric
*                                      system
      real*4        e_SDSS_Native_1(nr__2) ! (mag) Error in SDSS(Native)
      integer*4     Spectrum_1 (nr__2) ! O=no or 1=yes
      character*1   Band_1     (nr__2) ! [ugri] Band (filter)

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

C  Declarations for 'table8.dat'	! Magnitude data-r band

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

      character*6   SN_3       (nr__3) ! Supernova IAU name (YYYYaa)
      real*8        MJD_3      (nr__3) ! Modified Julian Date
      real*8        CSP_SDSS_1 (nr__3) ! (mag) The Carnegie Supernova Project (CSP)
*                                      photometry transformed into the SDSS
*                                      photometric system
      real*4        e_CSP_SDSS_1(nr__3) ! (mag) Error in CSP(SDSS)
      real*8        SDSS_Native_1(nr__3) ! (mag) SDSS magnitude in the native photometric
*                                      system
      real*4        e_SDSS_Native_1(nr__3) ! (mag) Error in SDSS(Native)
      integer*4     Spectrum_2 (nr__3) ! O=no or 1=yes
      character*1   Band_2     (nr__3) ! [ugri] Band (filter)

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

C  Declarations for 'table9.dat'	! Magnitude data-i band

      integer*4 nr__4
      parameter (nr__4=59)	! Number of records
      character*46 ar__4  	! Full-size record

      character*6   SN_4       (nr__4) ! Supernova IAU name (YYYYaa)
      real*8        MJD_4      (nr__4) ! Modified Julian Date
      real*8        CSP_SDSS_1 (nr__4) ! (mag) The Carnegie Supernova Project (CSP)
*                                      photometry transformed into the SDSS
*                                      photometric system
      real*4        e_CSP_SDSS_1(nr__4) ! (mag) Error in CSP(SDSS)
      real*8        SDSS_Native_1(nr__4) ! (mag) SDSS magnitude in the native photometric
*                                      system
      real*4        e_SDSS_Native_1(nr__4) ! (mag) Error in SDSS(Native)
      integer*4     Spectrum_3 (nr__4) ! O=no or 1=yes
      character*1   Band_3     (nr__4) ! [ugri] Band (filter)

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

C  Loading file 'table1.dat'	! Spectroscopically confirmed overlap SNe Ia

C  Format for file interpretation

    1 format(
     +  I5,1X,A6,1X,F6.4,1X,F7.1,1X,F4.2,1X,F5.3,1X,A4,1X,A3,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,9
        read(1,'(A49)')ar__
        read(ar__,1)
     +  SDSS_II(i__),SN(i__),z(i__),MJD(i__),Dm15(i__),AV(i__),
     +  Ref(i__),Peculiar(i__),f_Peculiar(i__)
        if(ar__(29:32) .EQ. '') Dm15(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  SDSS_II(i__),SN(i__),z(i__),MJD(i__),Dm15(i__),AV(i__),
     +  Ref(i__),Peculiar(i__),f_Peculiar(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Magnitude data-u band

C  Format for file interpretation

    2 format(A6,1X,F7.1,1X,F7.4,1X,F5.3,1X,F7.4,1X,F5.3,1X,I1,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,29
        read(1,'(A46)')ar__1
        read(ar__1,2)
     +  SN_1(i__),MJD_1(i__),CSP_SDSS(i__),e_CSP_SDSS(i__),
     +  SDSS_Native(i__),e_SDSS_Native(i__),Spectrum(i__),Band(i__)
c    ..............Just test output...........
        write(6,2)
     +  SN_1(i__),MJD_1(i__),CSP_SDSS(i__),e_CSP_SDSS(i__),
     +  SDSS_Native(i__),e_SDSS_Native(i__),Spectrum(i__),Band(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! Magnitude data-g band

C  Format for file interpretation

    3 format(A6,1X,F7.1,1X,F7.4,1X,F5.3,1X,F7.4,1X,F5.3,1X,I1,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,62
        read(1,'(A46)')ar__2
        read(ar__2,3)
     +  SN_2(i__),MJD_2(i__),CSP_SDSS_1(i__),e_CSP_SDSS_1(i__),
     +  SDSS_Native_1(i__),e_SDSS_Native_1(i__),Spectrum_1(i__),
     +  Band_1(i__)
c    ..............Just test output...........
        write(6,3)
     +  SN_2(i__),MJD_2(i__),CSP_SDSS_1(i__),e_CSP_SDSS_1(i__),
     +  SDSS_Native_1(i__),e_SDSS_Native_1(i__),Spectrum_1(i__),
     +  Band_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table8.dat'	! Magnitude data-r band

C  Format for file interpretation

    4 format(A6,1X,F7.1,1X,F7.4,1X,F5.3,1X,F7.4,1X,F5.3,1X,I1,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table8.dat')
      write(6,*) '....Loading file: table8.dat'
      do i__=1,61
        read(1,'(A46)')ar__3
        read(ar__3,4)
     +  SN_3(i__),MJD_3(i__),CSP_SDSS_1(i__),e_CSP_SDSS_1(i__),
     +  SDSS_Native_1(i__),e_SDSS_Native_1(i__),Spectrum_2(i__),
     +  Band_2(i__)
c    ..............Just test output...........
        write(6,4)
     +  SN_3(i__),MJD_3(i__),CSP_SDSS_1(i__),e_CSP_SDSS_1(i__),
     +  SDSS_Native_1(i__),e_SDSS_Native_1(i__),Spectrum_2(i__),
     +  Band_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table9.dat'	! Magnitude data-i band

C  Format for file interpretation

    5 format(A6,1X,F7.1,1X,F7.4,1X,F5.3,1X,F7.4,1X,F5.3,1X,I1,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table9.dat')
      write(6,*) '....Loading file: table9.dat'
      do i__=1,59
        read(1,'(A46)')ar__4
        read(ar__4,5)
     +  SN_4(i__),MJD_4(i__),CSP_SDSS_1(i__),e_CSP_SDSS_1(i__),
     +  SDSS_Native_1(i__),e_SDSS_Native_1(i__),Spectrum_3(i__),
     +  Band_3(i__)
c    ..............Just test output...........
        write(6,5)
     +  SN_4(i__),MJD_4(i__),CSP_SDSS_1(i__),e_CSP_SDSS_1(i__),
     +  SDSS_Native_1(i__),e_SDSS_Native_1(i__),Spectrum_3(i__),
     +  Band_3(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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