clip_wl function

Clip head and/or tail of a spectrum