trim_spct function

Trim (or expand) head and/or tail of a spectrum