Skip to content

nexuscontributions/nxxrdct

Repository files navigation

NXxrdct

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 nxxrdct

Add the optional extras when you need documentation or development tooling:

pip install nxxrdct[doc,test]

Quick Start

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")

Documentation and Support

Contributing

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.

License

nxxrdct is released under the MIT License. See LICENSE for the full text.

About

Package to create, load, edit, and save files following the (future) NXxrdct application definition.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages