Skip to main content

xarray extension for NeXus input/output.

Project description

nxarray

xarray extension for NeXus input/output.

See the documentation for detailed information on installation and usage of nxarray.

Introduction

nxarray extends xarray DataArrays 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nxarray, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size nxarray-0.0.3-py3-none-any.whl (5.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size nxarray-0.0.3.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page