diff --git a/tutorial/10_hextof_workflow_trXPS_bam_correction.ipynb b/tutorial/10_hextof_workflow_trXPS_bam_correction.ipynb index 01c9a40b..06184cfd 100644 --- a/tutorial/10_hextof_workflow_trXPS_bam_correction.ipynb +++ b/tutorial/10_hextof_workflow_trXPS_bam_correction.ipynb @@ -53,7 +53,7 @@ "id": "07076e2f", "metadata": {}, "source": [ - "## Get data paths\n", + "### Get data paths\n", "\n", "If it is your beamtime, you can read the raw data and write to the processed directory. For the public data, you can not write to the processed directory.\n", "\n", @@ -201,6 +201,14 @@ "sp_44498.dataframe.head()" ] }, + { + "cell_type": "markdown", + "id": "db246a19", + "metadata": {}, + "source": [ + "## Data w/o BAM correction" + ] + }, { "cell_type": "markdown", "id": "1349568e", @@ -300,7 +308,7 @@ "id": "2742bb17", "metadata": {}, "source": [ - "### Check BAM versus pulse and train IDs" + "## Check BAM versus pulse and train IDs" ] }, { @@ -338,6 +346,14 @@ "plt.show()" ] }, + { + "cell_type": "markdown", + "id": "babbc574", + "metadata": {}, + "source": [ + "## Apply BAM correction" + ] + }, { "cell_type": "markdown", "id": "b0c70ad0", @@ -473,7 +489,7 @@ "id": "8da4db1f", "metadata": {}, "source": [ - "### We can visualize a BAM correction effect using comparison plots" + "## Comparison of the BAM correction effect" ] }, { diff --git a/tutorial/11_hextof_workflow_trXPS_energy_calibration_using_SB.ipynb b/tutorial/11_hextof_workflow_trXPS_energy_calibration_using_SB.ipynb index 78168601..1c1e5b8f 100644 --- a/tutorial/11_hextof_workflow_trXPS_energy_calibration_using_SB.ipynb +++ b/tutorial/11_hextof_workflow_trXPS_energy_calibration_using_SB.ipynb @@ -1,9 +1,33 @@ { "cells": [ + { + "cell_type": "markdown", + "id": "916b6dc6", + "metadata": {}, + "source": [ + "# Tutorial for trXPS for energy calibration using core level side-bands" + ] + }, + { + "cell_type": "markdown", + "id": "61c9f989", + "metadata": {}, + "source": [ + "## Preparation" + ] + }, + { + "cell_type": "markdown", + "id": "aacad72f", + "metadata": {}, + "source": [ + "### Import necessary libraries" + ] + }, { "cell_type": "code", "execution_count": null, - "id": "d33dec83-015b-4b86-9a84-81d10453fe25", + "id": "5e6dcd73", "metadata": {}, "outputs": [], "source": [ @@ -29,7 +53,7 @@ "id": "2c147a5f-d84d-448a-9685-056035e464ed", "metadata": {}, "source": [ - "## Get data paths\n", + "### Get data paths\n", "\n", "If it is your beamtime, you can read the raw data and write to the processed directory. For the public data, you can not write to the processed directory.\n", "\n", @@ -60,7 +84,7 @@ "id": "92b884c6-416c-43dc-9ea4-59aeb04cd045", "metadata": {}, "source": [ - "## Config setup\n", + "### Config setup\n", "\n", "Here, we get the path to the config file and set up the relevant directories. This can also be done directly in the config file." ] @@ -101,7 +125,7 @@ "id": "a47990f8", "metadata": {}, "source": [ - "## For reference, we determine the energy calibration from a bias series first" + "## Reference calibration from a bias series" ] }, { @@ -201,7 +225,7 @@ "id": "98266c62-ab48-4746-96c8-2d47cf92c0e9", "metadata": {}, "source": [ - "### Now we can use those parameters and load our trXPS data using additional config file" + "### Now we can use those parameters and load our trXPS data using the additional config file" ] }, { @@ -241,12 +265,20 @@ "res_ref.plot()" ] }, + { + "cell_type": "markdown", + "id": "0d735518", + "metadata": {}, + "source": [ + "## Energy calibration using side-band peaks" + ] + }, { "cell_type": "markdown", "id": "6c2c8918-322b-4429-8ee9-cc8d032c82d3", "metadata": {}, "source": [ - "## Visualize trXPS data bin in the dldTimeSteps and the corrected delay axis to prepare for energy calibration using SB\n", + "### Visualize trXPS data bin in the dldTimeSteps and the corrected delay axis to prepare for energy calibration using SB\n", "We now prepare for an alternative energy calibration based on the side-bands of the time-dependent dataset. This is e.g. helpful if no bias series has been obtained." ] }, @@ -385,7 +417,7 @@ "id": "4052d629-1178-4248-a945-d60a6ff34bf3", "metadata": {}, "source": [ - "## Append energy axis into a data frame, bin and visualize data in the calibrated energy and corrected delay axis " + "### Append energy axis into a data frame, bin and visualize data in the calibrated energy and corrected delay axis " ] }, { @@ -424,7 +456,7 @@ "id": "a66fac5e", "metadata": {}, "source": [ - "## Compare spectra to reference\n", + "## Compare to reference\n", "While this calibration methods gives a reasonable approximation to the energy axis, there are some deviations to the bias method, so it should be used with care" ] }, diff --git a/tutorial/9_hextof_workflow_trXPD.ipynb b/tutorial/9_hextof_workflow_trXPD.ipynb index a2db6b50..90f3ef63 100644 --- a/tutorial/9_hextof_workflow_trXPD.ipynb +++ b/tutorial/9_hextof_workflow_trXPD.ipynb @@ -51,7 +51,7 @@ "id": "d3ed214a", "metadata": {}, "source": [ - "## Get data paths\n", + "### Get data paths\n", "\n", "If it is your beamtime, you can access both read the raw data and write to processed directory. For the public data, you can not write to processed directory.\n", "\n", @@ -82,7 +82,7 @@ "id": "30effaac", "metadata": {}, "source": [ - "## Config setup\n", + "### Config setup\n", "\n", "Here we get the path to the config file and setup the relevant directories. This can also be done directly in the config file." ] @@ -123,7 +123,7 @@ "id": "ee483947", "metadata": {}, "source": [ - "## Prepare Energy Calibration\n", + "### Prepare Energy Calibration\n", "Instead of making completely new energy calibration we can take existing values from the calibration made in the previous tutorial. This allows us to calibrate the conversion between the digital values of the dld and the energy." ] }, @@ -168,7 +168,7 @@ "id": "f070b3bb", "metadata": {}, "source": [ - "### Read data\n", + "## Read data\n", "Now we can use those parameters and load our trXPD data using additional config file" ] }, @@ -299,7 +299,7 @@ "id": "43e84eff", "metadata": {}, "source": [ - "### XPD from W4f core level\n", + "## XPD from W4f core level\n", "\n", "Now we can bin not only in energy but also in both momentum directions to get XPD patterns of different core level line of tungsten." ]