scene_sumer_observation#
- esis.data.synth.scene_sumer_observation(observation, velocity_max=None, num_continuum=3, size_continuum=5, velocities_neighbour=<Quantity [-175., 215.] km / s>, height_neighbour_max=0.15, fill=None)[source]#
Create a synthetic solar scene from the spectra of SUMER.
The Solar Ultraviolet Measurements of Emitted Radiation (SUMER) spectrograph observed the lines ESIS does, such as O V 629.7 Angstroms, so its spectra are used as they are, in their own radiances, without the scaling which
scene_iris()needs.The wings of the line reach into those of its neighbouring lines. Where the spectral window reaches two standard deviations past a neighbouring line and that line is weaker than height_neighbour_max, the line is subtracted from each pixel and the scene is kept out to the edge of the window. Otherwise, the scene is cut short of the neighbouring line, where the mean profile is lowest between the two lines, and at least two standard deviations short of it. On either side, if the mean profile has a peak beyond 80 km/s and before the cut, such as what is left of a subtracted line, or a line which is not expected, the scene is cut at the lowest point before the peak. The columns at each end of the window which are only partly lit are left out: walking in from each end, those which, in the mean profile of some band of exposures or of rows along the slit, are dimmer than 0.45 of the column inside them, up to four.
The scene reaches as far toward the blue as toward the red, as far as the shorter side allows, so that the wings it keeps on one side are not missing on the other. The continuum under the line is subtracted, and the voxels SUMER did not observe, which are not a number (NaN), are filled if asked to.
The scene keeps the type of the observation, so it can be displayed with
show().- Parameters:
observation (SpectrographObservation) – The spectra of one raster, such as those loaded by
from_level1(), with the zero of their velocities where it should be.velocity_max (None | Quantity) – The largest speed of the scene, toward or away from the observer. The columns whose middles are beyond it are left out, besides those left out because of the neighbouring lines. If
None, the scene is as wide as the neighbouring lines allow.num_continuum (None | int) – The number of columns from which the continuum is measured: in each pixel, the lit columns it observed where the mean profile of the observation is lowest, anywhere in the window, before the neighbouring lines are subtracted. The continuum of each pixel is the mean of those columns, averaged over the pixels within size_continuum pixels of the raster in each direction which observed any, and is subtracted from every column. If
None, the continuum is not subtracted.size_continuum (int) – The number of pixels of the raster, in each direction, over which the continuum is averaged.
velocities_neighbour (None | Quantity) – Where the neighbouring lines are expected, at most one on each side of the line. A neighbouring line is fitted to the mean profile of the observation within 30 km/s of where it is expected. The default is for O V 629.7 Angstroms in the second order of the grating of SUMER, whose neighbours are Si II 1260.4 Angstroms, in the first order, about 215 km/s to the red, and another line about 175 km/s to the blue. If
None, no neighbouring line is subtracted, and the scene is cut only at velocity_max and the ends of the window.height_neighbour_max (float) – The height, as a fraction of the peak of the line, above which a neighbouring line is not subtracted. A strong neighbouring line would leave a residual larger than the wing of the line under it. Both heights are measured on the mean profile, above its fifth percentile.
fill (None | Quantity) – The radiance of the voxels which SUMER did not observe. If
None, they are left not a number (NaN), which an instrument cannot image, so give a value before imaging the scene.
- Raises:
ValueError – If two neighbouring lines are expected on the same side of the line.
ValueError – If no column of the observation is kept.
- Return type: