1. Learn
  2. Geographic Information Systems (GIS)
  3. GIS Tutorials/How-Tos
  4. Installing xarray on ArcGIS Notebook Server

Installing xarray on ArcGIS Notebook Server

xarray is one of key packages in Pangeo.

Step-by-step guide for 10.8

  1. !conda update -y -n base -c defaults conda
  2. !conda install -y xarray

Step-by-step guide for 10.7.1

ArcGIS 10.7.1 Notebook Server has a bug that doesn't allow to use conda for installing xarray.

You need to use pip instead of conda.

  1. !pip install --upgrade pandas
  2. !pip install --upgrade netCDF4
  3. !pip install --upgrade bottleneck
  4. !pip install xarray

You may encounter error message that can be ignored:

ERROR: fastai 1.0.50.post1 requires nvidia-ml-py3, which is not installed.

NVDIA GPU enabled instance may help to get rid of the above warning.

Information Icon Use the following code to test xarray.
import xarray as xr
import numpy as np
data = xr.DataArray(np.random.randn(2, 3), dims=('x', 'y'), coords={'x': [10, 20]})
print(data)

Page Last Updated: Jul 9, 2021 at 12:57 PM EDT