The goal of the nxxrdct project is to provide a python API to create, load, edit, and save NXxrdct application definition files.
Please find at https://nxxrdct.readthedocs.io/en/latest/ the latest documentation
pip install nxxrdctAdd the optional extras when you need documentation or development tooling:
pip install nxxrdct[doc,test]import numpy as np
import pint
from nxxrdct import NXxrdct
ureg = pint.get_application_registry()
nx = NXxrdct()
nx.title = "Demo XRD-CT"
nx.beam.incident_energy = 60 * ureg.keV
nx.sample.name = "sample-01"
nx.sample.rotation_angles = np.linspace(0, 180, 181) * ureg.degree
nx.instrument.detector.data = np.zeros((181, 256, 256))
nx.instrument.detector.count_time = 0.1 * ureg.second
nx.save("demo_xrdct.h5", data_path="entry")- Latest documentation: https://nxxrdct.readthedocs.io/en/latest/
- API reference: https://nxxrdct.readthedocs.io/en/latest/api.html
- Report issues and follow development on GitHub: https://github.com/nexuscontributions/nxxrdct/issues
Contributions and feedback are welcome. Please open an issue or submit a merge request on Github. See the development guide in doc/development for details on setting up a local environment and running the test suite.
nxxrdct is released under the MIT License. See LICENSE for the full text.
