PRo3D.Tool 0.6.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global PRo3D.Tool --version 0.6.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local PRo3D.Tool --version 0.6.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=PRo3D.Tool&version=0.6.0
                    
nuke :add-package PRo3D.Tool --version 0.6.0
                    

pro3d-tool

Command line tools for PRo3D data. Does not require the PRo3D viewer to be installed.

dotnet tool install PRo3D.Tool --global

Verbs

Verb Purpose
kdtree Validates OPC directories and generates KdTrees. No GPU or SPICE kernels needed.
sun-angles Writes per-pixel incidence, emission and phase angles for instrument images as float32 TIFFs in radians. Requires SPICE kernels and a GPU.
sample-layers Assembles instrument observations (AFC, ASPECT, HyperScout) onto the vertices of a body: per vertex and image the pixel, incidence/emission/phase and every band's value, plus OPC attribute layers, as CSV keyed by vertex id. Requires SPICE kernels and OPC kd-trees; no GPU.
unproject Converts image pixel coordinates to body-fixed surface coordinates on a shape model. Requires SPICE kernels; no GPU.
simulate-image Renders a simulated instrument image of a body at a SPICE time: Lommel-Seeliger sun lighting, procedural micro-structure, cast shadows, optional de-shaded texture albedo. Requires SPICE kernels and a GPU.
render-bookmarks Opens a .pro3d scene headlessly and renders its camera bookmarks to PNGs as the viewer shows them; batches via a JSON job file; can fix the OPC level of detail. Requires a GPU.
render-view Renders OPCs without a scene file from explicitly given cameras, each OPC placed by a transformation, optionally lit by a given sun; input is a JSON job file, e.g. HERA AFC-1 views written from SPICE by scripts/render-view-job.py. The tool itself needs no SPICE. Requires a GPU.
pro3d-tool kdtree --help
pro3d-tool sun-angles --help
pro3d-tool unproject --help
pro3d-tool simulate-image --help
pro3d-tool sample-layers --help
pro3d-tool render-bookmarks --help
pro3d-tool render-view --help

SPICE kernels

sun-angles, unproject, simulate-image and sample-layers need SPICE kernels, which ESA publishes separately:

git clone https://spiftp.esac.esa.int/git/hera.git

Set PRO3D_SPICE_KERNELS to that clone or to its kernels subdirectory, or pass --kernel-root <dir>. There is no default: the verbs fail when no kernel tree is given.

Documentation

Migrating from opc-tool

opc-tool is deprecated. Its functionality is the kdtree verb with unchanged option names, so prepend the verb:

opc-tool          --forcekdtreerebuild <dir>
pro3d-tool kdtree --forcekdtreerebuild <dir>

MIT licensed.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.7.2 0 12/3/2026
0.7.1 100 11/25/2026
0.7.0 101 11/25/2026
0.6.1 108 11/6/2026
0.6.0 98 11/6/2026
0.5.0 171 9/24/2026
0.2.0 142 8/19/2026
0.1.0 140 8/18/2026