Open
Description
Both issue #243 and #244 suggest ways of calculating the mean and standard deviations within a spectrum, respectively:
Oh and I guess the snippet above is now (v0.4) np.mean(extract_region(spectrum, reg).flux) or astropy.stats.sigma_clip(extract_region(spectrum, reg).flux, cenfunc=np.mean) if you want sigma-clipping
and
For completeness, in v0.4 that would be np.std(extract_region(spectrum, reg).flux)
These do not rise to the level of needing dedicated analysis functions but (as suggested in the linked issues) should be documented.