Skip to main content

Open-source tools for geospatial analysis with Digital Earth Australia, Open Data Cube, and Xarray

Project description

Digital Earth Australia logo

DEA Tools Python package

DOI Apache license Discord

dea-tools is an open-source Python package for geospatial analysis of satellite data using Digital Earth Australia, Open Data Cube, and Xarray. It provides a broad set of utilities for loading, visualising, transforming, and analysing Earth Observation (EO) data across space and time.

The package includes tools for:

  • 📦 Data handling: Load and combine DEA data products, manage projections and resolutions.
  • 🗺️ Visualisation: Create static and interactive maps, RGB plots, and animations.
  • 🛰️ Remote sensing indices: Calculate band indices such as NDVI, NDWI, and more.
  • 🌐 Spatial and temporal analysis: Apply raster/vector operations, extract contours, compute temporal stats, and model change over time.
  • 🤖 Machine learning and segmentation: Train and apply classifiers, or run image segmentation workflows.
  • ⚙️ Parallel processing: Set up Dask clusters for scalable processing of large datasets.
  • 🌏 Domain-specific tools: Analyse coastal change, intertidal zones, land cover, wetland and waterbody dynamics, and climate datasets.

API documentation

Full API documentation describing the modules and functions available in dea-tools is available on the DEA Knowledge Hub.

Installation

You can install dea-tools from PyPI with pip (https://pypi.org/project/dea-tools/).

By default dea-tools will be installed with minimal dependencies, which excludes datacube and other difficult to install packages:

pip install dea-tools

To install with datacube dependencies (note that this requires access to a datacube database):

pip install dea-tools[datacube]

To install with additonal Jupyter-related dependencies:

pip install dea-tools[jupyter]

To install with other packages used in DEA Notebooks examples:

pip install dea-tools[jupyter,dask_gateway,notebooks]

You can also install dea-tools with all optional dependencies. Note: some of these dependencies are difficult to install. If you encounter issues, you may need to try the Conda instructions below.

pip install dea-tools[all]

With conda

If you encounter issues with the installation, try installing the package in a conda Python environment where GDAL and pyproj are already installed:

wget -O conda-environment.yml https://raw.githubusercontent.com/opendatacube/datacube-core/develop/conda-environment.yml

mamba env create -f conda-environment.yml
conda activate cubeenv

pip install dea-tools

Working on DEA Sandbox or NCI

To work with this module on the DEA Sandbox or National Computational Infrastructure environments without installing it, you can add the Tools directory to the system path from within your dea-notebooks directory:

import sys
sys.path.insert(1, "../Tools/")
from dea_tools.datahandling import load_ard  # or some other function

Alternatively, you can also do a local installation of dea-tools. To do this on the DEA Sandbox, run pip from the terminal from within your dea-notebooks directory:

pip install -e .

Importing functions in Python

One dea-tools is installed, you can import functions using:

from dea_tools.datahandling import load_ard
from dea_tools.plotting import rgb

Citing DEA Tools

If you use any of the notebooks, code or tools 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

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

dea_tools-0.4.10.tar.gz (160.3 kB view details)

Uploaded Source

Built Distribution

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

dea_tools-0.4.10-py3-none-any.whl (180.9 kB view details)

Uploaded Python 3

File details

Details for the file dea_tools-0.4.10.tar.gz.

File metadata

  • Download URL: dea_tools-0.4.10.tar.gz
  • Upload date:
  • Size: 160.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.5

File hashes

Hashes for dea_tools-0.4.10.tar.gz
Algorithm Hash digest
SHA256 fd8050b18121f3b3b46e4ed2c5a95389203d105d5d69784ab5dd64726cae0373
MD5 af8693c0f56e3efb58c7cd4a3215fcbb
BLAKE2b-256 4c178805c6329deda929ba01c7bb3e6682196999ddcabe51e2e91eff5aa8ca30

See more details on using hashes here.

File details

Details for the file dea_tools-0.4.10-py3-none-any.whl.

File metadata

  • Download URL: dea_tools-0.4.10-py3-none-any.whl
  • Upload date:
  • Size: 180.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.5

File hashes

Hashes for dea_tools-0.4.10-py3-none-any.whl
Algorithm Hash digest
SHA256 8f42620975a8b904446718e561c25d1c39f38c1511359e7730cf3d786890c4ba
MD5 c85c6fdccc6491f0d8715233ae04e2cd
BLAKE2b-256 cdd4be23d8949a04d49a932e591b74d30d1c43476b2463a923847805a8eb9683

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