BrownModel.get_temperature_scale¶
giant.camera_models.brown_model
:
- BrownModel.get_temperature_scale(temperature)¶
This method computes the scaling to the focal length caused by a shift in temperature.
The temperature dependence is defined as a third order polynomial in temperature:
\[\Delta f = 1 + a_1 T + a_2 T^2 + a_3 T^3\]where \(T\) is the temperature (usually in units of degrees Celsius).
You can use this method to get the temperature scaling as either a scalar value for a single parameter, or an array of values for an array of temperatures:
>>> from giant.camera_models import PinholeModel >>> model = PinholeModel(a1=1, a2=2, a3=3) >>> model.get_temperature_scale(5.5) 566.125 >>> model.get_temperature_scale([5.5, -2.5, 0]) array([ 566.125, -35.875, 1. ])
- Parameters:
temperature (Sequence | ndarray | Real) – The temperature(s) to compute the scaling at
- Returns:
the temperature scaling either as a float or a numpy ndarray
- Return type:
float | ndarray