Skip to content

Commit

Permalink
EWs
Browse files Browse the repository at this point in the history
  • Loading branch information
profxj committed Jun 2, 2016
1 parent ebcbf94 commit ba05ae9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions linetools/isgm/abssystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,27 @@ def list_of_abslines(self):
return [iline for component in self._components
for iline in component._abslines]

def measure_restew(self, spec=None, **kwargs):
""" Measure rest-frame EWs for lines in the AbsSystem
Parameters
----------
spec : XSpectru1D, optional
kwargs
Returns
-------
"""
# Grab Lines
abs_lines = self.list_of_abslines()
# Loop
for iline in abs_lines:
# Fill in spec?
if spec is not None:
iline.analy['spec'] = spec
# Measure
iline.measure_restew(kwargs)

def to_dict(self):
""" Write AbsSystem data to a dict that can be written with JSON
"""
Expand Down

0 comments on commit ba05ae9

Please sign in to comment.