-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
679 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
.. _streak_images: | ||
|
||
Working with streak images | ||
************************** | ||
|
||
LumiSpy has implemented handling of streak camera images, which are a special | ||
subclass of :class:`hyperspy.signal.Signal2D` as the two signal axes have different | ||
units: Namely, wavelength (or energy) and time. The signal class is | ||
:class:`~.signals.luminescence_transientspec.LumiTransientSpectrum`. An important | ||
feature is that also for streak camera images (or linescans/maps of these), the | ||
wavelength axis can be transformed to e.g. a :ref:`energy_axis`. | ||
|
||
.. Note:: | ||
|
||
For streak images, not all tools available for :class:`Signal2D | ||
<hyperspy.api.signals.Signal2D>` will work. However, in particular | ||
:external+hyperspy:ref:`peak_finding-label` | ||
can be helpful to identify local maxima in the images. | ||
|
||
|
||
Transition to one-dimensional signals | ||
===================================== | ||
|
||
When transitioning from a streak image to a one-dimensional signal, LumiSpy | ||
uses the axes units of the new signal (whether it is time units or not) to | ||
assign the correct 1D signal class: Either :class:`~.signals.luminescence_spectrum.LumiSpectrum` or | ||
:class:`~.signals.luminescence_transient.LumiTransient`. Such a reduction of the signal dimensionality | ||
can be done for example by slicing the signal with | ||
:external+hyperspy:ref:`numpy-style indexing <signal.indexing>` or by using | ||
functions such as :external:meth:`sum() <hyperspy.api.signals.BaseSignal.sum>` | ||
and :external:meth:`integrate1D() <hyperspy.api.signals.BaseSignal.integrate1D>` | ||
|
||
In the following image, the spectrum summed over all times is obtained from the | ||
streak image by: | ||
|
||
.. code-block:: python | ||
>>> s.sum(axis='Time') | ||
>>> # Or alternatively: | ||
>>> s.sum(axis=-1) | ||
Similarly, the transient summed over all wavelengths is obtained by: | ||
|
||
.. code-block:: python | ||
>>> s.sum(axis='Wavelength') | ||
>>> # Or alternatively: | ||
>>> s.sum(axis=-2) | ||
.. image:: images/streakmap.svg | ||
:width: 700 | ||
:alt: Plot of a streak camera image and its one-dimensional representations | ||
obtained by summing over either the wavelength or time dimensions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Implement correct casting of :class:`LumiTransientSpectrum` to either :class:`Luminescence` or :class:`Transient` when the signal dimension is reduced | ||
Implement correct casting of :class:`~.signals.luminescence_transientspec.LumiTransientSpectrum` to either :class:`~.signals.luminescence_spectrum.LumiSpectrum` or :class:`~.signals.luminescence_transient.LumiTransient` when the signal dimension is reduced |