soxspipe.commonutils.polynomials¶
definition of polynomial functions needed throughout code
- Author
David Young
- Date Created
September 10, 2020
Module Contents¶
Classes¶
the chebyshev polynomial fits for the single frames; to be iteratively fitted to minimise errors |
|
the chebyshev polynomial fits FIX ME |
|
the chebyshev polynomial fits for the pinhole flat frame order tracing; to be iteratively fitted to minimise errors |
API¶
- class soxspipe.commonutils.polynomials.chebyshev_order_wavelength_polynomials(log, orderDeg, wavelengthDeg, slitDeg, exponentsIncluded=False, axis=False)[source][source]¶
the chebyshev polynomial fits for the single frames; to be iteratively fitted to minimise errors
Key Arguments:
log– loggerorderDeg– degree of the order polynomial componentswavelengthDeg– degree of wavelength polynomial componentsslitDeg– degree of the slit polynomial componentsexponentsIncluded– the exponents have already been calculated in the dataframe so no need to regenerate. Default Falseaxis– x, y or False. Default False.
Usage:
from soxspipe.commonutils.polynomials import chebyshev_order_wavelength_polynomials poly = chebyshev_order_wavelength_polynomials( log=self.log, orderDeg=orderDeg, wavelengthDeg=wavelengthDeg, slitDeg=slitDeg).poly
Initialization
- class soxspipe.commonutils.polynomials.chebyshev_order_xy_polynomials(log, orderDeg, axisBDeg, axisB='y', axisBCol=False, orderCol=False, exponentsIncluded=False)[source][source]¶
the chebyshev polynomial fits FIX ME
Key Arguments:
log– loggerorderDeg– degree of the order polynomial componentsaxisBDeg– degree for polynomial to fit free axis-valuesaxisB– the free axis related toaxisBDeg. Default ‘y’. [‘x’|‘y’]axisBCol– name of the free axis column (if needed). Default FalseorderCol– name of the order column (if needed). Default FalseexponentsIncluded– the exponents have already been calculated in the dataframe so no need to regenerate. Default False
Usage:
from soxspipe.commonutils.polynomials import chebyshev_order_wavelength_polynomials poly = chebyshev_order_wavelength_polynomials( log=self.log, orderDeg=orderDeg, wavelengthDeg=wavelengthDeg, slitDeg=slitDeg).poly
Initialization
- class soxspipe.commonutils.polynomials.chebyshev_xy_polynomial(log, y_deg, yCol=False, exponentsIncluded=False)[source][source]¶
the chebyshev polynomial fits for the pinhole flat frame order tracing; to be iteratively fitted to minimise errors
Key Arguments:
log– loggeryCol– name of the yColy_deg– y degree of the polynomial componentsexponentsIncluded– the exponents have already been calculated in the dataframe so no need to regenerate. Default False
Usage:
from soxspipe.commonutils.polynomials import chebyshev_xy_polynomial poly = chebyshev_xy_polynomial( log=self.log, deg=deg).poly
Initialization