Commit 172780f51941caaea880b8994d5ecbf29dfef2ea
1 parent
abdfd7c7
Rename 'ref_flux' column to 'ref_dnde' to be more accurate.
Showing
2 changed files
with
7 additions
and
7 deletions
cscripts/csspec.py
| ... | ... | @@ -1071,7 +1071,7 @@ class csspec(ctools.csobservation): |
| 1071 | 1071 | norm_err = gammalib.GFitsTableDoubleCol('norm_err', nrows) |
| 1072 | 1072 | ulim_values = gammalib.GFitsTableDoubleCol('norm_ul', nrows) |
| 1073 | 1073 | e2dnde = gammalib.GFitsTableDoubleCol('ref_e2dnde', nrows) |
| 1074 | - flux = gammalib.GFitsTableDoubleCol('ref_flux', nrows) | |
| 1074 | + dnde = gammalib.GFitsTableDoubleCol('ref_dnde', nrows) | |
| 1075 | 1075 | Npred_values = gammalib.GFitsTableDoubleCol('ref_npred', nrows) |
| 1076 | 1076 | TSvalues = gammalib.GFitsTableDoubleCol('ts', nrows) |
| 1077 | 1077 | loglike = gammalib.GFitsTableDoubleCol('loglike', nrows) |
| ... | ... | @@ -1084,7 +1084,7 @@ class csspec(ctools.csobservation): |
| 1084 | 1084 | norm_err.unit('') |
| 1085 | 1085 | ulim_values.unit('') |
| 1086 | 1086 | e2dnde.unit('erg/cm2/s') |
| 1087 | - flux.unit('counts/MeV/cm2/s') | |
| 1087 | + dnde.unit('counts/MeV/cm2/s') | |
| 1088 | 1088 | Npred_values.unit('counts') |
| 1089 | 1089 | loglike.unit('') |
| 1090 | 1090 | norm_scan.unit('') |
| ... | ... | @@ -1099,7 +1099,7 @@ class csspec(ctools.csobservation): |
| 1099 | 1099 | norm_err[i] = result['flux_err'] / result['flux'] |
| 1100 | 1100 | ulim_values[i] = result['ulimit'] / result['flux'] |
| 1101 | 1101 | e2dnde[i] = result['e2dnde'] |
| 1102 | - flux[i] = result['flux'] | |
| 1102 | + dnde[i] = result['flux'] | |
| 1103 | 1103 | Npred_values[i] = result['Npred'] |
| 1104 | 1104 | TSvalues[i] = result['TS'] |
| 1105 | 1105 | loglike[i] = result['logL'] |
| ... | ... | @@ -1125,12 +1125,12 @@ class csspec(ctools.csobservation): |
| 1125 | 1125 | table.append(norm_err) |
| 1126 | 1126 | table.append(ulim_values) |
| 1127 | 1127 | table.append(e2dnde) |
| 1128 | - table.append(flux) | |
| 1128 | + table.append(dnde) | |
| 1129 | 1129 | table.append(TSvalues) |
| 1130 | 1130 | table.append(Npred_values) |
| 1131 | 1131 | |
| 1132 | 1132 | # Define the SED type |
| 1133 | - table.card('SED_TYPE', 'norm,e2dnde,flux,npred', 'SED type') | |
| 1133 | + table.card('SED_TYPE', 'norm,e2dnde,dnde,npred', 'SED type') | |
| 1134 | 1134 | |
| 1135 | 1135 | # Define the upper limit confidence level |
| 1136 | 1136 | ulimit = ctools.ctulimit() |
| ... | ... | @@ -1139,7 +1139,7 @@ class csspec(ctools.csobservation): |
| 1139 | 1139 | |
| 1140 | 1140 | # Add the likelihood data |
| 1141 | 1141 | if ncols > 0: |
| 1142 | - table.card('SED_TYPE', 'likelihood,e2dnde,flux,npred', 'Likelihood scan data') | |
| 1142 | + table.card('SED_TYPE').value('likelihood,e2dnde,dnde,npred') | |
| 1143 | 1143 | table.append(loglike) |
| 1144 | 1144 | table.append(norm_scan) |
| 1145 | 1145 | table.append(dloglike_scan) | ... | ... |
test/data/spectrum.fits
No preview for this file type