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 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 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     ! [4524/18890] SDSS-II Supernova Project ID
      character*6   SN          ! Supernova IAU name (YYYYaa)
      real*4        z           ! Redshift in heliocentric frame
      real*8        MJD         ! (d) [53663/54393] B_max_ Modified Julian Date
      real*4        Dm15        ! (mag) ? {Delta}m_15_ (interpolated S-corrected CSP
*                                    magnitude-SDSS magnitude decline plotted as
*                                    a function of rest-frame epoch)
      real*4        AV          ! (mag) Extinction A_v_ (from Schlegel et al.,
*                                   1998ApJ...500..525S, dust maps)
      character*4   Ref         ! Reference for the CSP photometry (1)
      character*3   Peculiar    ! SNe spectroscopic peculiarity (Yes)
      character*1   f_Peculiar  ! 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        ! Supernova IAU name (YYYYaa)
      real*8        MJD_1       ! Modified Julian Date
      real*8        CSP_SDSS    ! (mag) The Carnegie Supernova Project (CSP)
*                                      photometry transformed into the SDSS
*                                      photometric system
      real*4        e_CSP_SDSS  ! (mag) Error in CSP(SDSS)
      real*8        SDSS_Native ! (mag) SDSS magnitude in the native photometric
*                                      system
      real*4        e_SDSS_Native ! (mag) Error in SDSS(Native)
      integer*4     Spectrum    ! O=no or 1=yes
      character*1   Band        ! [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        ! Supernova IAU name (YYYYaa)
      real*8        MJD_2       ! Modified Julian Date
      real*8        CSP_SDSS_1  ! (mag) The Carnegie Supernova Project (CSP)
*                                      photometry transformed into the SDSS
*                                      photometric system
      real*4        e_CSP_SDSS_1 ! (mag) Error in CSP(SDSS)
      real*8        SDSS_Native_1 ! (mag) SDSS magnitude in the native photometric
*                                      system
      real*4        e_SDSS_Native_1 ! (mag) Error in SDSS(Native)
      integer*4     Spectrum_1  ! O=no or 1=yes
      character*1   Band_1      ! [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        ! Supernova IAU name (YYYYaa)
      real*8        MJD_3       ! Modified Julian Date
      real*8        CSP_SDSS_1  ! (mag) The Carnegie Supernova Project (CSP)
*                                      photometry transformed into the SDSS
*                                      photometric system
      real*4        e_CSP_SDSS_1 ! (mag) Error in CSP(SDSS)
      real*8        SDSS_Native_1 ! (mag) SDSS magnitude in the native photometric
*                                      system
      real*4        e_SDSS_Native_1 ! (mag) Error in SDSS(Native)
      integer*4     Spectrum_2  ! O=no or 1=yes
      character*1   Band_2      ! [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        ! Supernova IAU name (YYYYaa)
      real*8        MJD_4       ! Modified Julian Date
      real*8        CSP_SDSS_1  ! (mag) The Carnegie Supernova Project (CSP)
*                                      photometry transformed into the SDSS
*                                      photometric system
      real*4        e_CSP_SDSS_1 ! (mag) Error in CSP(SDSS)
      real*8        SDSS_Native_1 ! (mag) SDSS magnitude in the native photometric
*                                      system
      real*4        e_SDSS_Native_1 ! (mag) Error in SDSS(Native)
      integer*4     Spectrum_3  ! O=no or 1=yes
      character*1   Band_3      ! [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,SN,z,MJD,Dm15,AV,Ref,Peculiar,f_Peculiar
        if(ar__(29:32) .EQ. '') Dm15 = rNULL__
c    ..............Just test output...........
        write(6,1)SDSS_II,SN,z,MJD,Dm15,AV,Ref,Peculiar,f_Peculiar
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,MJD_1,CSP_SDSS,e_CSP_SDSS,SDSS_Native,e_SDSS_Native,
     +  Spectrum,Band
c    ..............Just test output...........
        write(6,2)
     +  SN_1,MJD_1,CSP_SDSS,e_CSP_SDSS,SDSS_Native,e_SDSS_Native,
     +  Spectrum,Band
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,MJD_2,CSP_SDSS_1,e_CSP_SDSS_1,SDSS_Native_1,
     +  e_SDSS_Native_1,Spectrum_1,Band_1
c    ..............Just test output...........
        write(6,3)
     +  SN_2,MJD_2,CSP_SDSS_1,e_CSP_SDSS_1,SDSS_Native_1,
     +  e_SDSS_Native_1,Spectrum_1,Band_1
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,MJD_3,CSP_SDSS_1,e_CSP_SDSS_1,SDSS_Native_1,
     +  e_SDSS_Native_1,Spectrum_2,Band_2
c    ..............Just test output...........
        write(6,4)
     +  SN_3,MJD_3,CSP_SDSS_1,e_CSP_SDSS_1,SDSS_Native_1,
     +  e_SDSS_Native_1,Spectrum_2,Band_2
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,MJD_4,CSP_SDSS_1,e_CSP_SDSS_1,SDSS_Native_1,
     +  e_SDSS_Native_1,Spectrum_3,Band_3
c    ..............Just test output...........
        write(6,5)
     +  SN_4,MJD_4,CSP_SDSS_1,e_CSP_SDSS_1,SDSS_Native_1,
     +  e_SDSS_Native_1,Spectrum_3,Band_3
c    .......End.of.Just test output...........
      end do
      close(1)

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