Skip to main content
Have a personal or library account? Click to login
xarray: N-D labeled Arrays and Datasets in Python Cover

xarray: N-D labeled Arrays and Datasets in Python

By: Stephan Hoyer and  Joe Hamman  
Open Access
|Apr 2017

Figures & Tables

Figure 1

An example of a multidimensional labeled array. This figure (map) is showing the global surface air temperature for May 1, 2016 from ERA-Interim Reanalyis [11]. The map is labeled with the array's coordinates: longitude and latitude.

Figure 2

An overview of xarray’s main data structures. Types are annotated using Python 3 style type hints [23]. “Mapping of” denotes an ordered mapping with values of the given type.

Figure 3

An example of how a dataset (netCDF or xarray) for a weather forecast might be structured. This dataset has three dimensions, time, y, and x, each of which is also a one-dimensional coordinate. Temperature and precipitation are three-dimensional data variables. Also included in the dataset are two-dimensional coordinates latitude and longitude, having dimensions y and x, and reference time, a zero-dimensional (scalar) coordinate.

DOI: https://doi.org/10.5334/jors.148 | Journal eISSN: 2049-9647
Language: English
Submitted on: Sep 7, 2016
Accepted on: Feb 23, 2017
Published on: Apr 5, 2017
Published by: Ubiquity Press
In partnership with: Paradigm Publishing Services
Publication frequency: 1 issue per year

© 2017 Stephan Hoyer, Joe Hamman, published by Ubiquity Press
This work is licensed under the Creative Commons Attribution 4.0 License.