You're reading an old version of this documentation. For up-to-date information, please have a look at v0.3.

First overview of a measurement

Measuring cw-EPR spectra of samples often results in a series of measurements, and one of the first tasks is to get an overview what has been measured and how the results look like.

To this end, a series of tasks needs to be performed on each dataset:

  1. Baseline correction (at least zeroth-order)

  2. Frequency correction (to be comparable)

  3. Simple plot for graphical display of recorded data

Furthermore, it can be quite useful to automatically generate a well-formatted report including the metadata (such as the parameters and settings used to record the data) as well.

Complete recipe for getting a first overview of a recorded spectrum, with zeroth-oder baseline correction, frequency correction, a simple 1D plot, and a report covering as well the metadata contained in the dataset.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
format:
  type: ASpecD recipe
  version: '0.2'

settings:
  default_package: cwepr
  autosave_plots: false

directories:
  datasets_source: ../../tests/io/testdata/

datasets:
- BDPA-1DFieldSweep

tasks:
- kind: processing
  type: BaselineCorrection
  comment: Zero-order to remove DC offsets
- kind: processing
  type: FrequencyCorrection
  properties:
    parameters:
      frequency: 9.5
  comment: Always important to be comparable between measurements
- kind: singleplot
  type: SinglePlotter1D
  properties:
    parameters:
      show_legend: true
      show_zero_lines: true
    filename: BDPA-FieldSweep.pdf
    caption:
      title: A first look at the recorded data.
      text: >
        The spectrum has been baseline and frequency-corrected,
        but is otherwise displayed as recorded.
  apply_to:
  - BDPA-1DFieldSweep
- kind: report
  type: LaTeXReporter
  properties:
    template: dataset.tex
    filename: BDPA-FieldSweep-Report.tex
  apply_to:
  - BDPA-1DFieldSweep
  compile: true