@@ -2,19 +2,33 @@ xarray: N-D labeled arrays and datasets in Python
2
2
=================================================
3
3
4
4
**xarray ** (formerly **xray **) is an open source project and Python package
5
- that aims to bring the labeled data power of pandas _ to the physical sciences,
6
- by providing N-dimensional variants of the core pandas data structures.
7
-
8
- Our goal is to provide a pandas-like and pandas-compatible toolkit for
9
- analytics on multi-dimensional arrays, rather than the tabular data for which
10
- pandas excels. Our approach adopts the `Common Data Model `_ for self-
11
- describing scientific data in widespread use in the Earth sciences:
12
- ``xarray.Dataset `` is an in-memory representation of a netCDF file.
13
-
5
+ that makes working with labelled multi-dimensional arrays simple,
6
+ efficient, and fun!
7
+
8
+ Multi-dimensional (a.k.a. N-dimensional, ND) arrays (sometimes called
9
+ "tensors") are an essential part of computational science.
10
+ They are encountered in a wide range of fields, including physics, astronomy,
11
+ geoscience, bioinformatics, engineering, finance, and deep learning.
12
+ In Python, NumPy _ provides the fundamental data structure and API for
13
+ working with raw ND arrays.
14
+ However, real-world datasets are usually more than just raw numbers;
15
+ they have labels which encode information about how the array values map
16
+ to locations in space, time, etc.
17
+
18
+ By introducing *dimensions *, *coordinates *, and *attributes * on top of raw
19
+ NumPy-like arrays, xarray is able to understand these labels and use them to
20
+ provide a more intuitive, more concise, and less error-prone experience.
21
+ Xarray also provides a large and growing library of functions for advanced
22
+ analytics and visualization with these data structures.
23
+ Xarray was inspired by and borrows heavily from pandas _, the popular data
24
+ analysis package focused on labelled tabular data.
25
+ Xarray can read and write data from most common labeled ND-array storage
26
+ formats and is particularly tailored to working with netCDF _ files, which were
27
+ the source of xarray's data model.
28
+
29
+ .. _NumPy : http://www.numpy.org/
14
30
.. _pandas : http://pandas.pydata.org
15
- .. _Common Data Model : http://www.unidata.ucar.edu/software/thredds/current/netcdf-java/CDM
16
31
.. _netCDF : http://www.unidata.ucar.edu/software/netcdf
17
- .. _OPeNDAP : http://www.opendap.org/
18
32
19
33
Documentation
20
34
-------------
@@ -106,7 +120,7 @@ See also
106
120
.. _2015 Unidata Users Workshop talk : https://www.youtube.com/watch?v=J9ypQOnt5l8
107
121
.. _tutorial : https://github.com/Unidata/unidata-users-workshop/blob/master/notebooks/xray-tutorial.ipynb
108
122
.. _with answers : https://github.com/Unidata/unidata-users-workshop/blob/master/notebooks/xray-tutorial-with-answers.ipynb
109
- .. _Nicolas Fauchereau's tutorial : http://nbviewer.ipython .org/github/nicolasfauchereau/metocean/blob/master/notebooks/xray.ipynb
123
+ .. _Nicolas Fauchereau's tutorial : http://nbviewer.iPython .org/github/nicolasfauchereau/metocean/blob/master/notebooks/xray.ipynb
110
124
111
125
Get in touch
112
126
------------
0 commit comments