Python xweights contains functionsto create grid weighted area means
Project description
xweights
Python “xweights” contains functions to calculate grid weighted area means from predefined regions or from an user-given shapefile. This tool is a wrapper around the python package xesmf https://xesmf.readthedocs.io
Free software: MIT license
Documentation: https://xweights.readthedocs.io
Features
Calculate grid-weighted-means and save the output as CSV file
As input you can choose between files on disk and intake-esm catalogues. Xarray dataset input is under development.
Use all these features as an command-line tool too
Installation
You can install the package directly with pip:
pip install xweights
If you want to contribute, I recommend cloning the repository and installing the package in development mode, e.g.
git clone https://github.com/ludwiglierhammer/xweights.git
cd xweights
pip install -e .
In additon you have to install xESMF using _Conda:
conda install -c conda-forge xesmf
This will install the package but you can still edit it and you don’t need the package in your PYTHONPATH
Requirements
python3.6 or higher
numpy
pandas
geopandas
intake-esm
xarray
py-cordex
xesmf
Contact
In cases of any problems, needs or wishes do not hesitate to contact:
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2022-03-04)
First release on PyPI.
0.1.1 (2022-07-01)
adjusted to pre-commit
use functions from pyhomogenize
0.1.2 (2022-07-08)
change pyhomogenize version requirements
0.2.0 (2022-07-11)
rename spatial_averager
keep geometry attributes
0.2.1 (2022-07-11)
read and write column name to attributes
0.2.2 (2022-07-12)
add data and tables via pip install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file xweights-0.2.2.tar.gz
.
File metadata
- Download URL: xweights-0.2.2.tar.gz
- Upload date:
- Size: 10.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bea2f50524718b39d1313d9506ec68fc8f7b64cf1e73211315e820a28c856525 |
|
MD5 | b3c8314a669c025f49cf50ca6c2ebb0b |
|
BLAKE2b-256 | afb0bf96474f14607f8510d2ebe81b18c3b1a365fc32109918e8bab33368f8df |
Provenance
File details
Details for the file xweights-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: xweights-0.2.2-py3-none-any.whl
- Upload date:
- Size: 10.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6023f74614af42b2db42a05007fe8059e4ae67246b02385075f9bfd0fbb7a19 |
|
MD5 | b55ca13b05793f62ddd9425241263f95 |
|
BLAKE2b-256 | a8d85dd7b653b9a999c344b30fc3ec5aee2148c2f2f2a3f51cda554a39c942e5 |