Skip to content

Commit

Permalink
analysis.attenuation.compute_EBV: Use correct name for ID columns (iss
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Jun 3, 2020
1 parent 06bbc9d commit 2daa8ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Metallicity_Stack_Commons/analysis/attenuation.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ def compute_EBV(fitspath):
print("Reading : " + combine_file)
combine_asc = asc.read(combine_file)

ID = combine_asc['ID']
ID = combine_asc['bin_ID'].data
HBETA = combine_asc[HB+'_Flux_Observed'].data
HGAMMA = combine_asc[HG+'_Flux_Observed'].data

EBV = -2.5 * np.log10((HGAMMA / HBETA) / HgHb_CaseB) / (k_HGAMMA - k_HBETA)

out_ascii = join(fitspath, 'dust_attenuation_values.tbl')

tab1 = Table([ID, EBV], names=('ID', dust0[0]))
tab1 = Table([ID, EBV], names=('bin_ID', dust0[0]))
asc.write(tab1, out_ascii, format='fixed_width_two_line')


Expand Down

0 comments on commit 2daa8ab

Please sign in to comment.