Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/959/142 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-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 (nr__) ! (deg) Right Ascension J2000
real*8 DEdeg (nr__) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*8 SN (nr__) ! Supernova (SN) designation
character*1 f_SN (nr__) ! Note on SN 2019bsw; flag added by CDS (1)
character*12 OName (nr__) ! Other name (ZTF)
integer*4 RAh (nr__) ! (h) Hour of right ascension (J2000)
integer*4 RAm (nr__) ! (min) Minute of right ascension (J2000)
real*4 RAs (nr__) ! (s) Second of right ascension (J2000)
character*1 DE_ (nr__) ! Sign of declination (J2000)
integer*4 DEd (nr__) ! (deg) Degree of declination (J2000)
integer*4 DEm (nr__) ! (arcmin) Arcminute of declination (J2000)
real*4 DEs (nr__) ! (arcsec) Arcsecond of declination (J2000)
character*25 Gal (nr__) ! Host galaxy name
real*4 z (nr__) ! [0.002/0.05] Redshift from NED
character*4 Inst (nr__) ! Instrument used for the spectrum
* ("DBSP", "LRIS", "SEDM"); column added by CDS
integer*4 Phase (nr__) ! (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 (nr__1) ! Supernova name
real*8 JD (nr__1) ! (d) Julian Date
real*4 ZTFmag (nr__1) ! (mag) [13.99/29.9] Apparent magnitude in Filt
real*4 e_ZTFmag (nr__1) ! (mag) [0.001/0.4]? Uncertainty on ZTFmag
character*5 Filt (nr__1) ! Filter used ("ztfg", "ztfr", "ztfi",
* "sdssg", "sdssr", "sdssi")
character*5 magLim (nr__1) ! 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 (nr__2) ! Supernova name
real*8 JD_1 (nr__2) ! (d) Julian Date
real*4 ZTFmag_1 (nr__2) ! (mag) [13.99/29.9] Apparent magnitude in Filt
real*4 e_ZTFmag_1 (nr__2) ! (mag) [0.001/0.4]? Uncertainty on ZTFmag
character*5 Filt_1 (nr__2) ! Filter used ("ztfg", "ztfr", "ztfi",
* "sdssg", "sdssr", "sdssi")
character*5 magLim_1 (nr__2) ! 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 (nr__3) ! Supernova name
character*4 Inst_1 (nr__3) ! Instrument used ("DBSP", "LRIS", "SEDM")
integer*4 phase_1 (nr__3) ! (d) [-69/143] Supernova phase in observer days;
* preceding -/+ indicates pre/post-peak
real*8 lambda (nr__3) ! (0.1nm) [3059/10311] Observed wavelength; angstroms
real*8 Flux (nr__3) ! [-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 (nr__4) ! Supernova name
character*4 Inst_2 (nr__4) ! Instrument used ("DBSP", "LRIS", "SEDM")
integer*4 phase_2 (nr__4) ! (d) [-69/143] Supernova phase in observer days;
* preceding -/+ indicates pre/post-peak
real*8 lambda_1 (nr__4) ! (0.1nm) [3059/10311] Observed wavelength; angstroms
real*8 Flux_1 (nr__4) ! [-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 (nr__5) ! Supernova name
character*4 Inst_3 (nr__5) ! Instrument used ("DBSP", "LRIS", "SEDM")
integer*4 phase_3 (nr__5) ! (d) [-69/143] Supernova phase in observer days;
* preceding -/+ indicates pre/post-peak
real*8 lambda_2 (nr__5) ! (0.1nm) [3059/10311] Observed wavelength; angstroms
real*8 Flux_2 (nr__5) ! [-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(i__),f_SN(i__),OName(i__),RAh(i__),RAm(i__),RAs(i__),
+ DE_(i__),DEd(i__),DEm(i__),DEs(i__),Gal(i__),z(i__),Inst(i__),
+ Phase(i__)
if(ar__(91:94) .EQ. '') Phase(i__) = iNULL__
RAdeg(i__) = rNULL__
DEdeg(i__) = rNULL__
c Derive coordinates RAdeg and DEdeg from input data
c (RAdeg and DEdeg are set to rNULL__ when unknown)
if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c ..............Just test output...........
write(6,1)
+ SN(i__),f_SN(i__),OName(i__),RAh(i__),RAm(i__),RAs(i__),
+ DE_(i__),DEd(i__),DEm(i__),DEs(i__),Gal(i__),z(i__),Inst(i__),
+ Phase(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
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(i__),JD(i__),ZTFmag(i__),e_ZTFmag(i__),Filt(i__),
+ magLim(i__)
if(ar__1(32:36) .EQ. '') e_ZTFmag(i__) = rNULL__
c ..............Just test output...........
write(6,2)
+ SN_1(i__),JD(i__),ZTFmag(i__),e_ZTFmag(i__),Filt(i__),
+ magLim(i__)
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(i__),JD_1(i__),ZTFmag_1(i__),e_ZTFmag_1(i__),Filt_1(i__),
+ magLim_1(i__)
if(ar__2(32:36) .EQ. '') e_ZTFmag_1(i__) = rNULL__
c ..............Just test output...........
write(6,3)
+ SN_2(i__),JD_1(i__),ZTFmag_1(i__),e_ZTFmag_1(i__),Filt_1(i__),
+ magLim_1(i__)
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(i__),Inst_1(i__),phase_1(i__),lambda(i__),Flux(i__)
c ..............Just test output...........
write(6,4)
+ SN_3(i__),Inst_1(i__),phase_1(i__),lambda(i__),Flux(i__)
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(i__),Inst_2(i__),phase_2(i__),lambda_1(i__),Flux_1(i__)
c ..............Just test output...........
write(6,5)
+ SN_4(i__),Inst_2(i__),phase_2(i__),lambda_1(i__),Flux_1(i__)
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(i__),Inst_3(i__),phase_3(i__),lambda_2(i__),Flux_2(i__)
c ..............Just test output...........
write(6,6)
+ SN_5(i__),Inst_3(i__),phase_3(i__),lambda_2(i__),Flux_2(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end