xarray extension for NeXus input/output.
Project Links
Meta
Author: Mirco Panighel
Requires Python: >=3
Classifiers
Development Status
- 2 - Pre-Alpha
Intended Audience
- Developers
Natural Language
- English
Programming Language
- Python :: 3
License
- OSI Approved :: MIT License
Operating System
- OS Independent
nxarray
xarray extension for NeXus input/output.
Introduction
nxarray extends xarray DatArrays and Datasets with a high-level python interface for NeXus file input and output.
Installation
pip install nxarray
Prerequisites
nxarray is built on and depends on nexusformat and xarray.
Usage
The recommended import
import nxarray as nxr
To save a DataArray or Dataset to a NeXus file use the nxr.save() method:
dr = xarray.DataArray()
dr.nxr.save(path/to/file.nx)
To load a NeXus file into an xarray Dataset use the nxr.load() function:
ds = nxr.load(path/to/file.nx)
See the docstring help for more detailed information.
Jul 04, 2022
0.4.4
Apr 13, 2021
0.4.3
Mar 30, 2021
0.2.0
Feb 17, 2021
0.1.1
Apr 30, 2020
0.1.0
Mar 10, 2020
0.0.3
Feb 16, 2020
0.0.2