def predicted_wavelength(self, pixel):
"""Find the predicted wavelength value for a given pixel
It is possible to estimate the wavelength position of any pixel given
the instrument configuration.
Notes:
The equations are not precise enough so the value returned here has
to be used as an estimate only.
Args:
pixel (int): Pixel number.
Returns:
Wavelength value in angstrom.
"""
# TODO (simon): Update with bruno's new calculations
alpha = self.alpha
beta = self.beta
# pixel_count = self.pixel_count
binning = self.serial_binning
grating_frequency = self.grating_frequency
wavelength = 10 * (1e6 / grating_frequency) * \
(np.sin(alpha * np.pi / 180.) +
np.sin((beta * np.pi / 180.) +
np.arctan((pixel * binning - 2048) *
0.015 / 377.2)))
return wavelength
评论列表
文章目录