Access data for anticipating humanitarian risk
Project description
OCHA AnticiPy: Access data for anticipating humanitarian risk
OCHA AnticiPy is a Python library for simple downloading and processing of data related to the anticipation of humanitarian risk, from climate observations and forecasts to food insecurity.
The datasets that we currently support are:
- CHIRPS rainfall
- COD ABs (Common Operational Datasets administrative boundaries)
- FEWS NET food insecurity
- GloFAS river discharge
- IRI seasonal rainfall forecast
- USGS NDVI (normalized difference vegetation index)
For more information, please see the documentation.
Installing
Install and update using pip:
pip install ocha-anticipy
Some modules of the toolbox have specific dependencies not installed by default. These are documented within each module, but all dependencies can be installed using.
pip install -U ocha-anticipy[full]
A Simple Example
OCHA AnticiPy downloads data to the directory referenced by the
environment variable OAP_DATA_DIR
. Before beginning, please make
sure that this environment variable is defined and points to where you would
like the data to go.
Next, you can simply download the admin boundary CODs for Nepal, and retrieve provinces as a GeoDataFrame:
from ochanticipy import create_country_config, CodAB
country_config = create_country_config('npl')
codab = CodAB(country_config=country_config)
codab.download()
provinces = codab.load(admin_level=1)
Contributing
For guidance on setting up a development environment, see the contributing guidelines
Links
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
Built Distribution
File details
Details for the file ocha-anticipy-1.1.3.tar.gz
.
File metadata
- Download URL: ocha-anticipy-1.1.3.tar.gz
- Upload date:
- Size: 115.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be1ea7d3d043786e3792041e760b981429a2bd8bc4d5abfda1f725235c7d4447 |
|
MD5 | 827767de549724cdebced04bd049d703 |
|
BLAKE2b-256 | a94e5e614286ae0a04cc30b879acb2b2c6463b48981db4b51f442060c365ec41 |
File details
Details for the file ocha_anticipy-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: ocha_anticipy-1.1.3-py3-none-any.whl
- Upload date:
- Size: 87.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f51deed87f12d37a70de78b41290e67108da837a23f056703ce628e84341df6 |
|
MD5 | 35db9292f262a5315aa6cca2408a5453 |
|
BLAKE2b-256 | 79cedc3b3e8c941c3533dd21f72d2597f65c0416116b836544221d1ea7e8398d |