Text this: Multi-modal and multi-scale non-local means method to analyze spectroscopic datasets