Files
tono/docs/nodes/Lattice Measurement.md
2026-04-03 23:11:52 -07:00

30 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Lattice Measurement
Detect and measure periodic lattice structures from ACF or FFT peak positions. Reports lattice vectors and angles. Equivalent to Gwyddion's measure_lattice.c module.
## Inputs
| Name | Type | Required | Description |
|------|------|----------|-------------|
| field | DATA_FIELD | Yes | Input field with periodic structure |
## Outputs
| Name | Type | Description |
|------|------|-------------|
| correlation | DATA_FIELD | ACF or FFT magnitude used for detection |
| measurements | RECORD_TABLE | Detected lattice vectors, spacings, and angle |
## Controls
| Name | Type | Default | Description |
|------|------|---------|-------------|
| method | dropdown | acf | Detection method: acf (autocorrelation) or fft (Fourier transform) |
## Notes
- ACF method finds the strongest off-center peaks in the 2D autocorrelation. Works well for real-space periodic structures.
- FFT method finds peaks in the power spectrum. Better for weak periodicity or noisy data.
- Reports up to two lattice vectors (a, b), their magnitudes, and the angle between them.
- For best results, the field should contain at least 34 complete periods in each direction.