cutw function

Cut a section of a time wave