TraceSet

class pydl.pydlutils.trace.TraceSet(*args, **kwargs)[source]

Bases: object

Implements the idea of a trace set.

Attributes:
funcstr

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.

nTraceint

Number of traces in the object.

ncoeffint

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.

This class can be initialized either with a set of xy positions, or with a trace set HDU from a FITS file.

Attributes Summary

has_jump

True if jump conditions are set.

nx

Number of x values.

xRange

Range of x values.

xmid

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

True if 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.

jumpbool

Set to True if 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_jumpbool, optional

If True, ignore any jump information in the tset object

Returns:
tuple of array-like

The x, y positions.