4Denoise Guide¶
4Denoise provides loading, visualization, denoising, peak analysis, and strain mapping for 4D-STEM data. Start with installation and the quickstart, which uses the included mini dataset. Continue with the streaming tutorial to keep diffraction pixels on disk, or the full DEMO notebook for the in-memory peak-refinement and relative-strain workflow.
For self-contained lessons without microscope data, start with the tutorial notebook series. Seven notebooks cover loading/calibration, visualization/virtual detectors, alignment/coordinate transforms, denoising/unfolding, peak analysis/Braggness, strain/RQ calibration, and disk-backed large-data processing using reproducible synthetic data, including regular hexagonal diffraction patterns. Each also accepts a chosen experimental or simulation input, with a file-based contract for the last lesson; see using your own data. The lessons can be read directly online with code and validated figures, or downloaded as clean notebooks. Synthetic results verify the teaching workflow, not an original acquisition or an experimental physical interpretation.
HyperData(path) loads into RAM; HyperData.open(path) provides a read-only
source with bounded processing and selected disk-output operations. Neither
an installed reader nor a preserved vendor field implies that an original
microscope acquisition or its physical calibration has been validated.
Concepts and Tasks¶
Data model: in-memory objects, sources, peak collections, axes, and calibration.
I/O and calibration: native and optional RosettaSciIO readers, metadata, streamed processing, and saving.
Visualization: diffraction patterns, virtual detectors, and calibrated axes.
Denoising and unfolding: what happens to excluded data during a traversal.
Peaks and strain: ragged peak collections, incremental peak files, refinement, and strain diagnostics.
Braggness: concentrated sharp diffraction contrast and validity masks.
The API reference lists selected public entry points and draws their signatures and descriptions from the source docstrings.
Research Workflow¶
The 3D strain-mapping case study links the full experimental and simulation notebooks and describes the external data, compute requirements, and MATLAB GUI. It is not a routine installation test.
This guide follows the repository’s main branch. GitHub Actions validates
the documentation, mini-data DEMO, and registered tutorials before publishing updates to GitHub
Pages. You can also build the guide locally.
Getting started
Tutorial notebooks
Tasks
Reference and research
- HyperData API
- Views and Results API
- Utility API
- 3D Strain-Mapping Case Study
- Troubleshooting
- A Different Package Version Imports
- A Raw File Has the Wrong Shape
- An HDF5 File Has Multiple Datasets
- A Microscopy Format Needs RosettaSciIO
- Dataset or Axis Selection Is Ambiguous
- Calibration Is Missing or Selections Use Unexpected Units
- A Source Is Closed or Has No Array Attribute
- A Peak File Will Not Load as HyperData
- An Unfolded Result Changes Shape
- A Large Workflow Exhausts Memory
- A Saved Output Already Exists
- The Website Does Not Show Local Documentation Changes