Skip to main content

Python Versions License: GPL v3 pre-commit Language grade: Python Documentation Status

codecov GitHub last commit GitHub forks GitHub Repo stars

Current release info

Name Downloads Version Platforms
Conda Recipe Conda Downloads Downloads Downloads Downloads PyPI - Downloads GitHub all releases GitHub release (latest by date) Conda Version PyPI version Anaconda-Server Badge Conda Platforms Join the chat at https://gitter.im/Hapi-Nile/Hapi

digitalearth - Remote Sensing package

digitalearth is a Remote Sensing package

digitalearth

Main Features

  • plot static maps

Future work

  • dynamic/interactive maps

Installing digitalearth

Installing digitalearth from the conda-forge channel can be achieved by:

conda install -c conda-forge digitalearth

It is possible to list all of the versions of digitalearth available on your platform with:

conda search digitalearth --channel conda-forge

Install from Github

to install the last development to time you can install the library from github

pip install git+https://github.com/serapeum-org/Digital-Earth

pip

to install the last release you can easly use pip

pip install digitalearth

Optional rendering tiers

The static matplotlib tier works out of the box. Richer renderers are optional extras (installed only when you ask for them):

pip install 'digitalearth[interactive]'   # interactive 2-D web maps (HoloViz: GeoViews/Bokeh)
pip install 'digitalearth[3d]'            # true-3D scenes (PyVista)
pip install 'digitalearth[web]'           # MapLibre + deck.gl web maps, shareable HTML

The 3d extra installs pyvista[jupyter], because that extra is the trame/vtk.js stack Scene3D.export_html renders through and pyvista redefines it per version. It brings a notebook stack along with it (ipywidgets, and jupyter-server-proxy on pyvista 0.48) even for headless use.

The web tier renders pyramids rasters/vectors as MapLibre GL JS / deck.gl layers and exports a self-contained HTML page — WebMap().choropleth(gdf, column="pop").basemap().save("map.html"), or quickplot(data, backend="web"). The runnable gallery in docs/examples/web/ works through a raster, a choropleth, the decoration stack (legend, title, graticule, layer switcher), framing with set_bounds, labels and free text, contours and an RGB composite.

What the web tier is for. Thematic maps (choropleths, points, lines, heatmaps, clustering), 3-D (extrusions, point clouds, 3D tiles, glTF, terrain, globe), and sharing the result as one HTML file. It is not a peer of the static tier for scientific field rendering: contours are supported, but vector/flow fields (quiver, barbs, streamplot), unstructured meshes (tripcolor, trimesh, quadmesh) and KDE have no native MapLibre primitive and live in the static and interactive tiers instead.

Quick start

The entry points are quickmap (one call) and the Map scene. Build a finished map from a raster and save it:

from pyramids.dataset import Dataset
from digitalearth import quickmap

src = Dataset.read_file("examples/data/acc4000.tif")
m = quickmap(src, crs=src.epsg)   # finished Map with a colorbar
m.set_title("Flow Accumulation")
m.save("flow_accumulation.png")

Flowaccumulation

For more control, compose layers on a Map directly — e.g. overlay points on a raster:

from pyramids.dataset import Dataset
from pyramids.feature import FeatureCollection
from digitalearth import Map

src = Dataset.read_file("examples/data/acc4000.tif")
points = FeatureCollection.read_file("tests/data/points.geojson")

m = Map(crs=src.epsg)
m.field(src, name="flow")
m.points(points)
m.colorbar("flow")
m.set_title("Flow Accumulation")
m.save("flow_accumulation_with_labels.png")

Flowaccumulation

other code samples

Metadata

Release files for digitalearth 0.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for digitalearth 0.12.0
File Size Uploaded
digitalearth-0.12.0.tar.gz 1.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for digitalearth 0.12.0
File Interpreter ABI Platform
digitalearth-0.12.0-py3-none-any.whl Python 3 none any Details

Total release size: 2.6 MB

Release files / digitalearth-0.12.0.tar.gz

Download URL digitalearth-0.12.0.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
ccc47b5fd925bb85323f0fa312f897e9527adb1e572347825f834ee6cbe42e63
BLAKE2b-256 checksum
How to use checksums
c2b24596387e1552f2679ce3327e3cc1a3cc178d6b12553607374bbb1404bded
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / digitalearth-0.12.0-py3-none-any.whl

Download URL digitalearth-0.12.0-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c6b51ad4fbb509bc46673ef4474247a76a142bf9e8e49556bcd9f7b535d5f61c
BLAKE2b-256 checksum
How to use checksums
dc340873d313dd9916ff4659a8d80b43b6dc553e1e14f7e4339aa0ead41b5ac0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release history Release notifications | RSS feed

This release

0.12.0 This release

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page