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

This version

0.4.7

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.7.tar.gz (155.6 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.7-py3-none-any.whl (176.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dea_tools-0.4.7.tar.gz
Algorithm Hash digest
SHA256 4648cdef67074da00fecd2d42ad4cba58c956284540fd27f1bbb550519a802a8
MD5 90a46aa34f47edef921daa0f7ac8f9c0
BLAKE2b-256 b8ee99ee8a7ee596d5618174344be82955e2230eda1ff59bf14b4ef8e9f9af42

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dea_tools-0.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 04475593040f7f9b872f7c9b864443177452e4a1fd5d51575195a37c712734ee
MD5 4097d1a9e4bbc1d1f1a78d63758e211e
BLAKE2b-256 be9187f8f29f3c61e5013f5a5d5441fd26ece6bfd81b8ac86da83ba7369c897b

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