https://github.com/csyhuang/xarray
N-D labeled arrays and datasets in Python
Science Score: 20.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
16 of 146 committers (11.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.8%) to scientific vocabulary
Keywords from Contributors
closember
alignment
flexible
pydata
cython
plot
numerical-methods
notebooks
wx
tk
Last synced: 10 months ago
·
JSON representation
Repository
N-D labeled arrays and datasets in Python
Basic Info
- Host: GitHub
- Owner: csyhuang
- License: apache-2.0
- Language: Python
- Default Branch: master
- Homepage: http://xarray.pydata.org
- Size: 13.6 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Fork of pydata/xarray
Created over 7 years ago
· Last pushed over 7 years ago
Metadata Files
Readme
License
Code of conduct
README.rst
xarray: N-D labeled arrays and datasets
=======================================
.. image:: https://travis-ci.org/pydata/xarray.svg?branch=master
:target: https://travis-ci.org/pydata/xarray
.. image:: https://ci.appveyor.com/api/projects/status/github/pydata/xarray?svg=true&passingText=passing&failingText=failing&pendingText=pending
:target: https://ci.appveyor.com/project/shoyer/xray
.. image:: https://coveralls.io/repos/pydata/xarray/badge.svg
:target: https://coveralls.io/r/pydata/xarray
.. image:: https://readthedocs.org/projects/xray/badge/?version=latest
:target: http://xarray.pydata.org/
.. image:: https://img.shields.io/pypi/v/xarray.svg
:target: https://pypi.python.org/pypi/xarray/
.. image:: https://zenodo.org/badge/13221727.svg
:target: https://zenodo.org/badge/latestdoi/13221727
.. image:: http://img.shields.io/badge/benchmarked%20by-asv-green.svg?style=flat
:target: http://pandas.pydata.org/speed/xarray/
.. image:: https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&colorA=E1523D&colorB=007D8A
:target: http://numfocus.org
**xarray** (formerly **xray**) is an open source project and Python package that aims to bring the
labeled data power of pandas_ to the physical sciences, by providing
N-dimensional variants of the core pandas data structures.
Our goal is to provide a pandas-like and pandas-compatible toolkit for
analytics on multi-dimensional arrays, rather than the tabular data for which
pandas excels. Our approach adopts the `Common Data Model`_ for self-
describing scientific data in widespread use in the Earth sciences:
``xarray.Dataset`` is an in-memory representation of a netCDF file.
.. _pandas: http://pandas.pydata.org
.. _Common Data Model: http://www.unidata.ucar.edu/software/thredds/current/netcdf-java/CDM
.. _netCDF: http://www.unidata.ucar.edu/software/netcdf
.. _OPeNDAP: http://www.opendap.org/
Why xarray?
-----------
Adding dimensions names and coordinate indexes to numpy's ndarray_ makes many
powerful array operations possible:
- 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``.
pandas_ provides many of these features, but it does not make use of dimension
names, and its core data structures are fixed dimensional arrays.
Why isn't pandas enough?
------------------------
pandas_ excels at working with tabular data. That suffices for many statistical
analyses, but physical scientists rely on N-dimensional arrays -- which is
where xarray comes in.
xarray aims to provide a data analysis toolkit as powerful as pandas_ but
designed for working with homogeneous N-dimensional arrays
instead of tabular data. When possible, we copy the pandas API and rely on
pandas's highly optimized internals (in particular, for fast indexing).
Why netCDF?
-----------
Because xarray implements the same data model as the netCDF_ file format,
xarray datasets have a natural and portable serialization format. But it is also
easy to robustly convert an xarray ``DataArray`` to and from a numpy ``ndarray``
or a pandas ``DataFrame`` or ``Series``, providing compatibility with the full
`PyData ecosystem `__.
Our target audience is anyone who needs N-dimensional labeled arrays, but we
are particularly focused on the data analysis needs of physical scientists --
especially geoscientists who already know and love netCDF_.
.. _ndarray: http://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html
.. _pandas: http://pandas.pydata.org
.. _netCDF: http://www.unidata.ucar.edu/software/netcdf
Documentation
-------------
The official documentation is hosted on ReadTheDocs at http://xarray.pydata.org/
Contributing
------------
You can find information about contributing to xarray at our `Contributing page `_.
Get in touch
------------
- Ask usage questions ("How do I?") on `StackOverflow`_.
- 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`_.
.. _StackOverFlow: http://stackoverflow.com/questions/tagged/python-xarray
.. _mailing list: https://groups.google.com/forum/#!forum/xarray
.. _on GitHub: http://github.com/pydata/xarray
NumFOCUS
--------
.. image:: https://numfocus.org/wp-content/uploads/2017/07/NumFocus_LRG.png
:scale: 25 %
:target: https://numfocus.org/
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.
.. _donation: https://www.flipcause.com/secure/cause_pdetails/NDE2NTU=
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.
__ http://climate.com/
.. _NumFOCUS: https://numfocus.org
License
-------
Copyright 2014-2018, 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
http://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.
The full text of these licenses are included in the licenses directory.
Owner
- Name: Clare S. Y. Huang
- Login: csyhuang
- Kind: user
- Website: http://claresyhuang.info
- Twitter: claresyhuang
- Repositories: 43
- Profile: https://github.com/csyhuang
Data Scientist. Climate Scientist. Ph.D in Geophysical Sciences (U of Chicago). Love coding, writing and playing music.
GitHub Events
Total
Last Year
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Stephan Hoyer | s****r@c****m | 1,109 |
| Clark Fitzgerald | c****g@g****m | 88 |
| Joe Hamman | j****n@u****u | 79 |
| Joe Hamman | j****1@u****u | 67 |
| Fabien Maussion | f****n@u****t | 63 |
| Clark Fitzgerald | c****d@c****m | 61 |
| Keisuke Fujii | f****p@g****m | 56 |
| Thomas Kluyver | t****l@g****m | 44 |
| Deepak Cherian | d****n | 27 |
| James Munroe | j****e@m****a | 25 |
| Alex Kleeman | k****n@c****m | 24 |
| Maximilian Roos | m****n@s****m | 23 |
| Joe Hamman | j****n@h****u | 19 |
| Spencer Clark | s****k@g****m | 16 |
| Ray Bell | r****7@g****m | 12 |
| crusaderky | c****y@g****m | 11 |
| Guido Imperiale | g****e@g****m | 11 |
| Maximilian Roos | 5****n | 11 |
| Anna Kuznetsova | a****a@c****m | 10 |
| Phillip Wolfram | p****m@g****m | 10 |
| Zac Hatfield Dodds | Z****D | 10 |
| akleeman | a****n@g****m | 9 |
| Ryan Abernathey | r****y@g****m | 9 |
| Jonathan Helmus | j****s@g****m | 8 |
| Maximilian Roos | m@m****m | 7 |
| Peter Cable | p****e@g****m | 7 |
| Zac-HD | z****s@g****m | 6 |
| Vincent Noel | v****l@g****m | 5 |
| Benoit Bovy | b****y@u****e | 5 |
| Julia Signell | j****l@g****m | 5 |
| and 116 more... | ||
Committer Domains (Top 20 + Academic)
climate.com: 7
marein.org: 1
ucla.edu: 1
merly.org: 1
colorado.edu: 1
svbio.com: 1
mit.edu: 1
delley.net: 1
brockmann-consult.de: 1
aer.com: 1
rtwilson.com: 1
enthought.com: 1
gfz-potsdam.de: 1
ulg.ac.be: 1
maxroos.com: 1
hydro.washington.edu: 1
sixtycapital.com: 1
mun.ca: 1
uibk.ac.at: 1
uw.edu: 1
ucar.edu: 1
albany.edu: 1
physics.ox.ac.uk: 1
usgs.gov: 1
atmos.washington.edu: 1
ssec.wisc.edu: 1
columbia.edu: 1
atmos.ucla.edu: 1
cam.ac.uk: 1
kit.edu: 1
Issues and Pull Requests
Last synced: over 2 years ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
doc/environment.yml
pypi
setup.py
pypi