stack_spectra_bootstrap

whampy.stack_spectra_bootstrap(survey, data_column=None, velocity_column=None, variance_column=None, velocity=None, n_boot=None, ci=None, estimator=None, set_name=None)[source]

Stack all spectra in provided SkySurvey Table

Parameters:
survey: ‘whampy.skySurvey’

input skySurvey

data_column: ‘str’, optional, must be keyword

Name of data column, default of “DATA”

velocity_column: ‘str’, optional, must be keyword

Name of velocity column, default of “VELOCITY”

variance_column: ‘str’, optional, must be keyword

Name od variance column, defaut of “VARIANCE”

velocity: ‘np.array, list’, optional, must be keyword

velocity to interpolate data to for stacking defaults to np.round of first row “VELOCITY”

n_boot: ‘int’, optional, must be keyword

number of bootstrap samples for each spectrum to stack default of 1000

ci: ‘number’, optional, must be keyword

Size of confidence interval to return as errors

estimator: ‘callable’, optional, must be keyword

estimator method to use, defaults to numpy.mean must take axis keyword

set_name: ‘str’, optional, must be keyword

if provided, sets “NAME” column to this in returned stack