From f77f99bee7d503e8bc45fde2af9982665d7f2918 Mon Sep 17 00:00:00 2001 From: Tamas Gal <himself@tamasgal.com> Date: Wed, 3 Jul 2024 15:11:29 +0200 Subject: [PATCH] Update orientations example --- docs/src/examples/orientations.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/src/examples/orientations.md b/docs/src/examples/orientations.md index c4ca6bbb..7cc60c1b 100644 --- a/docs/src/examples/orientations.md +++ b/docs/src/examples/orientations.md @@ -7,6 +7,7 @@ The data used in this example is provided by [KM3NeTTestData.jl](https://git.km3 ```@example 1 using KM3io +using KM3NeTTestData using CairoMakie using Dates ``` @@ -18,6 +19,13 @@ ax_yaw = Axis(fig[1, 1]) 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 display them in a human readable way. -- GitLab