Skip to content

Store interpolator used in LinearityCurve #938

@teutoburg

Description

@teutoburg

The interpolation from incident to measured flux is currently done with an on-the-spot numpy interpolation:

obj._hdu.data = np.interp(obj._hdu.data, incident, measured)

It would be useful for post-readout analysis and introspection to use an interpolator object to store the interpolation function in the effect and make it accessible from the outside. A prime candidate would be to use scipy.interpolate.make_interp_spline, which returns a BSpline object (aka the interpolator). Should be fairly straightforward.

Metadata

Metadata

Assignees

Labels

effectsRelated to a ScopeSim effect

Type

No fields configured for Task.

Projects

Status
📋 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions