TraceSet¶
-
class
pydl.pydlutils.trace.TraceSet(*args, **kwargs)[source]¶ Bases:
objectImplements the idea of a trace set.
- Attributes
- func
str Name of function type used to fit the trace set.
- xminfloat-like
Minimum x value.
- xmaxfloat-like
Maximum x value.
- coeffarray-like
Coefficients of the trace set fit.
- nTrace
int Number of traces in the object.
- ncoeff
int Number of coefficients of the trace set fit.
- xjumplofloat-like
Jump value, for BOSS readouts.
- xjumphifloat-like
Jump value, for BOSS readouts.
- xjumpvalfloat-like
Jump value, for BOSS readouts.
- outmaskarray-like
When initialized with x,y positions, this contains the rejected points.
- yfitarray-like
When initialized with x,y positions, this contains the fitted y values.
- func
This class can be initialized either with a set of xy positions, or with a trace set HDU from a FITS file.
Attributes Summary
Trueif jump conditions are set.Number of x values.
Range of x values.
Midpoint of x values.
Methods Summary
xnorm(xinput, jump)Convert input x coordinates to normalized coordinates suitable for input to special polynomials.
xy([xpos, ignore_jump])Convert from a trace set to an array of x,y positions.
Attributes Documentation
-
has_jump¶ Trueif jump conditions are set.
-
nx¶ Number of x values.
-
xRange¶ Range of x values.
-
xmid¶ Midpoint of x values.
Methods Documentation
-
xnorm(xinput, jump)[source]¶ Convert input x coordinates to normalized coordinates suitable for input to special polynomials.
- Parameters
- xinputarray-like
Input coordinates.
- jump
bool Set to
Trueif there is a jump.
- Returns
- array-like
Normalized coordinates.
-
xy(xpos=None, ignore_jump=False)[source]¶ Convert from a trace set to an array of x,y positions.
- Parameters
- xposarray-like, optional
If provided, evaluate the trace set at these positions. Otherwise the positions will be constructed from the trace set object iself.
- ignore_jump
bool, optional If
True, ignore any jump information in thetsetobject
- Returns
tuple()of array-likeThe x, y positions.