Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/869/56 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-13
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/869/56 Updated calibration of the CSP-I SNe Ia sample (Burns+, 2018)
*================================================================================
*The Carnegie Supernova Project: absolute calibration and the Hubble constant.
* Burns C.R., Parent E., Phillips M.M., Stritzinger M., Krisciunas K.,
* Suntzeff N.B., Hsiao E.Y., Contreras C., Anais J., Boldt L., Busta L.,
* Campillay A., Castellon S., Folatelli G., Freedman W.L., Gonzalez C.,
* Hamuy M., Heoflich P., Krzeminski W., Madore B.F., Morrell N., Persson S.E.,
* Roth M., Salgado F., Seron J., Torres S.
* <Astrophys. J., 869, 56 (2018)>
* =2018ApJ...869...56B
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Properties of Carnegie Supernova Project I (CSP-I)
and calibration SNe Ia
integer*4 nr__
parameter (nr__=139) ! Number of records
character*103 ar__ ! Full-size record
character*6 SN ! Supernova name (YYYYAA)
real*8 zhel ! [0.0008/0.09] Heliocentric redshift
real*8 zcmb ! [0.001/0.09] CMB redshift
real*4 sBV ! [0.2/1.4] Color-stretch parameter
real*4 e_sBV ! [0.03/0.09] sBV error
real*4 dm15_B ! (mag) [0.6/2] {Delta}m_15_(B) parameter
real*4 e_dm15_B ! (mag) [0.06/0.2] dm15(B) error
real*4 Vmax ! (mag) [9.9/19.3] V magnitude at maximum
real*4 e_Vmax ! (mag) [0.002/0.08] Vmax error
real*4 EBV ! (mag) [0.007/2] B-V color excess
real*4 e_EBV ! (mag) [0.008/0.08] EBV error
real*4 Rv ! [0.3/3.1] Reddening slope (R_V_)
real*4 e_Rv ! [0.1/1.4] Rv error
real*8 covER ! (mag) [-0.02/0.009] Covariance between E(B-V) and Rv
real*4 muCV ! (mag) [29.1/37.9] Cross-validated distance modulus
real*4 e_muCV ! (mag) [0.04/0.9] muCV error
real*4 Q ! [0.15/1] Quality parameter
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table6.dat' ! Photometry of CSP SNe Ia (SN 2012ht and SN 2015F)
in Cepheid hosts
integer*4 nr__1
parameter (nr__1=713) ! Number of records
character*39 ar__1 ! Full-size record
character*6 SN_1 ! Supernova name (2012ht or 2015F)
real*8 MJD ! (d) [56282.3/57249.4] Modified Julian Day;
* JD-2400000.5
character*1 Filt ! [ugriBVYJH] Filter used (1)
real*4 omag ! (mag) [13/19.4] Magnitude of observation in Filter
real*4 e_omag ! (mag) [0.005/0.06] Error in omag
real*8 Phase ! (d) [-15/142.5] Time in days from B-maximum
*Note (1): Optical (ugriBV) photometry of SN 2012ht is on the old,
* pre-October 2013 CSP-I natural system, whereas SN 2015F is on the new,
* post-October 2013 CSP-I natural system. All NIR (YJH) photometry is on
* the RetroCam natural system.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table7.dat' ! Optical photometry of secondary standards in the
standard systems of Smith+ (2002AJ....123.2121S)
and Landolt (1992AJ....104..340L)
integer*4 nr__2
parameter (nr__2=41) ! Number of records
character*114 ar__2 ! 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*6 SN_2 ! Supernova name (2012ht or 2015F)
integer*4 ID ! [1/31] Standard Star ID
integer*4 RAh ! (h) [7/10] 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 the 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)
real*4 umag ! (mag) [14.5/19.1]? u' band magnitude
real*4 e_umag ! (mag) [0.005/0.2]? Uncertainty in u'mag
real*4 gmag ! (mag) [13.3/19.4] g' band magnitude
real*4 e_gmag ! (mag) [0.003/0.2] Uncertainty in g'mag
real*4 rmag ! (mag) [12.9/18.3] r' band magnitude
real*4 e_rmag ! (mag) [0.002/0.1] Uncertainty in r'mag
real*4 imag ! (mag) [12.8/17.8] i' band magnitude
real*4 e_imag ! (mag) [0.002/0.2] Uncertainty in i'mag
real*4 Bmag ! (mag) [/18.4]?=0 B band magnitude
real*4 e_Bmag ! (mag) [/0.2]?=0 Uncertainty in Bmag
real*4 Vmag ! (mag) [13.139/18.586] V band magnitude
real*4 e_Vmag ! (mag) [0.003/0.1] Uncertainty in Vmag
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table8.dat' ! NIR photometry of Persson+ (1998AJ....116.2475P)
secondary standards
integer*4 nr__3
parameter (nr__3=29) ! Number of records
character*75 ar__3 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_1 ! (deg) Right Ascension J2000
real*8 DEdeg_1 ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*6 SN_3 ! Supernova name (2012ht or 2015F)
integer*4 ID_1 ! [101/123] Standard Star ID
integer*4 RAh_1 ! (h) [7/10] Hour of Right Ascension (J2000)
integer*4 RAm_1 ! (min) Minute of Right Ascension (J2000)
real*4 RAs_1 ! (s) Second of Right Ascension (J2000)
character*1 DE__1 ! Sign of the Declination (J2000)
integer*4 DEd_1 ! (deg) Degree of Declination (J2000)
integer*4 DEm_1 ! (arcmin) Arcminute of Declination (J2000)
real*4 DEs_1 ! (arcsec) Arcsecond of Declination (J2000)
real*4 Ymag ! (mag) [/18]? Y band magnitude
real*4 e_Ymag ! (mag) [/0.5]? Uncertainty in Ymag
real*4 Jmag ! (mag) [13.1/17.5] J band magnitude
real*4 e_Jmag ! (mag) [0.01/0.5] Uncertainty in Jmag
real*4 Hmag ! (mag) [12.6/17]? H band magnitude
real*4 e_Hmag ! (mag) [0.01/0.3]? Uncertainty in Hmag
C=============================================================================
C Loading file 'table2.dat' ! Properties of Carnegie Supernova Project I (CSP-I)
* and calibration SNe Ia
C Format for file interpretation
1 format(
+ A6,1X,F7.5,1X,F7.5,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F6.3,1X,
+ F5.3,1X,F5.3,1X,F5.3,1X,F3.1,1X,F3.1,1X,F7.4,1X,F5.2,1X,F4.2,
+ 1X,F4.2)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,139
read(1,'(A103)')ar__
read(ar__,1)
+ SN,zhel,zcmb,sBV,e_sBV,dm15_B,e_dm15_B,Vmax,e_Vmax,EBV,e_EBV,
+ Rv,e_Rv,covER,muCV,e_muCV,Q
c ..............Just test output...........
write(6,1)
+ SN,zhel,zcmb,sBV,e_sBV,dm15_B,e_dm15_B,Vmax,e_Vmax,EBV,e_EBV,
+ Rv,e_Rv,covER,muCV,e_muCV,Q
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table6.dat' ! Photometry of CSP SNe Ia (SN 2012ht and SN 2015F)
* in Cepheid hosts
C Format for file interpretation
2 format(2X,A6,1X,F7.1,1X,A1,1X,F6.3,1X,F5.3,1X,F7.3)
C Effective file loading
open(unit=1,status='old',file=
+'table6.dat')
write(6,*) '....Loading file: table6.dat'
do i__=1,713
read(1,'(A39)')ar__1
read(ar__1,2)SN_1,MJD,Filt,omag,e_omag,Phase
c ..............Just test output...........
write(6,2)SN_1,MJD,Filt,omag,e_omag,Phase
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table7.dat' ! Optical photometry of secondary standards in the
* standard systems of Smith+ (2002AJ....123.2121S)
* and Landolt (1992AJ....104..340L)
C Format for file interpretation
3 format(
+ 2X,A6,2X,I2,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,
+ F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,
+ 1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3)
C Effective file loading
open(unit=1,status='old',file=
+'table7.dat')
write(6,*) '....Loading file: table7.dat'
do i__=1,41
read(1,'(A114)')ar__2
read(ar__2,3)
+ SN_2,ID,RAh,RAm,RAs,DE_,DEd,DEm,DEs,umag,e_umag,gmag,e_gmag,
+ rmag,e_rmag,imag,e_imag,Bmag,e_Bmag,Vmag,e_Vmag
if(ar__2(38:43) .EQ. '') umag = rNULL__
if(ar__2(45:49) .EQ. '') e_umag = rNULL__
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,3)
+ SN_2,ID,RAh,RAm,RAs,DE_,DEd,DEm,DEs,umag,e_umag,gmag,e_gmag,
+ rmag,e_rmag,imag,e_imag,Bmag,e_Bmag,Vmag,e_Vmag
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table8.dat' ! NIR photometry of Persson+ (1998AJ....116.2475P)
* secondary standards
C Format for file interpretation
4 format(
+ 2X,A6,1X,I3,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,
+ F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3)
C Effective file loading
open(unit=1,status='old',file=
+'table8.dat')
write(6,*) '....Loading file: table8.dat'
do i__=1,29
read(1,'(A75)')ar__3
read(ar__3,4)
+ SN_3,ID_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Ymag,
+ e_Ymag,Jmag,e_Jmag,Hmag,e_Hmag
if(ar__3(38:43) .EQ. '') Ymag = rNULL__
if(ar__3(45:49) .EQ. '') e_Ymag = rNULL__
if(ar__3(64:69) .EQ. '') Hmag = rNULL__
if(ar__3(71:75) .EQ. '') e_Hmag = rNULL__
RAdeg_1 = rNULL__
DEdeg_1 = rNULL__
c Derive coordinates RAdeg_1 and DEdeg_1 from input data
c (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
if(DEd_1 .GE. 0) DEdeg_1=DEd_1
if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c ..............Just test output...........
write(6,4)
+ SN_3,ID_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Ymag,
+ e_Ymag,Jmag,e_Jmag,Hmag,e_Hmag
write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end