Skip to main content

Access data for anticipating humanitarian risk

Project description

OCHA AnticiPy: Access data for anticipating humanitarian risk

license Test Status PyPI Status Documentation Status Coverage Status pre-commit Code style: black Imports: isort

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

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

ocha-anticipy-1.0.1.tar.gz (104.6 kB view details)

Uploaded Source

Built Distribution

ocha_anticipy-1.0.1-py3-none-any.whl (71.4 kB view details)

Uploaded Python 3

File details

Details for the file ocha-anticipy-1.0.1.tar.gz.

File metadata

  • Download URL: ocha-anticipy-1.0.1.tar.gz
  • Upload date:
  • Size: 104.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for ocha-anticipy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4ec7de4e3e32105cf449c549982ca1e7813bd0cd3d2e3e71c9c7dc3c9ae2e713
MD5 1bc7daf913b6ba36b48f37a3ff7de256
BLAKE2b-256 e0c97b4138b03d983b3101a7acae8222c862f5f5bb1ce16dac600264c324007d

See more details on using hashes here.

File details

Details for the file ocha_anticipy-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ocha_anticipy-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c126e49e1d5dc062c0bf373a1199651670a1d4404699c673c6248fce5809f72
MD5 1c4599c84a14676ff6605aaff0ba4b6e
BLAKE2b-256 b4037a2b34afd7182523b2fa2a8c1e36623546aae674d36da92bc3057828fe53

See more details on using hashes here.

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