FORTRAN Generation
(/./ftp/cats/J/ApJ/959/142)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/959/142 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-Oct-14
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/959/142        Long-rising Type II SNe in the ZTF CLU        (Sit+, 2023)
*================================================================================
*Long-rising Type II supernovae in the Zwicky Transient Facility Census of the
*Local Universe.
*    Sit T., Kasliwal M.M., Tzanidakis A., De K., Fremling C., Sollerman J.,
*    Gal-Yam A., Miller A.A., Adams S., Aloisi R., Andreoni I., Chu M.,
*    Cook D., Das K.K., Dugas A., Groom S.L., Ho A.Y.Q., Karambelkar V.,
*    Neill J.D., Masci F.J., Medford M.S., Purdum J., Sharma Y., Smith R.,
*    Stein R., Yan L., Yao Y., Zhang C.
*   <Astrophys. J., 959, 142 (2023)>
*   =2023ApJ...959..142S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! ZTF CLU sample of 13 long-rising SNe II

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg       ! (deg) Right Ascension J2000
      real*8        DEdeg       ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*8   SN          ! Supernova (SN) designation
      character*1   f_SN        ! Note on SN 2019bsw; flag added by CDS (1)
      character*12  OName       ! Other name (ZTF)
      integer*4     RAh         ! (h) Hour of right ascension (J2000)
      integer*4     RAm         ! (min) Minute of right ascension (J2000)
      real*4        RAs         ! (s) Second of right ascension (J2000)
      character*1   DE_         ! Sign of declination (J2000)
      integer*4     DEd         ! (deg) Degree of declination (J2000)
      integer*4     DEm         ! (arcmin) Arcminute of declination (J2000)
      real*4        DEs         ! (arcsec) Arcsecond of declination (J2000)
      character*25  Gal         ! Host galaxy name
      real*4        z           ! [0.002/0.05] Redshift from NED
      character*4   Inst        ! Instrument used for the spectrum
*                                 ("DBSP", "LRIS", "SEDM"); column added by CDS
      integer*4     Phase       ! (d) [-69/143]? The phase of each spectrum with
*                                 respect to the r-band peak of the sncosmo 
*                                 fitted light curve; column added by CDS
*Note (1): The spectrum for SN 2019bsw in Figure 7 is a reproduction of
*    public data from TNS, which is available at this link:
*    https://www.wis-tns.org/object/2019bsw
*    Only data collected by the ZTF collaboration are included here.

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

C  Declarations for 'fig2.dat'	! Optical Light Curves (Data behind Figure 2)

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

      character*8   SN_1        ! Supernova name
      real*8        JD          ! (d) Julian Date
      real*4        ZTFmag      ! (mag) [13.99/29.9] Apparent magnitude in Filt
      real*4        e_ZTFmag    ! (mag) [0.001/0.4]? Uncertainty on ZTFmag
      character*5   Filt        ! Filter used ("ztfg", "ztfr", "ztfi",
*                                 "sdssg", "sdssr", "sdssi")
      character*5   magLim      ! Upper limit on magnitude ("True" or "False")

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

C  Declarations for 'fig3.dat'	! Optical Light Curves (Data behind Figure 3)

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

      character*8   SN_2        ! Supernova name
      real*8        JD_1        ! (d) Julian Date
      real*4        ZTFmag_1    ! (mag) [13.99/29.9] Apparent magnitude in Filt
      real*4        e_ZTFmag_1  ! (mag) [0.001/0.4]? Uncertainty on ZTFmag
      character*5   Filt_1      ! Filter used ("ztfg", "ztfr", "ztfi",
*                                 "sdssg", "sdssr", "sdssi")
      character*5   magLim_1    ! Upper limit on magnitude ("True" or "False")

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

C  Declarations for 'fig6.dat'	! Optical Spectra (Data behind Figure 6)

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

      character*8   SN_3        ! Supernova name
      character*4   Inst_1      ! Instrument used ("DBSP", "LRIS", "SEDM")
      integer*4     phase_1     ! (d) [-69/143] Supernova phase in observer days;
*                                 preceding -/+ indicates pre/post-peak
      real*8        lambda      ! (0.1nm) [3059/10311] Observed wavelength; angstroms
      real*8        Flux        ! [-8.03/13.3] Scaled flux

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

C  Declarations for 'fig7.dat'	! Optical Spectra (Data behind Figure 7)

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

      character*8   SN_4        ! Supernova name
      character*4   Inst_2      ! Instrument used ("DBSP", "LRIS", "SEDM")
      integer*4     phase_2     ! (d) [-69/143] Supernova phase in observer days;
