Calibration Module
The pyccapt.calibration package provides workflows for atom probe tomography data preparation, calibration, reconstruction, and visualization.

Core Workflows
Typical calibration workflows include:
Import and crop datasets (HDF5, EPOS, POS, ATO, CSV, and raw-detector workflows).
Correct time-of-flight and estimate
t0/flight-path parameters.Convert time-of-flight to mass-to-charge (
m/c).Apply voltage and bowl corrections.
Perform 3D reconstruction.
Define and apply ranging windows, including saved
.h5,.rrng, and.rngrange files.Generate 2D/3D visualizations and analysis plots.
Package Structure
core: validation, shared state, and primary calibration logicdata_tools: loading, conversion, and preprocessing utilitiesmc: mass-to-charge and time-of-flight helper functionsreconstructions: reconstruction and structural analysis toolsclustering: clustering and isosurface workflowsleap_tools: LEAP/POS/EPOS/APT/RRNG/RNG readers, Cameca raw importers, and helper toolstutorials: notebooks and notebook helper modules
Cross-Platform Paths
Use pyccapt.calibration.path_utils helpers for output and figure paths:
ensure_directorybuild_output_pathsave_figure
Data Structures
Calibration and range-file schema details are documented in Calibration_DATA_STRUCTURE.md.
Tutorials
Interactive examples are available in:
pyccapt/calibration/tutorials/jupyter_filespyccapt/calibration/tutorials/colab
The main Jupyter widget workflows currently include:
data_processing.ipynbvisualization.ipynbL_and_t0_determination.ipynbraw_data_analysis.ipynbcameca_raw_import.ipynbreflectron_correction.ipynbtapsim_node_builder.ipynb
Google Colab support is currently provided for:
data_processing.ipynbvisualization.ipynb
The tutorial save steps can export processed datasets as HDF5, EPOS, POS, and ATO.
The visualization helpers also include Min-Max and Maximum-Separation clustering,
iso-surface generation, and proxigram analysis for selected precipitate populations.
Linking and saving raw /tdc data alongside /dld
PyCCAPT acquisition files contain both a /dld group with reconstructed events
and a /tdc group with the raw delay-line timestamps (DLTS) from which those
events were derived. From the calibration tutorials you can opt in to loading
both groups together via the Load raw tdc dropdown, and at save time choose
Save raw tdc to write the still-relevant raw rows into a /tdc key inside
the calibrated .h5 output.
Internally this is handled by a shared event_group_id column added to both
dataframes when the file is loaded with load_tdc_raw=True. The column rides
through every cropping step in the calibration workflow (TOF clip, ROI, FDM,
sequence range, manual mask drops); at save time the linked tdc rows for
deleted dld rows are dropped, while orphan tdc rows (pulses that never produced
a reconstructible dld event) are always preserved. See
Calibration_DATA_STRUCTURE.md for the on-disk
schema of the optional /tdc group and the linking semantics.
The user-facing tutorial pages are grouped in the Tutorials section of this documentation set.
Workflow Snapshots


Interactive 3D example: Nimonic 90 reconstruction