An example of how to use Arkouda's Array-API module as the backend for XArray.
Follows this example from the XArray Gallery.
After completing the installation instructions for Chapel and Arkouda, go through the following steps to get the Jupyter notebook in this repo running:
-
clone and cd into this repo
-
create and activate the conda environment to install Xarray and set up some of Arkouda and XArray's dependencies
conda env create -f arkouda-xarray-env.yamlconda activate arkouda-xarray-env
-
install the
arkouda-xarraypackage into the environment- clone the repo
cdintoarkouda-xarrayandpip install .
-
install Arkouda into the environment
cdinto your local Arkouda directorypip install .
-
build the Arkouda server to support multidimensional arrays
- in your local Arkouda directory, edit
serverConfig.json, setting"max_array_dims": 3 - build the server for Array API compatibility:
ARKOUDA_CONFIG_FILE=ArrayAPIServerModules.cfg make(this will take some time)
- in your local Arkouda directory, edit
-
start the Arkouda server
./arkouda_server- (or
./arkouda_server -nl4if Chapel is configured for multinode builds)
-
run the Jupyter notebook
- as it runs, you should see the server executing commands in your terminal
-
stop the Arkouda server