*                                 preceding -/+ indicates pre/post-peak
      real*8        lambda_1    ! (0.1nm) [3059/10311] Observed wavelength; angstroms
      real*8        Flux_1      ! [-8.03/13.3] Scaled flux

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

C  Declarations for 'fig8.dat'	! Optical Spectra (Data behind Figure 8)

      integer*4 nr__5
      parameter (nr__5=20782)	! Number of records
      character*34 ar__5  	! Full-size record

      character*8   SN_5        ! Supernova name
      character*4   Inst_3      ! Instrument used ("DBSP", "LRIS", "SEDM")
      integer*4     phase_3     ! (d) [-69/143] Supernova phase in observer days;
*                                 preceding -/+ indicates pre/post-peak
      real*8        lambda_2    ! (0.1nm) [3059/10311] Observed wavelength; angstroms
      real*8        Flux_2      ! [-8.03/13.3] Scaled flux

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

C  Loading file 'table1.dat'	! ZTF CLU sample of 13 long-rising SNe II

C  Format for file interpretation

    1 format(
     +  3X,A8,1X,A1,1X,A12,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,
     +  1X,A25,1X,F6.4,1X,A4,1X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,20
        read(1,'(A94)')ar__
        read(ar__,1)
     +  SN,f_SN,OName,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Gal,z,Inst,Phase
        if(ar__(91:94) .EQ. '') Phase = iNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  SN,f_SN,OName,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Gal,z,Inst,Phase
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'fig2.dat'	! Optical Light Curves (Data behind Figure 2)

C  Format for file interpretation

    2 format(3X,A8,1X,F11.3,1X,F6.3,1X,F5.3,1X,A5,1X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'fig2.dat')
      write(6,*) '....Loading file: fig2.dat'
      do i__=1,904
        read(1,'(A48)')ar__1
        read(ar__1,2)SN_1,JD,ZTFmag,e_ZTFmag,Filt,magLim
        if(ar__1(32:36) .EQ. '') e_ZTFmag = rNULL__
c    ..............Just test output...........
        write(6,2)SN_1,JD,ZTFmag,e_ZTFmag,Filt,magLim
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'fig3.dat'	! Optical Light Curves (Data behind Figure 3)

C  Format for file interpretation

    3 format(3X,A8,1X,F11.3,1X,F6.3,1X,F5.3,1X,A5,1X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'fig3.dat')
      write(6,*) '....Loading file: fig3.dat'
      do i__=1,836
        read(1,'(A48)')ar__2
        read(ar__2,3)SN_2,JD_1,ZTFmag_1,e_ZTFmag_1,Filt_1,magLim_1
        if(ar__2(32:36) .EQ. '') e_ZTFmag_1 = rNULL__
c    ..............Just test output...........
        write(6,3)SN_2,JD_1,ZTFmag_1,e_ZTFmag_1,Filt_1,magLim_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'fig6.dat'	! Optical Spectra (Data behind Figure 6)

C  Format for file interpretation

    4 format(A8,1X,A4,1X,I4,1X,F7.1,1X,F7.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'fig6.dat')
      write(6,*) '....Loading file: fig6.dat'
      do i__=1,23318
        read(1,'(A34)')ar__3
        read(ar__3,4)SN_3,Inst_1,phase_1,lambda,Flux
c    ..............Just test output...........
        write(6,4)SN_3,Inst_1,phase_1,lambda,Flux
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'fig7.dat'	! Optical Spectra (Data behind Figure 7)

C  Format for file interpretation

    5 format(A8,1X,A4,1X,I4,1X,F7.1,1X,F7.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'fig7.dat')
      write(6,*) '....Loading file: fig7.dat'
      do i__=1,15210
        read(1,'(A34)')ar__4
        read(ar__4,5)SN_4,Inst_2,phase_2,lambda_1,Flux_1
c    ..............Just test output...........
        write(6,5)SN_4,Inst_2,phase_2,lambda_1,Flux_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'fig8.dat'	! Optical Spectra (Data behind Figure 8)

C  Format for file interpretation

    6 format(A8,1X,A4,1X,I4,1X,F7.1,1X,F7.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'fig8.dat')
      write(6,*) '....Loading file: fig8.dat'
      do i__=1,20782
        read(1,'(A34)')ar__5
        read(ar__5,6)SN_5,Inst_3,phase_3,lambda_2,Flux_2
c    ..............Just test output...........
        write(6,6)SN_5,Inst_3,phase_3,lambda_2,Flux_2
c    .......End.of.Just test output...........
      end do
      close(1)

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