Skip to content
Snippets Groups Projects
Commit 2311dd53 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

fix tof.md

parent e969c966
No related branches found
No related tags found
1 merge request!1477Webdoc: update scan-related pages
...@@ -46,13 +46,18 @@ To specify a scan with `n` equidistant steps in the vertical wavenumber $q_z$, u ...@@ -46,13 +46,18 @@ To specify a scan with `n` equidistant steps in the vertical wavenumber $q_z$, u
scan = ba.QzScan(n, qz_start, qz_stop) scan = ba.QzScan(n, qz_start, qz_stop)
``` ```
Alternatives are For other sequences of $q_z$ values, use the more generic
```python ```python
scan = ba.QzScan(q_vector) scan = ba.AlphaScan(axis)
``` ```
and
The Axis API may change soon and will be documented then.
A third alternative consists in passing a NumPy array,
```python ```python
scan = ba.QzScan(axis) import numpy as np
qz_vector = np.linspace(0.01, 1, n)
scan = ba.QzScan(qz_vector)
``` ```
After constructing a scan, set the wavelength and optionally a constant offset After constructing a scan, set the wavelength and optionally a constant offset
......
...@@ -5,21 +5,12 @@ weight = 30 ...@@ -5,21 +5,12 @@ weight = 30
## Time-of-flight reflectometry ## Time-of-flight reflectometry
This short tutorial quickly illustrates the setup of a This example shows how to set up a $q_z$ scan using a NumPy array.
time-of-flight (TOF) reflectometry simulated experiment. This can be used to simulate a time-of-flight (TOF) reflectometry experiment.
Setting up a TOF simulation boils down to specifying the range of values
spanned by the $q_z$ vector, rather than the range spanned by the angle $\theta$ of the beam:
``` python
qzs = np.linspace(0.01, 1.0, scan_size) # qz-values
scan = ba.QSpecScan(qzs)
simulation = ba.SpecularSimulation()
simulation.setScan(scan)
```
{{< galleryscg >}} {{< galleryscg >}}
{{< figscg src="/img/auto/specular/TimeOfFlightReflectometry.png" width="500px" caption="This figure shows the reflectometry signal obtained after running the TOF simulation of the script below." >}} {{< figscg src="/img/auto/specular/TimeOfFlightReflectometry.png" width="500px" >}}
{{< /galleryscg >}} {{< /galleryscg >}}
{{< highlightfile file="Examples/specular/TimeOfFlightReflectometry.py" >}} {{< highlightfile file="Examples/specular/TimeOfFlightReflectometry.py" >}}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment