Skip to content

Commit

Permalink
Merge branch 'add-pyarpes-and-sed-example' into 'main'
Browse files Browse the repository at this point in the history
Add k-space conversion and sed postprocessing example

See merge request nomad-lab/north/mpes!4
  • Loading branch information
rettigl committed Oct 8, 2024
2 parents 6738a0a + 59b1ad2 commit 738547f
Show file tree
Hide file tree
Showing 7 changed files with 1,727 additions and 1,019 deletions.
20 changes: 7 additions & 13 deletions src/pynxtools_mpes/nomad/examples/E1 Convert to NeXus.ipynb
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"# Converting Multidimensional Photoemission Spectroscopy (MPES) data into the NeXus format"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"This example shows how to convert x-array based h5 measurement files as generated by the [preprocessing output](https://www.nature.com/articles/s41597-020-00769-8) of the software used at the Fritz-Haber Institute into the [MPES NeXus format](https://manual.nexusformat.org/classes/contributed_definitions/NXmpes.html#nxmpes).\n",
"For an example on how to generate such a h5 measurement file please refer to the [binning example](./E2%20Binning%20of%20WSe2.ipynb)."
"For an example on how to generate such a h5 measurement file please refer to the [postprocessing example](./E2%20ARPES%20postprocessing.ipynb)."
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -41,7 +38,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -58,23 +54,22 @@
"dataconverter \\\n",
" --reader mpes \\\n",
" --nxdl NXmpes \\\n",
" --input-file MoTe2.h5 \\\n",
" --input-file config_file.json \\\n",
" --output MoTe2.mpes.nxs\n",
" --output MoTe2.mpes.nxs \\\n",
" MoTe2.h5 \\\n",
" config_file.json\n",
"```"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"from pynxtools.dataconverter.convert import convert"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -100,7 +95,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"tags": []
Expand Down Expand Up @@ -133,7 +127,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -147,7 +141,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
"version": "3.8.12"
},
"vscode": {
"interpreter": {
Expand Down
Loading

0 comments on commit 738547f

Please sign in to comment.