AverageExtData

measure_extinction.extdata.AverageExtData(extdatas, min_number=3, mask=[])[source]

Generate the average extinction curve from a list of ExtData objects

Parameters:
extdataslist of ExtData objects

list of extinction curves to average

min_numberint [default=3]

minimum number of extinction curves that are required to measure the average extinction; if less than min_number of curves are available at certain wavelengths, the average extinction will still be calculated, but the number of points (npts) at those wavelengths will be set to zero (e.g. used in the plotting)

masklist of tuples [default=[]]

list of tuples with wavelength regions (in micron) that need to be masked, e.g. [(2.55,2.61),(3.01,3.10)]

Returns:
aveext: ExtData object

the average extintion curve