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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dea_tools-0.4.8.tar.gz
Algorithm Hash digest
SHA256 e17b1921b638f7caccf4d7780fbc6753d50bbd1ca94b8a6c3b52e8938422ef7f
MD5 64d91ce50fe36d10ea9dbca918fb91a2
BLAKE2b-256 5811ba3f86f2d23659d7c5070a11612a243cfb350d5f3d4d6da57476f8e8c199

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dea_tools-0.4.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d1f941dd2435b7feda8710a10d84771306be72cea092bbfa3cc12319606ece6a
MD5 e1771b211f3cce6024c3490364d0cd3c
BLAKE2b-256 3f77bb6505cdbe67c45dc3e5e94e0532c010b3737a517c0f8b47c29df4756c87

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