Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/869/56 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-09
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 (nr__) ! Supernova name (YYYYAA)
real*8 zhel (nr__) ! [0.0008/0.09] Heliocentric redshift
real*8 zcmb (nr__) ! [0.001/0.09] CMB redshift
real*4 sBV (nr__) ! [0.2/1.4] Color-stretch parameter
real*4 e_sBV (nr__) ! [0.03/0.09] sBV error
real*4 dm15_B (nr__) ! (mag) [0.6/2] {Delta}m_15_(B) parameter
real*4 e_dm15_B (nr__) ! (mag) [0.06/0.2] dm15(B) error
real*4 Vmax (nr__) ! (mag) [9.9/19.3] V magnitude at maximum
real*4 e_Vmax (nr__) ! (mag) [0.002/0.08] Vmax error
real*4 EBV (nr__) ! (mag) [0.007/2] B-V color excess
real*4 e_EBV (nr__) ! (mag) [0.008/0.08] EBV error
real*4 Rv (nr__) ! [0.3/3.1] Reddening slope (R_V_)
real*4 e_Rv (nr__) ! [0.1/1.4] Rv error
real*8 covER (nr__) ! (mag) [-0.02/0.009] Covariance between E(B-V) and Rv
real*4 muCV (nr__) ! (mag) [29.1/37.9] Cross-validated distance modulus
real*4 e_muCV (nr__) ! (mag) [0.04/0.9] muCV error
real*4 Q (nr__) ! [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 (nr__1) ! Supernova name (2012ht or 2015F)
real*8 MJD (nr__1) ! (d) [56282.3/57249.4] Modified Julian Day;
* JD-2400000.5
character*1 Filt (nr__1) ! [ugriBVYJH] Filter used (1)
real*4 omag (nr__1) ! (mag) [13/19.4] Magnitude of observation in Filter
real*4 e_omag (nr__1) ! (mag) [0.005/0.06] Error in omag
real*8 Phase (nr__1) ! (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 (nr__2) ! (deg) Right Ascension J2000
real*8 DEdeg (nr__2) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*6 SN_2 (nr__2) ! Supernova name (2012ht or 2015F)
integer*4 ID (nr__2) ! [1/31] Standard Star ID
integer*4 RAh (nr__2) ! (h) [7/10] Hour of Right Ascension (J2000)
integer*4 RAm (nr__2) ! (min) Minute of Right Ascension (J2000)
real*4 RAs (nr__2) ! (s) Second of Right Ascension (J2000)
character*1 DE_ (nr__2) ! Sign of the Declination (J2000)
integer*4 DEd (nr__2) ! (deg) Degree of Declination (J2000)
integer*4 DEm (nr__2) ! (arcmin) Arcminute of Declination (J2000)
real*4 DEs (nr__2) ! (arcsec) Arcsecond of Declination (J2000)
real*4 umag (nr__2) ! (mag) [14.5/19.1]? u' band magnitude
real*4 e_umag (nr__2) ! (mag) [0.005/0.2]? Uncertainty in u'mag
real*4 gmag (nr__2) ! (mag) [13.3/19.4] g' band magnitude
real*4 e_gmag (nr__2) ! (mag) [0.003/0.2] Uncertainty in g'mag
real*4 rmag (nr__2) ! (mag) [12.9/18.3] r' band magnitude
real*4 e_rmag (nr__2) ! (mag) [0.002/0.1] Uncertainty in r'mag
real*4 imag (nr__2) ! (mag) [12.8/17.8] i' band magnitude
real*4 e_imag (nr__2) ! (mag) [0.002/0.2] Uncertainty in i'mag
real*4 Bmag (nr__2) ! (mag) [/18.4]?=0 B band magnitude
real*4 e_Bmag (nr__2) ! (mag) [/0.2]?=0 Uncertainty in Bmag
real*4 Vmag (nr__2) ! (mag) [13.139/18.586] V band magnitude
real*4 e_Vmag (nr__2) ! (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 (nr__3) ! (deg) Right Ascension J2000
real*8 DEdeg_1 (nr__3) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*6 SN_3 (nr__3) ! Supernova name (2012ht or 2015F)
integer*4 ID_1 (nr__3) ! [101/123] Standard Star ID
integer*4 RAh_1 (nr__3) ! (h) [7/10] Hour of Right Ascension (J2000)
integer*4 RAm_1 (nr__3) ! (min) Minute of Right Ascension (J2000)
real*4 RAs_1 (nr__3) ! (s) Second of Right Ascension (J2000)
character*1 DE__1 (nr__3) ! Sign of the Declination (J2000)
integer*4 DEd_1 (nr__3) ! (deg) Degree of Declination (J2000)
integer*4 DEm_1 (nr__3) ! (arcmin) Arcminute of Declination (J2000)
real*4 DEs_1 (nr__3) ! (arcsec) Arcsecond of Declination (J2000)
real*4 Ymag (nr__3) ! (mag) [/18]? Y band magnitude
real*4 e_Ymag (nr__3) ! (mag) [/0.5]? Uncertainty in Ymag
real*4 Jmag (nr__3) ! (mag) [13.1/17.5] J band magnitude
real*4 e_Jmag (nr__3) ! (mag) [0.01/0.5] Uncertainty in Jmag
real*4 Hmag (nr__3) ! (mag) [12.6/17]? H band magnitude
real*4 e_Hmag (nr__3) ! (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(i__),zhel(i__),zcmb(i__),sBV(i__),e_sBV(i__),dm15_B(i__),
+ e_dm15_B(i__),Vmax(i__),e_Vmax(i__),EBV(i__),e_EBV(i__),
+ Rv(i__),e_Rv(i__),covER(i__),muCV(i__),e_muCV(i__),Q(i__)
c ..............Just test output...........
write(6,1)
+ SN(i__),zhel(i__),zcmb(i__),sBV(i__),e_sBV(i__),dm15_B(i__),
+ e_dm15_B(i__),Vmax(i__),e_Vmax(i__),EBV(i__),e_EBV(i__),
+ Rv(i__),e_Rv(i__),covER(i__),muCV(i__),e_muCV(i__),Q(i__)
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(i__),MJD(i__),Filt(i__),omag(i__),e_omag(i__),Phase(i__)
c ..............Just test output...........
write(6,2)
+ SN_1(i__),MJD(i__),Filt(i__),omag(i__),e_omag(i__),Phase(i__)
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(i__),ID(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
+ DEd(i__),DEm(i__),DEs(i__),umag(i__),e_umag(i__),gmag(i__),
+ e_gmag(i__),rmag(i__),e_rmag(i__),imag(i__),e_imag(i__),
+ Bmag(i__),e_Bmag(i__),Vmag(i__),e_Vmag(i__)
if(ar__2(38:43) .EQ. '') umag(i__) = rNULL__
if(ar__2(45:49) .EQ. '') e_umag(i__) = rNULL__
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,3)
+ SN_2(i__),ID(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
+ DEd(i__),DEm(i__),DEs(i__),umag(i__),e_umag(i__),gmag(i__),
+ e_gmag(i__),rmag(i__),e_rmag(i__),imag(i__),e_imag(i__),
+ Bmag(i__),e_Bmag(i__),Vmag(i__),e_Vmag(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 '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(i__),ID_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
+ DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),Ymag(i__),
+ e_Ymag(i__),Jmag(i__),e_Jmag(i__),Hmag(i__),e_Hmag(i__)
if(ar__3(38:43) .EQ. '') Ymag(i__) = rNULL__
if(ar__3(45:49) .EQ. '') e_Ymag(i__) = rNULL__
if(ar__3(64:69) .EQ. '') Hmag(i__) = rNULL__
if(ar__3(71:75) .EQ. '') e_Hmag(i__) = rNULL__
RAdeg_1(i__) = rNULL__
DEdeg_1(i__) = 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(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c ..............Just test output...........
write(6,4)
+ SN_3(i__),ID_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
+ DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),Ymag(i__),
+ e_Ymag(i__),Jmag(i__),e_Jmag(i__),Hmag(i__),e_Hmag(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end