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.2

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.2
File Size Uploaded Provenance Actions
plaknit-0.4.2.tar.gz 136.0 kB With provenance Details for plaknit-0.4.2.tar.gz

Built distribution (wheel)

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

Total release size: 254.7 kB

Release files / plaknit-0.4.2.tar.gz

Download URL plaknit-0.4.2.tar.gz
Size 136.0 kB
Tags Source
SHA-256 checksum
How to use checksums
434a989cbd0f33d2434ce7d581ceb9a52303f7716b2a6f9b6cda4b3d199a44e8
BLAKE2b-256 checksum
How to use checksums
877387a47a4b814cfe6d7bf85c2fcf94bb89e1269fc96761f6920f26d1c33989
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.2-py3-none-any.whl

Download URL plaknit-0.4.2-py3-none-any.whl
Size 118.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0b56044940e9e9bfc8d9de8f8c81991f8a6f86cf69e0ccc4c8a23440e64e240
BLAKE2b-256 checksum
How to use checksums
78a3a6c157bf7013dfc01919bdced329a7b54663755aa23ab46dad6dec72f9d0
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.2

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.2.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.2 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