Skip to content

Commit

Permalink
analysis.attenuation.compute_EBV: Update derived properties table wit…
Browse files Browse the repository at this point in the history
…h dust attenuation (iss #10)
  • Loading branch information
astrochun committed Jun 3, 2020
1 parent 2035ac2 commit 0ad4b65
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Metallicity_Stack_Commons/analysis/attenuation.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ def compute_EBV(fitspath):
col2 = Column(HdHb, name=dust0[1])
col3 = Column(EBV, name=dust0[0])

out_ascii = join(fitspath, 'dust_attenuation_values.tbl')
tab1 = Table([ID, EBV], names=('bin_ID', dust0[0]))
out_ascii = join(fitspath, filename_dict['bin_derived_prop_rev'])
tab1 = asc.read(out_ascii)
print("Adding dust attenuation information to " + out_ascii)

tab1.add_columns([col1, col2, col3])
asc.write(tab1, out_ascii, format='fixed_width_two_line')


Expand Down

0 comments on commit 0ad4b65

Please sign in to comment.