Skip to content

Commit

Permalink
update ellips example from nomad-distro
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspie committed Nov 25, 2024
1 parent f21be30 commit c8aa95a
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 37 deletions.
44 changes: 34 additions & 10 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,40 @@
# What is NXellipsometry?
# Introduction

The [NXellipsometry](https://fairmat-nfdi.github.io/nexus_definitions/classes/contributed_definitions/NXellipsometry.html#nxellipsometry) NeXus application definition is a standard for converting ellipsometry data to make it FAIR.
This example presents the capabilities of the NOMAD platform to store and standardize ellipsometry data. It shows the generation of a NeXus file according to the [NXellipsometry](https://manual.nexusformat.org/classes/contributed_definitions/NXellipsometry.html#nxellipsometry) application definition and a successive analysis of an example data set (measured values of the ellipsometric angles Psi and Delta of SiO2 on Si).

# How to use it?
# Viewing uploaded data

Navigate to the examples directory. Therein, execute the following command
which instructs the `ellips` reader to convert the example data using the `NXellipsometry` NeXus application definition resulting in a NeXus/HDF5 file:
Below, you find an overview of your uploaded data.
Click on the `> /` button to get a list of your data or select **FILES** from the top menu of this upload.
You may add your own files to the upload or experiment with the pre-existing electronic lab notebook (ELN) example.
The ELN follows the general structure of NOMAD ELN templates and you may refer to the [documentation](https://nomad-lab.eu/prod/v1/staging/docs/archive.html) or a [YouTube tutorial](https://youtu.be/o5ETHmGmnaI) (~1h)
for further information.
When the ELN is saved a NeXus file will be generated from the provided example data.
You may also view your supplied or generated NeXus files here with the H5Web viewer.
To do so open the **FILES** tab and just select a `.nxs` file.

```shell
dataconverter --reader ellips --nxdl NXellipsometry eln_data.yaml --output SiO2onSi.nxs
```
## Filelist

# Are there detailed examples?
- Measurement data: test-data.dat
- Metadata file: eln_data.yaml
- Notebook with instructions: Ellipsometry workflow example.ipynb
- NeXus file: SiO2onSi.ellips.nxs (will be created when running the notebook)

Yes, [here](https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-remote-tools-hub/-/tree/develop/docker/ellips) you can find an exhaustive example how to use `pynxtools` for your ellipsometry research data pipeline.
# Analyzing the data

The examples work through the use of NOMAD remote tools hub (NORTH) containers, i.e. besides using and dealing with the uploaded ellipsometry data, an analysis container can be started. If you want to execute the examples locally you may also use your local python and jupyterlab installation. Please refer to the documentation of [pynxtools](https://github.com/FAIRmat-NFDI/pynxtools.git), analysis tool [pyElli](https://github.com/PyEllips/pyElli) and [h5web](https://github.com/silx-kit/h5web) on how to install it on your machine.

To start an analysis, note your upload id (which you find on top of this explanation) and select **ANALYZE** from the top menu, then **NOMAD Remote Tools Hub**.
In the appearing list you'll find the `ellips` container, click on it and click **LAUNCH**.
After a few moments a new tab will open which displays a jupyter environment providing the required analysis tools.
To find the examples navigate to uploads inside the jupyter hub browser and select the folder with your noted upload id.
There you'll find the example `ipynb` notebook.
Double-clicking the notebook will open the example in the jupyter main window.

# Where to go from here?

If you're interested in using this pipeline and NOMAD in general you'll find support at [FAIRmat](https://www.fairmat-nfdi.eu/fairmat/consortium).

For questions regarding the experiment or this specific example contact [Carola Emminger](https://www.fairmat-nfdi.eu/fairmat/fairmat_/fairmatteam).

If you want to learn more about the analysis tool, please refer to its [github page](https://github.com/PyEllips/pyElli), where you may raise an [issue](https://github.com/PyEllips/pyElli/issues), look at the [documentation](https://pyelli.readthedocs.io/en/latest/) or just get in contact with the developers.
Binary file removed examples/SiO2onSi.nxs
Binary file not shown.
42 changes: 15 additions & 27 deletions examples/eln_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,57 +7,45 @@ Data:
spectrum_type: wavelength
spectrum_unit: angstrom
instrument:
beam_source:
parameter_reliability: nominal
incident_wavelength:
value:
- 193
- 1700
unit: nm
associated_source: entry/instrument/source_light
detector:
count_time:
unit: s
value: 1.0
detector_type: CCD
detector_channel_type: multichannel
sample_stage:
stage_type: 'manual stage'
device_information:
model: 'RC2 (Vers. 0.0.1)'
vendor: J. A. Woollam Co.
ellipsometer_type: dual compensator
focussing_probes:
angular_spread:
unit: rad
value: 0.2
data_correction: false
type: objective
instrument_calibration_RC2:
calibration_status: 'no calibration'
light_source:
source_type: arc lamp
rotating_element:
revolutions:
value: 50.0
unit: '' # '' for nomad, nexus needs 'counts'
sample_stage:
stage_type: manual stage
device_information:
vendor: J. A. Woollam Co.
model: RC2 (Vers. 0.0.1)
ellipsometer_type: dual compensator
revolutions: 50.0
rotating_element_type: compensator (source side)
software_RC2: CompleteEASE
software_RC2/@url: https://www.jawoollam.com/ellipsometry-software/completeease
software_RC2/@version: '6.37'
instrument_calibration_RC2:
calibration_status: no calibration
sample:
atom_types: Si, O
backside_roughness: false
chemical_formula: SiO2
layer_structure: 2nm SiO2 on Si
name: 2nm SiO2 on Si
physical_form: multi layer
substrate: Si
environment:
sample_medium: air
history:
notes:
description: Commercially purchased sample
layer_structure: 2nm SiO2 on Si
physical_form: multi layer
name: 2nm SiO2 on Si
substrate: Si
user:
address: Zum Großen Windkanal 2, 12489 Berlin, Germany
affiliation: Humboldt-Universität zu Berlin
Expand All @@ -75,15 +63,15 @@ definition: NXellipsometry
definition/@url: https://github.com/FAIRmat-NFDI/nexus_definitions/blob/fairmat/contributed_definitions/NXellipsometry.nxdl.xml
definition/@version: 0.0.2
derived_parameter_type: depolarization
ellipsometry_experiment_type: NIR-Vis-UV spectroscopic ellipsometry
experiment_description: RC2 scan on 2nm SiO2 on Si in air
experiment_identifier:
identifier: exp-ID
is_persistent: 'false'
experiment_type: ellipsometry
ellipsometry_experiment_type: NIR-Vis-UV spectroscopic ellipsometry
filename: test-data.dat
plot_name: Psi and Delta
title: RC2 Ellipsometry of 2nm SiO2 on Si
sep: \t
skip: 3
start_time: '2022-01-27T03:35:00+00:00'
title: RC2 Ellipsometry of 2nm SiO2 on Si

0 comments on commit c8aa95a

Please sign in to comment.