mangadap.util.trace module¶
Provides a class to handle an SDSS trace set; cf. pydl TraceSet.
Copyright © 2019, SDSS-IV/MaNGA Pipeline Group
- class mangadap.util.trace.TraceSet(func, xmin, xmax, coeff)[source]¶
Bases:
object
Interact with a trace set written by IDLUTILS.
- Parameters
func (
str
) –xmin (scalar-like) –
xmax (scalar-like) –
coeff (array-like) –
- sample(x, index=None)[source]¶
Sample the trace at the provided coordinates.
- Parameters
x (array-like) – One-dimensional array with coordinates to sample.
index (
int
, optional) – Sample a single trace with the provided index. Default is to return an array sampling all traces.
- Returns
A 1 or 2D array with the samples of one or more traces.
- Return type
numpy.ndarray