Skip to main content

Library to enable easy use of the Orfeo ToolBox (OTB) in Python

Project description

pyotb: Orfeo ToolBox for Python

latest release pipeline status coverage report read the docs status

pyotb wraps the Orfeo Toolbox in a pythonic, developer friendly fashion.

Key features

  • Easy use of Orfeo ToolBox (OTB) applications from python
  • Simplify common sophisticated I/O features of OTB
  • Lazy execution of operations thanks to OTB streaming mechanism
  • Interoperable with popular python libraries (numpy and rasterio)
  • Extensible

Documentation hosted at pyotb.readthedocs.io.

Example

Building a simple pipeline with OTB applications

import pyotb

# RigidTransformResample, with input parameters as dict
resampled = pyotb.RigidTransformResample({
    "in": "https://myserver.ia/input.tif",  # Note: no /vsicurl/
    "interpolator": "linear", 
    "transform.type.id.scaley": 0.5,
    "transform.type.id.scalex": 0.5
})

# OpticalCalibration, with input parameters as args
calib = pyotb.OpticalCalibration(resampled)

# BandMath, with input parameters as kwargs
ndvi = pyotb.BandMath(calib, exp="ndvi(im1b1, im1b4)")

# Pythonic slicing
roi = ndvi[20:586, 9:572]

# Pipeline execution. The actual computation happens here!
roi.write("output.tif", "float")

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

pyotb-2.0.0.tar.gz (45.6 kB view details)

Uploaded Source

Built Distribution

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

pyotb-2.0.0-py3-none-any.whl (40.8 kB view details)

Uploaded Python 3

File details

Details for the file pyotb-2.0.0.tar.gz.

File metadata

  • Download URL: pyotb-2.0.0.tar.gz
  • Upload date:
  • Size: 45.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for pyotb-2.0.0.tar.gz
Algorithm Hash digest
SHA256 b4b6586bbe672989ba50b4b2ae2668b8009954da2d7bf312277898d50cd0af75
MD5 d9f1357903ef6a640829e9ee6351eab6
BLAKE2b-256 f633276ac97b22de7d7ee559ed5234b2843041cbd45ba696f600f0e799206895

See more details on using hashes here.

File details

Details for the file pyotb-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyotb-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 40.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for pyotb-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b172f211daa8f70b634af4f32d11c615ab04888db69e8ba9fd58b3d592c2c3e3
MD5 ad3a51f3a0f59408ec20b9f2f473d2d0
BLAKE2b-256 19ca1ff6fb4c5ee3ce533102e2668f01edbeca010052b2e01e3bf6a743eddb9e

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