https://github.com/astropenguin/xarray-compare
:zap: xarray extension for data comparison
Science Score: 23.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
Found 3 DOI reference(s) in README -
○Academic publication links
-
✓Committers with academic emails
1 of 1 committers (100.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.0%) to scientific vocabulary
Keywords
Repository
:zap: xarray extension for data comparison
Basic Info
- Host: GitHub
- Owner: astropenguin
- License: mit
- Language: Python
- Default Branch: master
- Homepage: https://astropenguin.github.io/xarray-compare/
- Size: 1.47 MB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
xarray-compare
xarray extension for data comparison
TL;DR
xarray-compare is a third-party Python package which provides extra data-comparison features.
After importing the package, several DataArray methods (dataarray.is*()) will be available.
Requirements
- Python: 3.6, 3.7, or 3.8 (tested by the author)
- Dependencies: See pyproject.toml
Installation
shell
$ pip install xarray-compare
List of available methods
.isbetween(lower, upper): Test whether each value in a DataArray falls within an interval.ismatch(pattern): Test whether each string in a DataArray matches a regex pattern
Methods of "not-in" version are also provided for readability.
.isnotin(values): Equivalent to~dataarray.isin(values)(.isin()is an xarray's builtin).isnotbetween(lower, upper): Equivalent to~dataarray.isbetween(lower, upper).isnotmatch(pattern): Equivalent to~dataarray.ismatch(pattern)
Examples
xarray-compare is a just-import package. After importing it, methods become available from normal DataArray instances.
python
import xarray as xr
import xarray_compare
A method returns a boolean DataArray each value of which is True where that of the input DataArray fulfills the condition and False otherwise.
This is why it works well with the dataarray.where() method.
```python da = xr.DataArray([0, 1, 1, 2, 3, 5, 8, 13]) da.where(da.isbetween(1, 4), drop=True)
array([1., 1., 2., 3.])
Dimensions without coordinates: dim_0
```
```python da = xr.DataArray(['a', 'aa', 'ab', 'bc']) da.where(da.ismatch("^a+$"), drop=True)
array(['a', 'aa'], dtype=object)
Dimensions without coordinates: dim_0
```
Owner
- Name: Akio Taniguchi
- Login: astropenguin
- Kind: user
- Location: Nagoya, Japan
- Company: Nagoya University
- Website: https://astropengu.in
- Twitter: astropengu_in
- Repositories: 76
- Profile: https://github.com/astropenguin
Project assistant professor (LMT-FINER)
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Committers
Last synced: 8 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Akio Taniguchi | t****i@a****p | 44 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 2
- Total pull requests: 2
- Average time to close issues: 13 minutes
- Average time to close pull requests: 4 minutes
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 2
- 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
- astropenguin (2)
Pull Request Authors
- astropenguin (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 23 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 3
- Total maintainers: 1
pypi.org: xarray-compare
xarray extension for data comparison
- Homepage: https://github.com/astropenguin/xarray-compare/
- Documentation: https://astropenguin.github.io/xarray-compare/
- License: MIT
-
Latest release: 0.2.0
published over 5 years ago
Rankings
Maintainers (1)
Dependencies
- alabaster 0.7.12 develop
- appdirs 1.4.4 develop
- appnope 0.1.0 develop
- atomicwrites 1.4.0 develop
- attrs 19.3.0 develop
- babel 2.8.0 develop
- backcall 0.2.0 develop
- black 19.10b0 develop
- certifi 2020.6.20 develop
- chardet 3.0.4 develop
- click 7.1.2 develop
- colorama 0.4.3 develop
- decorator 4.4.2 develop
- docutils 0.16 develop
- flake8 3.8.3 develop
- idna 2.10 develop
- imagesize 1.2.0 develop
- importlib-metadata 1.7.0 develop
- iniconfig 1.0.1 develop
- ipython 7.16.1 develop
- ipython-genutils 0.2.0 develop
- jedi 0.17.2 develop
- jinja2 2.11.2 develop
- markupsafe 1.1.1 develop
- mccabe 0.6.1 develop
- more-itertools 8.4.0 develop
- packaging 20.4 develop
- parso 0.7.1 develop
- pathspec 0.8.0 develop
- pexpect 4.8.0 develop
- pickleshare 0.7.5 develop
- pluggy 0.13.1 develop
- prompt-toolkit 3.0.3 develop
- ptyprocess 0.6.0 develop
- py 1.9.0 develop
- pycodestyle 2.6.0 develop
- pydata-sphinx-theme 0.3.1 develop
- pyflakes 2.2.0 develop
- pygments 2.6.1 develop
- pyparsing 2.4.7 develop
- pytest 6.0.1 develop
- regex 2020.7.14 develop
- requests 2.24.0 develop
- snowballstemmer 2.0.0 develop
- sphinx 3.2.1 develop
- sphinxcontrib-applehelp 1.0.2 develop
- sphinxcontrib-devhelp 1.0.2 develop
- sphinxcontrib-htmlhelp 1.0.3 develop
- sphinxcontrib-jsmath 1.0.1 develop
- sphinxcontrib-qthelp 1.0.3 develop
- sphinxcontrib-serializinghtml 1.1.4 develop
- toml 0.10.1 develop
- traitlets 4.3.3 develop
- typed-ast 1.4.1 develop
- urllib3 1.25.10 develop
- wcwidth 0.2.5 develop
- zipp 3.1.0 develop
- numpy 1.19.1
- pandas 0.25.3
- python-dateutil 2.8.1
- pytz 2020.1
- six 1.15.0
- xarray 0.15.1
- black ^19.10b0 develop
- flake8 ^3.8 develop
- ipython ^7.16 develop
- pydata-sphinx-theme ^0.3 develop
- pytest ^6.0 develop
- sphinx ^3.2 develop
- numpy ^1.18
- python ^3.6
- xarray ^0.15