Skip to main content

Geospatial visualization package for rasters and vector data

Project description

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==0.1.11

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.imshow(src)
m.scatter(points)
m.colorbar(layer=0)
m.set_title("Flow Accumulation")
m.save("flow_accumulation_with_labels.png")

Flowaccumulation

other code samples

Legacy API (deprecated)

StaticGlyph is the original entry point and is deprecated — it emits a DeprecationWarning and will be removed in a future release. Prefer quickmap / Map above. It still works for now:

from pyramids.dataset import Dataset
from digitalearth.static import StaticGlyph

src = Dataset.read_file("examples/data/acc4000.tif")
fig, ax = StaticGlyph.plot(src, title="Flow Accumulation", cbar_label="Flow Accumulation")

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

digitalearth-0.5.0.tar.gz (173.9 kB view details)

Uploaded Source

Built Distribution

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

digitalearth-0.5.0-py3-none-any.whl (121.3 kB view details)

Uploaded Python 3

File details

Details for the file digitalearth-0.5.0.tar.gz.

File metadata

  • Download URL: digitalearth-0.5.0.tar.gz
  • Upload date:
  • Size: 173.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for digitalearth-0.5.0.tar.gz
Algorithm Hash digest
SHA256 8d5a264f01861fe90d3eca37b0eef85a7ea373e85e8817d2e5a24dc3caaaa78c
MD5 03045ac561b1b6207136b2ce2319ba24
BLAKE2b-256 a9f887878fb846f7e2e83f832860ff3de2bf12bd98d47f29cb8e726d8124e41c

See more details on using hashes here.

File details

Details for the file digitalearth-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: digitalearth-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 121.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for digitalearth-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0d744e0dc2183e2783d1dbe4cec75d1b4250f04434d7dc6126a68d6f6784c11
MD5 6ef85515eb9745809f71804e661b48aa
BLAKE2b-256 141b8432c5bb445e8a7215fb107cb0f9d99a159cff5372d33f6b88177dac96d1

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