Skip to content

Commit

Permalink
plotting.balmer.HbHgHd_fits: Update docstrings (iss #10)
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed May 22, 2020
1 parent 2568966 commit 362bb4d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Metallicity_Stack_Commons/plotting/balmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ def fitting_result(wave, y_norm, lambda_cen, balmer_fit, balmer_fit_neg):

# noinspection PyUnboundLocalVariable
def HbHgHd_fits(stack_name, astropy_table_file, out_pdf):
"""
Purpose:
Generate PDF plots that illustrate H-delta, H-gamma, and H-beta line
profiles and best fit
:param stack_name: filename of the stack spectra (str)
:param astropy_table_file: astropy table containing ID
:param out_pdf: Name of output file (str)
"""

stack2D, header = fits.getdata(stack_name, header=True)
wave = header['CRVAL1'] + header['CDELT1']*np.arange(header['NAXIS1'])
Expand Down

0 comments on commit 362bb4d

Please sign in to comment.