distortion_fit_bounds#
- esis.flights.f1.optics.distortion_fit_bounds(parameters)[source]#
Compute the parameter bounds used when fitting the ESIS-I distortion.
Most parameters are bounded at \(\pm 20\%\) of the given initial guess, but never narrower than an absolute floor: the design values of the instrument pitch and yaw and of the grating pitch are exactly zero, and a purely relative bound around a zero guess would collapse and silently freeze the parameter (equal bounds are treated as fixed by
scipy.optimize.differential_evolution()). The roll angles and the primary-mirror displacement are given absolute bounds, and the sensor placement a build tolerance about wherever it starts.Every bound is broadcast against the shape of the corresponding parameter and expressed in the same units, so that flattening the bounds and the parameters with
named_arrays.pack()yields vectors of the same length.- Parameters:
parameters (DistortionParameters) – The initial guess of the fit.
- Return type:
Examples
Compute the bounds for fitting the ESIS flight-1 design.
import named_arrays as na import esis instrument = esis.flights.f1.optics.design(num_distribution=0) parameters = esis.optics.DistortionParameters.from_instrument(instrument) lower, upper = esis.flights.f1.optics.distortion_fit_bounds(parameters) na.pack(lower), na.pack(upper)
(ScalarArray( ndarray=[-3.21808841e+02, -1.00000000e+01, -2.00000000e+00, -4.00000000e+00, 3.09285293e-01, -1.00000000e+01, -6.00000000e+01, -6.00000000e+01, -2.00000000e+00, -3.00000000e-01, -1.00000000e+01, -2.00000000e+00, -3.00000000e+00, -1.52520000e+01, -5.00000000e+00, -5.00000000e+00, 3.33333333e-01], shape={'pack': 17}, ), ScalarArray( ndarray=[-214.53922765, 10. , 2. , 4. , 0.46392794, 0. , 60. , 60. , 2. , 0.3 , 10. , 2. , 3. , -9.252 , 5. , 5. , 3. ], shape={'pack': 17}, ))