Skip to content

Commit 8145edc

Browse files
committed
added harpy page
1 parent 5e2823e commit 8145edc

File tree

4 files changed

+30
-7
lines changed

4 files changed

+30
-7
lines changed

docs/guis/betabeat/bpm_panel.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ Click the ++"Run"++ button to start the analysis.
184184

185185
### Harmonic Analysis
186186

187-
Keeping the _Optics Analysis_ checkbox unchecked will only perform the harmonic analysis.
187+
Keeping the _Optics Analysis_ checkbox unchecked will only perform the [harmonic analysis][harpy_analysis].
188188

189189
In this case, you will **not be able to specify an output name** for the results, as the resulting files will be **automatically** put into subfolders of the `Measurements` folder, based on the name of the `.sdds` files.
190190
They therefore usually appear within the same folder as the turn-by-turn data.
@@ -227,6 +227,7 @@ The _Suffix_-field will be automatically set from your suffix-choices in the [_H
227227
[issue285]: https://gitlab.cern.ch/acc-co/lhc/lhc-app-beta-beating/-/issues/285
228228
[bpm_filtering]: ../../measurements/physics/bpm_filtering.md
229229
[do_analysis_dialog]: analysis_panel.md#do-analysis-dialog
230+
[harpy_analysis]: ../../measurements/physics/harpy.md
230231

231232
*[LHC]: Large Hadron Collider
232233
*[SPS]: Super Proton Synchrotron

docs/guis/betabeat/settings.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ The fields are non-editable when it does not make sense in the current settings
156156
</center>
157157
</figure>
158158

159-
The Harpy tab contains the settings for the harmonic `harpy` analysis.
159+
The Harpy tab contains the settings for the [harmonic `harpy` analysis][harpy_analysis].
160160

161161
- **Files**:
162162
This field is not editable and automatically set when selecting TbT files in the [BPM Panel](bpm_panel.md) and running the analysis.
@@ -244,7 +244,7 @@ The `python` default is `""`, i.e. no suffix.
244244
</center>
245245
</figure>
246246

247-
Most of the cleaning, for which the settings can be changed here, are part of the harmonic analysis module `harpy` in `omc3`
247+
Most of the cleaning, for which the settings can be changed here, are part of the [harmonic analysis module `harpy` in `omc3`][harpy_analysis]
248248
and will be executed during the "Analyse Spectrum" phase.
249249
Some of this procedure is also described on the [BPM filtering page][bpm_filtering].
250250

@@ -254,12 +254,12 @@ Some of this procedure is also described on the [BPM filtering page][bpm_filteri
254254
is done within the cleaning module (see below).
255255

256256
??? info "Why is cleaning part of the harmonic analysis?"
257-
Cleaning is part of the harmonic analysis in `harpy` as the [frequency analysis is done on the v-matrix of the SVD][harpy_ipac]:
257+
Cleaning is part of the harmonic analysis in `harpy` as the [frequency analysis is done on the v-matrix of the SVD][harpy_analysis]:
258258
SVD is used to reduce the noise in the BPM data by selecting only the most important modes and in the same step also to detect bad bpms.
259259
As this decomposition is a linear transformation, the frequency analysis can be run directly on decomposed v-matrix, without
260260
having to re-compose the data into the time-domain, saving time and memory.
261261
The disadvantage is that, as we do not save the SVD matrices, there is no way to only run _cleaning_ without frequency analysis at the moment.
262-
For more details, see [doi:10.18429/JACoW-IPAC2022-WEPOMS035][harpy_ipac].
262+
For more details, see [this documentation][harpy_analysis] and [doi:10.18429/JACoW-IPAC2022-WEPOMS035][harpy_ipac].
263263

264264
- **Active**:
265265
If active, the cleaning module is run during the "Analyse Spectrum" phase.
@@ -487,7 +487,6 @@ which is the `python`-internal representation of the accelerator and its setting
487487

488488
[python-docs]: https://pylhc.github.io/omc3/
489489
[multiturn]: ../multiturn/gui.md
490-
[harpy_ipac]: https://accelconf.web.cern.ch/ipac2022/papers/wepoms035.pdf
491490
[bpm_filtering]: ../../measurements/physics/bpm_filtering.md
492491
[bad_bpms]: ../../measurements/physics/bpm_filtering.md#manual
493492
[isolation_forest_cleaning]: ../../measurements/physics/bpm_filtering.md#isolation-forest
@@ -496,4 +495,6 @@ which is the `python`-internal representation of the accelerator and its setting
496495
[gitlab_issue279]: https://gitlab.cern.ch/acc-co/lhc/lhc-app-beta-beating/-/issues/279
497496
[n_bpm_method]: https://journals.aps.org/prab/abstract/10.1103/PhysRevAccelBeams.20.111002
498497
[three_bpm_method]: https://repository.cern/records/eny2v-4y338
499-
[isolation_forest_issue]: https://github.com/pylhc/omc3/issues/184
498+
[isolation_forest_issue]: https://github.com/pylhc/omc3/issues/184
499+
[harpy_ipac]: https://accelconf.web.cern.ch/ipac2022/papers/wepoms035.pdf
500+
[harpy_analysis]: ../../measurements/physics/harpy.md

docs/measurements/physics/harpy.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Harmonic Analysis with Harpy
2+
3+
This page describes how the harmonic analysis is performed with the `harpy` module.
4+
If you want to know how to use the `harpy` module, refer to the [`omc3` analysis workflow][omc3_analysis].
5+
6+
!!! todo "Implement this page"
7+
Explain how harpy works.
8+
Similar to [Malina - Harpy: A Fast, Simple and Accurate Harmonic Analysis with Error Propagation](https://accelconf.web.cern.ch/ipac2022/doi/JACoW-IPAC2022-WEPOMS035.html)
9+
but more detail:
10+
11+
- SVD, Noise cleaning, Noise estimation
12+
- Why numpy FFT? What about SUSSIX, LASKAR?
13+
- Zero padding
14+
- Binning
15+
- Error propagation
16+
- BPM cleaning
17+
- Line identification
18+
19+
20+
[omc3_analysis]: ../../packages/omc3/analysis.md

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ nav:
208208
- Error Propagation: measurements/physics/error_propagation.md
209209
- BPM-Calibration: measurements/physics/bpm_calibration.md
210210
- BPM-Filtering: measurements/physics/bpm_filtering.md
211+
- Harmonic Analysis: measurements/physics/harpy.md
211212
- Coupling: measurements/physics/coupling.md
212213
- K-Mod: measurements/physics/kmod.md
213214
- Linear IR Optics: measurements/physics/ir_linear_optics.md

0 commit comments

Comments
 (0)