Getting started#
Installation#
The latest shxarray is hosted on pypi and can be installed through pip:
pip install shxarray
Part of the module is written is Cython, which means that a c compiler is needed to build the package. A binary wheel is currently not offered, but this may be offered in the future.
Import and usage#
For most operations, a simple import will expose the xarray extensions. For example:
import shxarray
import xarray as xr
#Initialize a DataArray with zeros which has a dimension spanning degrees from nmin to nmax
nmax=20
nmin=2
dazeros=xr.DataArray.sh.ones(nmax=nmax,nmin=nmin)