Skip to content

Add 3dtrees_trajectory 1.0.0 (trajectory estimation and occlusion mapping) - #2137

Merged
bgruening merged 5 commits into
bgruening:masterfrom
3dTrees-earth:3dtrees_trajectory
Nov 27, 2026
Merged

bgruening merged 5 commits into
bgruening:masterfrom
3dTrees-earth:3dtrees_trajectory

Conversation

@kgerb

@kgerb kgerb commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

FOR CONTRIBUTOR:

  • I have read the CONTRIBUTING.md document and this tool is appropriate for the tools-iuc repo.
  • License permits unrestricted use (educational + commercial) — MIT
  • This PR adds a new tool or tool collection
  • This PR updates an existing tool or tool collection
  • This PR does something else (explain below)

Adds 3Dtrees: Trajectory and Occlusion (3dtrees_trajectory 1.0.0+galaxy0), from 3dTrees-earth/3dtrees_trajectory v1.0.0.

  • Estimates the sensor path of a moving lidar acquisition (ULS/MLS) from a standardized LAS/LAZ collection: multi-return pulse lines, or the scan angle for single returns.
  • Maps occlusion by tracing every pulse through a 0.5 m voxel grid (OccPy 0.3.0 voxel traversal).
  • Optional inputs: a DTM (e.g. the 3Dtrees raster tool's _dtm.tif) and a delivered trajectory (used for occlusion when given).
  • Outputs: trajectory CSV (3dtrees-trajectory/estimated), occlusion COPC (voxel classes 1–4), occlusion COG (occluded share per 0.5 m height band).
  • Exit codes 2/3/4 are reported as failures with the tool's reason (invalid input or TLS, unusable GPS time, no trajectory possible). Occlusion that cannot run (e.g. a COPC instead of the standardized LAS/LAZ) fails the job (exit 2) instead of passing empty products downstream.

Container: ghcr.io/3dtrees-earth/3dtrees_trajectory:1.0.0 (Docker; Galaxy EU runs it via Singularity, TPV in usegalaxy-eu/infrastructure-playbook#2544).

Tests use real data: mikro.laz (the 103 KB crop shared with the other 3Dtrees tools; it gives a scan-angle path, quality rough), the same cloud split in two by GPS time, a lowest-return DTM and a delivered path derived from the estimate. They assert the CSV header lines, the known first and last rows, line counts and the occlusion file sizes. Tool refusals are covered by the tool's own unit tests.

Tested locally: planemo lint, ToolShed lint, planemo test 3/3 (Docker). Draft until upstream CI passes against the re-cut image.

@kgerb
kgerb force-pushed the 3dtrees_trajectory branch from 035a25c to df3ce32 Compare November 26, 2026 21:39
@kgerb
kgerb marked this pull request as ready for review November 26, 2026 22:12
@bgruening
bgruening merged commit 4bb126b into bgruening:master Nov 27, 2026
10 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants