Skip to content

Commit

Permalink
balmer.HbHgHd_fits: Use comp_spec filename_dict definition (iss #10)
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Jun 7, 2020
1 parent f4a290e commit 4dee557
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Metallicity_Stack_Commons/plotting/balmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,20 +98,20 @@ def fitting_result(wave, y_norm, lambda_cen, balmer_fit, balmer_fit_neg):


# noinspection PyUnboundLocalVariable
def HbHgHd_fits(fitspath, stack_name, out_pdf_prefix='HbHgHd_fits',
def HbHgHd_fits(fitspath, out_pdf_prefix='HbHgHd_fits',
use_revised=False):
"""
Purpose:
Generate PDF plots that illustrate H-delta, H-gamma, and H-beta line
profiles and best fit
:param fitspath: full path (str)
:param stack_name: filename of the stack spectra (str)
:param out_pdf_prefix: Prefix for outpute PDF file (str)
:param use_revised: Indicate whether to use regular or revised tables (bool)
"""

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

if not use_revised:
Expand Down

0 comments on commit 4dee557

Please sign in to comment.