Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.3%) to scientific vocabulary
Last synced: 7 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: SWE-bench-repos
  • License: apache-2.0
  • Language: Python
  • Default Branch: main
  • Size: 38.7 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 2 years ago · Last pushed over 2 years ago
Metadata Files
Readme Contributing Funding License Code of conduct Citation

README.md

xarray: N-D labeled arrays and datasets

CI Code coverage Docs Benchmarked with asv Available on pypi Formatted with black Checked with mypy Mirror on zendoo Examples on binder Twitter

xarray (pronounced "ex-array", formerly known as 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.

Documentation

Learn more about xarray in its official documentation at https://docs.xarray.dev/.

Try out an interactive Jupyter notebook.

Contributing

You can find information about contributing to xarray at our Contributing page.

Get in touch

  • Ask usage questions ("How do I?") on GitHub Discussions.
  • Report bugs, suggest features or view the source code on GitHub.
  • For less well defined questions or ideas, or to announce other projects of interest to xarray users, use the mailing list.

NumFOCUS

Xarray is a fiscally sponsored project of NumFOCUS, a nonprofit dedicated to supporting the open source scientific computing community. If you like Xarray and want to support our mission, please consider making a donation to support our efforts.

History

Xarray is an evolution of an internal tool developed at The Climate Corporation. It was originally written by Climate Corp researchers Stephan Hoyer, Alex Kleeman and Eugene Brevdo and was released as open source in May 2014. The project was renamed from "xray" in January 2016. Xarray became a fiscally sponsored project of NumFOCUS in August 2018.

Contributors

Thanks to our many contributors!

Contributors

License

Copyright 2014-2023, xarray Developers

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Xarray bundles portions of pandas, NumPy and Seaborn, all of which are available under a "3-clause BSD" license:

  • pandas: setup.py, xarray/util/print_versions.py
  • NumPy: xarray/core/npcompat.py
  • Seaborn: _determine_cmap_params in xarray/core/plot/utils.py

Xarray also bundles portions of CPython, which is available under the "Python Software Foundation License" in xarray/core/pycompat.py.

Xarray uses icons from the icomoon package (free version), which is available under the "CC BY 4.0" license.

The full text of these licenses are included in the licenses directory.

Owner

  • Name: SWE-bench-repos
  • Login: SWE-bench-repos
  • Kind: organization

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Hoyer"
  given-names: "Stephan"
  orcid: "https://orcid.org/0000-0002-5207-0380"
- family-names: "Roos"
  given-names: "Maximilian"
- family-names: "Joseph"
  given-names: "Hamman"
  orcid: "https://orcid.org/0000-0001-7479-8439"
- family-names: "Magin"
  given-names: "Justus"
- family-names: "Cherian"
  given-names: "Deepak"
  orcid: "https://orcid.org/0000-0002-6861-8734"
- family-names: "Fitzgerald"
  given-names: "Clark"
  orcid: "https://orcid.org/0000-0003-3446-6389"
- family-names: "Hauser"
  given-names: "Mathias"
  orcid: "https://orcid.org/0000-0002-0057-4878"
- family-names: "Fujii"
  given-names: "Keisuke"
  orcid: "https://orcid.org/0000-0003-0390-9984"
- family-names: "Maussion"
  given-names: "Fabien"
  orcid: "https://orcid.org/0000-0002-3211-506X"
- family-names: "Imperiale"
  given-names: "Guido"
- family-names: "Clark"
  given-names: "Spencer"
  orcid: "https://orcid.org/0000-0001-5595-7895"
- family-names: "Kleeman"
  given-names: "Alex"
- family-names: "Nicholas"
  given-names: "Thomas"
  orcid: "https://orcid.org/0000-0002-2176-0530"
- family-names: "Kluyver"
  given-names: "Thomas"
  orcid: "https://orcid.org/0000-0003-4020-6364"
- family-names: "Westling"
  given-names: "Jimmy"
- family-names: "Munroe"
  given-names: "James"
  orcid: "https://orcid.org/0000-0001-9098-6309"
- family-names: "Amici"
  given-names: "Alessandro"
  orcid: "https://orcid.org/0000-0002-1778-4505"
- family-names: "Barghini"
  given-names: "Aureliana"
- family-names: "Banihirwe"
  given-names: "Anderson"
  orcid: "https://orcid.org/0000-0001-6583-571X"
- family-names: "Bell"
  given-names: "Ray"
  orcid: "https://orcid.org/0000-0003-2623-0587"
- family-names: "Hatfield-Dodds"
  given-names: "Zac"
  orcid: "https://orcid.org/0000-0002-8646-8362"
- family-names: "Abernathey"
  given-names: "Ryan"
  orcid: "https://orcid.org/0000-0001-5999-4917"
- family-names: "Bovy"
  given-names: "Benoît"
- family-names: "Omotani"
  given-names: "John"
  orcid: "https://orcid.org/0000-0002-3156-8227"
- family-names: "Mühlbauer"
  given-names: "Kai"
  orcid: "https://orcid.org/0000-0001-6599-1034"
- family-names: "Roszko"
  given-names: "Maximilian K."
  orcid: "https://orcid.org/0000-0001-9424-2526"
- family-names: "Wolfram"
  given-names: "Phillip J."
  orcid: "https://orcid.org/0000-0001-5971-4241"
title: "xarray"
abstract: "N-D labeled arrays and datasets in Python."
license: Apache-2.0
doi: 10.5281/zenodo.598201
url: "https://xarray.dev/"
repository-code: "https://github.com/pydata/xarray"
preferred-citation:
  type: article
  authors:
  - family-names: "Hoyer"
    given-names: "Stephan"
    orcid: "https://orcid.org/0000-0002-5207-0380"
  - family-names: "Joseph"
    given-names: "Hamman"
    orcid: "https://orcid.org/0000-0001-7479-8439"
  doi: "10.5334/jors.148"
  journal: "Journal of Open Research Software"
  month: 4
  title: "xarray: N-D labeled Arrays and Datasets in Python"
  volume: 5
  issue: 1
  year: 2017

GitHub Events

Total
Last Year