Skip to main content

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")

Metadata

Release files for pyotb 2.2.1

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

Source distribution (sdist)

Source distribution for pyotb 2.2.1
File Size Uploaded
pyotb-2.2.1.tar.gz 41.7 kB Details

Built distribution (wheel)

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

Total release size: 77.6 kB

Release files / pyotb-2.2.1.tar.gz

Download URL pyotb-2.2.1.tar.gz
Size 41.7 kB
Tags Source
SHA-256 checksum
How to use checksums
11acde69bb0a61e825cf5dc3fb28906293e0970806ea46a17138e2df59528fb9
BLAKE2b-256 checksum
How to use checksums
a0f7ed24355f7d9c23008dc8bdbf7231a296c6e59ff211a1bc9e3d011bfabdb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / pyotb-2.2.1-py3-none-any.whl

Download URL pyotb-2.2.1-py3-none-any.whl
Size 35.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc33ec41680292e567c7e80b327e62101c42b2a0251347df4d31155a9f58777b
BLAKE2b-256 checksum
How to use checksums
9192b4d7a0965c32ccf7ca813e00854e12a402299689187a2f456e0df9279c9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3
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