Skip to content
Snippets Groups Projects
Verified Commit f77f99be authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Update orientations example

parent 752d0983
No related branches found
No related tags found
1 merge request!33Orientations example
...@@ -7,6 +7,7 @@ The data used in this example is provided by [KM3NeTTestData.jl](https://git.km3 ...@@ -7,6 +7,7 @@ The data used in this example is provided by [KM3NeTTestData.jl](https://git.km3
```@example 1 ```@example 1
using KM3io using KM3io
using KM3NeTTestData
using CairoMakie using CairoMakie
using Dates using Dates
``` ```
...@@ -18,6 +19,13 @@ ax_yaw = Axis(fig[1, 1]) ...@@ -18,6 +19,13 @@ ax_yaw = Axis(fig[1, 1])
ax_pitch_and_roll = Axis(fig[1, 2]) ax_pitch_and_roll = Axis(fig[1, 2])
``` ```
We load the orientations data and extract the quaternions including the corresponding times from it:
```@example 1
o = read(datapath("calib", "KM3NeT_00000049_0.0.0_00007631_00007676_1.orientations.root"), Orientations)
qdata = o(808972593)
```
The times are converted to `DateTime` objects, which Makie will understand and The times are converted to `DateTime` objects, which Makie will understand and
display them in a human readable way. display them in a human readable way.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment