# aXeConf¶

class grizli.grismconf.aXeConf(conf_file='WFC3.IR.G141.V2.5.conf')[source]

Bases: object

Parameters: conf_file: str Filename of the configuration file to read

Methods Summary

 count_beam_orders() Get the maximum polynomial order in DYDX or DLDP for each beam evaluate_dp(dx, dydx) Evalate arc length along the trace given trace polynomial coefficients field_dependent(xi, yi, coeffs) aXe field-dependent coefficients get_beam_trace([x, y, dx, beam, fwcpos]) Get an aXe beam trace for an input reference pixel and list of output x pixels dx get_beams() Get beam parameters and read sensitivity curves read_conf_file([conf_file]) Read an aXe config file, convert floats and arrays show_beams([xy, beams]) Make a demo plot of the beams of a given configuration file

Methods Documentation

count_beam_orders()[source]

Get the maximum polynomial order in DYDX or DLDP for each beam

evaluate_dp(dx, dydx)[source]

Evalate arc length along the trace given trace polynomial coefficients

Parameters: dx : array-like x pixel to evaluate dydx : array-like Coefficients of the trace polynomial dp : array-like Arc length along the trace at position dx. For dydx polynomial orders 0, 1 or 2, integrate analytically. Higher orders must be integrated numerically. Constant: $dp = dx$ Linear: $dp = \sqrt{1+\mathrm{DYDX}[1]}\cdot dx$ Quadratic: $u = \mathrm{DYDX}[1] + 2\ \mathrm{DYDX}[2]\cdot dx$ $dp = (u \sqrt{1+u^2} + \mathrm{arcsinh}\ u) / (4\cdot \mathrm{DYDX}[2])$
field_dependent(xi, yi, coeffs)[source]

aXe field-dependent coefficients

See the aXe manual for a description of how the field-dependent coefficients are specified.

Parameters: xi, yi : float or array-like Coordinate to evaluate the field dependent coefficients, where xi = x-REFX and yi = y-REFY. coeffs : array-like Field-dependency coefficients a : float or array-like Evaluated field-dependent coefficients
get_beam_trace(x=507, y=507, dx=0.0, beam='A', fwcpos=None)[source]

Get an aXe beam trace for an input reference pixel and list of output x pixels dx

Parameters: x, y : float or array-like Evaluate trace definition at detector coordinates x and y. dx : float or array-like Offset in x pixels from (x,y) where to compute trace offset and effective wavelength beam : str Beam name (i.e., spectral order) to compute. By aXe convention, beam='A' is the first order, ‘B’ is the zeroth order and additional beams are the higher positive and negative orders. fwcpos : None or float For NIRISS, specify the filter wheel position to compute the trace rotation dy : float or array-like Center of the trace in y pixels offset from (x,y) evaluated at dx. lam : float or array-like Effective wavelength along the trace evaluated at dx.
get_beams()[source]

Get beam parameters and read sensitivity curves

read_conf_file(conf_file='WFC3.IR.G141.V2.5.conf')[source]

Read an aXe config file, convert floats and arrays

Parameters: conf_file: str Filename of the configuration file to read. Parameters are stored in an OrderedDict in self.conf.
show_beams(xy=None, beams=['E', 'D', 'C', 'B', 'A'])[source]

Make a demo plot of the beams of a given configuration file