Skip to main content

Functions and algorithms for analysing Digital Earth Africa data.

Project description

Digital Earth Africa Tools Package

Python functions and algorithms developed to assist in analysing Digital Earth Africa data (e.g. loading data, plotting, spatial analysis, machine learning).

Installation

This module is automatically installed on the Digital Earth Africa Sandbox. If for some reason the module isn't available on the Digital Earth Africa Sandbox, or to upgrade the tools, you can pip install the module from the terminal.

You can install the latest version of deafrica-tools from PyPI using:

python -m pip install deafrica-tools 

or install the package directly from the Tools directory to incorperate local changes:

python -m pip install Tools/

To install this module from the source on any other system with pip:

python -m pip install  git+https://github.com/digitalearthafrica/deafrica-sandbox-notebooks.git#subdirectory=Tools

Citing Digital Earth Africa Tools

The code in this module is an adaptation of code from the Digital Earth Australia dea-tools package. If you use any of the code in this repository in your work, please reference them using the following citation:

Krause, C., Dunn, B., Bishop-Taylor, R., Adams, C., Burton, C., Alger, M., Chua, S., Phillips, C., Newey, V., Kouzoubov, K., Leith, A., Ayers, D., Hicks, A., DEA Notebooks contributors 2021. Digital Earth Australia notebooks and tools repository. Geoscience Australia, Canberra. https://doi.org/10.26186/145234

Translation

Translation of the module into other languages is done using gettext and pot/po/mo files.

We welcome contributors to help in translating the project by joining this project https://poeditor.com/join/project?hash=0Q33A7sRM6.

The template .pot file can be generated by running pybabel extract -o deafrica_tools.pot * from the Tools/ directory.

This file can then be uploaded to the deafrica_tools project on POEditor.com

To get the most recent terms and translations, download the files from the deafrica_tools project and export the the deafrica_tools.po and deafrica_tools.mo files to the deafrica_tools/locales/fr/LC_MESSAGES/ directory.

Currently, uploading and downloading terms and translations is accomplished using Github Actions.

In python code, strings surrounded by an underscore function _('') will be translated.

This _() function is declared as a global after deafrica_tools.set_lang('fr') is called.

Calling deafrica_tools.set_lang() with no argument will use the language set by JupyterLab under Settings -> Language.

See wetlandsinsighttool.py as an example.

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

deafrica_tools-2.5.15.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deafrica_tools-2.5.15-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file deafrica_tools-2.5.15.tar.gz.

File metadata

  • Download URL: deafrica_tools-2.5.15.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for deafrica_tools-2.5.15.tar.gz
Algorithm Hash digest
SHA256 7a5bc67cad23932f084196e063d17db08a071dad3ce032bd4a3634a637a2c985
MD5 791228d416aba80a48da589647514980
BLAKE2b-256 9f1da68f02e5c20a55619ac64b066d37f18a88fb2c876528f30356c7f2a00228

See more details on using hashes here.

File details

Details for the file deafrica_tools-2.5.15-py3-none-any.whl.

File metadata

File hashes

Hashes for deafrica_tools-2.5.15-py3-none-any.whl
Algorithm Hash digest
SHA256 5be52678c33182f69b04efcea92d92a6e4df8aa0f32cb4d54363772a7e99e7e1
MD5 b1fc455f53a344cf45f3deaa859edfa2
BLAKE2b-256 d9e7de2c5692f270a9b7a0474dd8221ee06d202e919268d4b19284b4d70e090d

See more details on using hashes here.

Supported by

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