Skip to main content

🧶 plaknit

image image

Processing Large-Scale PlanetScope Data

Note: plaknit is fully operational as of v0.3.0. Continue to look for updates, and please share feedback or ideas through the GitHub Issues tab.

PlanetScope Scene (PSS) data are reveared for its quality and distinct ability to balance spatial and temporal resolution in Earth Observation data. While PSS has proven itself a valuable asset in monitoring small-scale areas, the literature has pointed out the shortcomings when creating a single image from individual tiles (Frazier & Hemingway, 2021).

plaknit bundles the workflow I use to operationalize large-area mosaics so you can run the same process locally or in an HPC environment. The goal is to spend time answering big questions, not making a big mess of your data.

plaknit logo

Features

  • CLI + Python API that scale from local experimentation to HPC batch runs.
  • Planning workflow that searches Planet's STAC/Data API and scores scenes, with ordering handled by a separate plaknit order workflow.
  • GDAL-powered parallel masking of Planet strips with their UDM rasters.
  • Tuned Orfeo Toolbox mosaicking pipeline with RAM hints for large jobs.
  • Random Forest and Boosted Regression Tree ensemble training + inference utilities for classifying Planet stacks.

Quick Start

Train a BRT Ensemble Classifier

plaknit brt train \
  --image stack.tif \
  --labels training.gpkg \
  --label-column class_id \
  --output ./brt_ensemble/ \
  --n-models 5 \
  --gpu

Apply the Ensemble to New Imagery

plaknit brt predict \
  --image new_stack.tif \
  --ensemble-dir ./brt_ensemble/ \
  --output-dir ./probability_outputs/ \
  --feature-importance-out predictor_importance.csv

See Usage for complete examples and all supported options.

Compare Spatial Land-Cover Classifications

plaknit compare spatial \
  --input planet=planet_class.tif \
  --input sentinel=sentinel_class.tif \
  --out-dir ./spatial_compare/ \
  --width 100 --samples 100 --seed 42

Compare Temporal Land-Cover Classifications

plaknit compare temporal \
  --input june=classification_2023_06.tif --date june=2023-06-15 \
  --input july=classification_2024_07.tif --date july=2024-07-15 \
  --group-by year \
  --out-dir ./temporal_compare/ \
  --width 100 --samples 100 --seed 42

Each --input has a unique label, which identifies it in tables, plots, and metadata, even when comparing more than two inputs. Spatial comparisons do not require dates; temporal comparisons require a keyed --date for every input. The old plaknit landcover command has been replaced; use plaknit compare spatial or plaknit compare temporal.

The comparison also produces native-resolution whole-raster and square-level pylandstats metrics and finest-grid inter-input agreement summaries. Numeric class codes are assumed to have comparable meanings; this assumption is recorded, not independently verified. Patch and edge differences can reflect resolution as well as classification differences. See the land-cover comparison guide for flags, output definitions, and limitations.

Compare Reflectance by Class

plaknit compare reflectance \
  --input planet=planet_class.tif --raster planet:red=planet_red.tif \
  --input sentinel=sentinel_class.tif --raster sentinel:red=sentinel_red.tif \
  --spatial-units compare_squares.gpkg \
  --out-dir ./reflectance_compare/

The command pairs per-class raster summaries by spatial-unit ID and reports paired differences with spatial-block uncertainty. Supply a vector file with unique IDs and a CRS, or a bounds CSV plus --spatial-units-crs. Each band is independently min-max normalized over its full valid range. This produces relative values, not physically calibrated reflectance, and can hide real differences between inputs. See the reflectance comparison guide for assumptions, inference settings, and output definitions.

Metadata

Release files for plaknit 0.4.3

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

Source distribution (sdist)

Source distribution for plaknit 0.4.3
File Size Uploaded Provenance Actions
plaknit-0.4.3.tar.gz 137.3 kB With provenance Details for plaknit-0.4.3.tar.gz

Built distribution (wheel)

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

Total release size: 256.6 kB

Release files / plaknit-0.4.3.tar.gz

Download URL plaknit-0.4.3.tar.gz
Size 137.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cc829613320d8650dd92de4dd8181438da04810d8fd5e9e124a4e94b85a6cd1a
BLAKE2b-256 checksum
How to use checksums
07702c06284efa540319a7e9f266ed8cc11439e8de2e1bea7f6b9caef21b7dde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / plaknit-0.4.3-py3-none-any.whl

Download URL plaknit-0.4.3-py3-none-any.whl
Size 119.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7134323b14bfb148d1f3e6c1a3aa26b1494e6c9f83581db926d758a9649898d2
BLAKE2b-256 checksum
How to use checksums
d2f2f98af4fe55186462f52d1b2edd4208ce0665764dfc39250b561f9a9c5b08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for plaknit 0.4.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for plaknit-0.4.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.3 This release

2 release files Full provenance

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