Description of the problem/new feature
for example I want to make a baseline fit for this spectrum

but I want to mask out the -200<x<200 region
I need to manually mask the data
mask = (velocities < -200) | (velocities > 200)
v_masked = velocities[mask]
spec_masked = spectra[mask]
I think it is better to have a mask function integrated
Description of a possible solution or alternative
Description of the problem/new feature
for example I want to make a baseline fit for this spectrum
but I want to mask out the -200<x<200 region
I need to manually mask the data
I think it is better to have a mask function integrated
Description of a possible solution or alternative