This example shows how to set up a $q_z$ scan using a NumPy array.
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>}}
{{<figscgsrc="/img/auto/specular/TimeOfFlightReflectometry.png"width="500px"caption="This figure shows the reflectometry signal obtained after running the TOF simulation of the script below.">}}