function of source

    patch: Patch ,
    copy ,
    **kwargs ,
)-> Patch

Return a subset of the trace based on query parameters.

Any dimension of the data can be passed as key, and the values should either be a Slice or a tuple of (min, max) for that dimension.

The time dimension is handled specially in that either floats, datetime64 or datetime objects can be used to specify relative or absolute times, respectively.


Parameter Description
copy If True, copy the resulting data. This is needed so the old array can get gc’ed and memory freed.
**kwargs Used to specify the dimension and slices to select on.


# select meters 50 to 300
import numpy as np
from dascore.examples import get_example_patch
tr = get_example_patch()
new =,300))