cutspec function

Cut a frequency spectrum