coeffs_from_astropy_polynomial

grizli.grismconf.coeffs_from_astropy_polynomial(p)[source]

Get field-dependent coefficients in aXe format from an astropy.modeling.polynomial.Polynomial2D model

Parameters
pastropy.modeling.polynomial.Polynomial2D

Polynomial model

Returns
coeffsarray-like

Reordered array of coefficients