Skip to main content

Python xweights contains all the functions to create grid weighted area means

Project description

xweights

https://github.com/ludwiglierhammer/xweights/actions/workflows/ci.yml/badge.svg https://codecov.io/gh/ludwiglierhammer/xweights/branch/main/graph/badge.svg Documentation Status Updates

Python “xweights” contains all the 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

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 from github using pip:

pip install git+https://github.com/ludwiglierhammer/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:

ludwig.lierhammer@hereon.de

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xweights-0.1.0.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

xweights-0.1.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file xweights-0.1.0.tar.gz.

File metadata

  • Download URL: xweights-0.1.0.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for xweights-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b80020ea923e53859614b2a07cf9ea56aa43954ec30957fd90c759549fc2d322
MD5 fbb357189ab22c520b9ef69f07deb1b9
BLAKE2b-256 784f1db60a2fc9af12139422b970b1311c6279f36ffd0ea1b266ea4cb45a51ee

See more details on using hashes here.

Provenance

File details

Details for the file xweights-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: xweights-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for xweights-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 211032befcf8f42342fa419088f9b3e5976cea9fc9b1c512d248455a0c342b4a
MD5 52ce824dbd626123a20612af54958f08
BLAKE2b-256 76e3888deff38ee1dc1dcfbf57879e07428a4cd4a4c95912745d902060597d3f

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page