gituser/test_manylinux/: xarray-0.20.2 metadata and description

Homepage Simple index

N-D labeled arrays and datasets in Python

author xarray Developers
author_email xarray@googlegroups.com
classifiers
  • Development Status :: 5 - Production/Stable
  • License :: OSI Approved :: Apache Software License
  • Operating System :: OS Independent
  • Intended Audience :: Science/Research
  • Programming Language :: Python
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.7
  • Programming Language :: Python :: 3.8
  • Programming Language :: Python :: 3.9
  • Programming Language :: Python :: 3.10
  • Topic :: Scientific/Engineering
description_content_type text/x-rst
license Apache
provides_extras viz
requires_dist
  • numpy (>=1.18)
  • pandas (>=1.1)
  • importlib-metadata ; python_version < "3.8"
  • typing-extensions (>=3.7) ; python_version < "3.8"
  • scipy ; extra == 'accel'
  • bottleneck ; extra == 'accel'
  • numbagg ; extra == 'accel'
  • netCDF4 ; extra == 'complete'
  • h5netcdf ; extra == 'complete'
  • scipy ; extra == 'complete'
  • pydap ; extra == 'complete'
  • zarr ; extra == 'complete'
  • fsspec ; extra == 'complete'
  • cftime ; extra == 'complete'
  • rasterio ; extra == 'complete'
  • cfgrib ; extra == 'complete'
  • pooch ; extra == 'complete'
  • bottleneck ; extra == 'complete'
  • numbagg ; extra == 'complete'
  • dask[complete] ; extra == 'complete'
  • matplotlib ; extra == 'complete'
  • seaborn ; extra == 'complete'
  • nc-time-axis ; extra == 'complete'
  • netCDF4 ; extra == 'docs'
  • h5netcdf ; extra == 'docs'
  • scipy ; extra == 'docs'
  • pydap ; extra == 'docs'
  • zarr ; extra == 'docs'
  • fsspec ; extra == 'docs'
  • cftime ; extra == 'docs'
  • rasterio ; extra == 'docs'
  • cfgrib ; extra == 'docs'
  • pooch ; extra == 'docs'
  • bottleneck ; extra == 'docs'
  • numbagg ; extra == 'docs'
  • dask[complete] ; extra == 'docs'
  • matplotlib ; extra == 'docs'
  • seaborn ; extra == 'docs'
  • nc-time-axis ; extra == 'docs'
  • sphinx-autosummary-accessors ; extra == 'docs'
  • sphinx-rtd-theme ; extra == 'docs'
  • ipython ; extra == 'docs'
  • ipykernel ; extra == 'docs'
  • jupyter-client ; extra == 'docs'
  • nbsphinx ; extra == 'docs'
  • scanpydoc ; extra == 'docs'
  • netCDF4 ; extra == 'io'
  • h5netcdf ; extra == 'io'
  • scipy ; extra == 'io'
  • pydap ; extra == 'io'
  • zarr ; extra == 'io'
  • fsspec ; extra == 'io'
  • cftime ; extra == 'io'
  • rasterio ; extra == 'io'
  • cfgrib ; extra == 'io'
  • pooch ; extra == 'io'
  • dask[complete] ; extra == 'parallel'
  • matplotlib ; extra == 'viz'
  • seaborn ; extra == 'viz'
  • nc-time-axis ; extra == 'viz'
requires_python >=3.7
File Tox results History
xarray-0.20.2-py3-none-any.whl
Size
825 KB
Type
Python Wheel
Python
3

xarray (formerly xray) is an open source project and Python package that makes working with labelled multi-dimensional arrays simple, efficient, and fun!

xarray introduces labels in the form of dimensions, coordinates and attributes on top of raw NumPy-like arrays, which allows for a more intuitive, more concise, and less error-prone developer experience. The package includes a large and growing library of domain-agnostic functions for advanced analytics and visualization with these data structures.

xarray was inspired by and borrows heavily from pandas, the popular data analysis package focused on labelled tabular data. It is particularly tailored to working with netCDF files, which were the source of xarray’s data model, and integrates tightly with dask for parallel computing.

Why xarray?

Multi-dimensional (a.k.a. N-dimensional, ND) arrays (sometimes called “tensors”) are an essential part of computational science. They are encountered in a wide range of fields, including physics, astronomy, geoscience, bioinformatics, engineering, finance, and deep learning. In Python, NumPy provides the fundamental data structure and API for working with raw ND arrays. However, real-world datasets are usually more than just raw numbers; they have labels which encode information about how the array values map to locations in space, time, etc.

xarray doesn’t just keep track of labels on arrays – it uses them to provide a powerful and concise interface. For example:

  • Apply operations over dimensions by name: x.sum('time').

  • Select values by label instead of integer location: x.loc['2014-01-01'] or x.sel(time='2014-01-01').

  • Mathematical operations (e.g., x - y) vectorize across multiple dimensions (array broadcasting) based on dimension names, not shape.

  • Flexible split-apply-combine operations with groupby: x.groupby('time.dayofyear').mean().

  • Database like alignment based on coordinate labels that smoothly handles missing values: x, y = xr.align(x, y, join='outer').

  • Keep track of arbitrary metadata in the form of a Python dictionary: x.attrs.

Learn more