Enrichments¶
Several ingest functions can compute extra attributes during import.
Some are derived directly from the source format (LAS intensity, SWC
radius), others are pure computations (length, knn_distance,
strahler). All land in the standard Zarr Vectors attribute slots — per-vertex
under attributes/<name>/, per-object under
object_attributes/<name>/ — so they’re accessible to any reader of
the store, not just this package.
This page is the canonical list of attribute names and the ingest options that produce them.
Point clouds¶
Attribute |
Slot |
Type |
Source |
Triggered by |
|---|---|---|---|---|
|
per-vertex |
float32 |
LAS field |
|
|
per-vertex |
float32 |
LAS field |
|
|
per-vertex |
float32, |
LAS RGB triple |
|
|
per-vertex |
float32 |
LAS field |
|
(every PLY property) |
per-vertex |
dtype of PLY column |
PLY vertex element |
|
|
per-vertex |
float32 |
computed |
|
|
per-object |
int64 |
computed |
any of the three point ingesters with |
knn_distance is the mean Euclidean distance to each point’s k
nearest neighbours.
Lines¶
Attribute |
Slot |
Type |
Source |
Triggered by |
|---|---|---|---|---|
|
per-line |
float32 |
computed |
|
(CSV columns past |
per-line |
float |
CSV columns |
|
Polylines and streamlines¶
Attribute |
Slot |
Type |
Source |
Triggered by |
|---|---|---|---|---|
|
per-streamline |
float32 |
computed |
any of |
|
per-streamline |
float32, |
computed |
any of the three with |
|
per-streamline |
float32, |
computed |
any of the three with |
(TRK |
per-vertex |
float32 |
TRK reader |
|
(TRK |
per-streamline |
float32 |
TRK reader |
|
(TRX |
per-vertex |
dtype of TRX field |
TRX reader |
|
(TRX |
per-streamline |
dtype of TRX field |
TRX reader |
|
|
per-streamline |
float32 |
computed mean of dpv |
|
Synthetic attributes for coloring test data (trk CLI only)¶
The zvtools convert … --format trk path can also generate colorable
attributes from geometry alone, for exercising attribute coloring when a
TRK file carries no native scalars. Both flags are repeatable; the
random generators are seeded by --attr-seed (default 0). All are
carried through the pyramid to every level.
Attribute |
Slot |
Type |
Triggered by |
|---|---|---|---|
|
per-streamline |
float32 |
|
|
per-streamline |
float32, |
|
|
per-streamline |
float32, |
|
|
per-streamline |
float32 |
|
|
per-streamline |
uint32 |
|
|
per-vertex |
float32 |
|
|
per-vertex |
float32 |
|
|
per-vertex |
float32 |
|
|
per-vertex |
float32 |
|
|
per-vertex |
float32, |
|
Graphs¶
Attribute |
Slot |
Type |
Source |
Triggered by |
|---|---|---|---|---|
|
per-node |
int32 |
computed |
|
|
per-node |
uint32 |
computed (weakly-connected) |
|
|
per-node |
float32 |
networkx clustering coefficient |
|
(node CSV attribute columns) |
per-node |
various |
edgelist node CSV |
|
(edge CSV attribute columns) |
per-edge |
various |
edgelist edge CSV |
|
Skeletons (SWC)¶
Attribute |
Slot |
Type |
Source |
Triggered by |
|---|---|---|---|---|
|
per-node |
float32 |
SWC column 5 |
|
|
per-node |
int32 |
SWC column 2 (type code) |
|
|
per-node |
float32 |
computed BFS depth from soma |
|
|
per-node |
float32 |
computed Strahler order |
|
|
per-node |
float32 |
computed (0=soma, 1=branch, 2=continuation, 3=terminal) |
|
Note
ingest_swc’s docstring advertises uint16 / uint8 / uint8 for
these three. The implementation casts all of them to float32 before
writing, which is what the table above reflects. Cast on read if you need
the integer semantics.
Meshes¶
Attribute |
Slot |
Type |
Source |
Triggered by |
|---|---|---|---|---|
|
per-vertex |
float32, |
OBJ |
|
Warning
STL per-face normals are parsed but not stored. Both STL parsers
return them, but ingest_stl assigns them to a local face_normals and
never passes them to write_mesh, so they do not reach the store.
Recompute them from the geometry with
compute_vertex_normals if you need
them.
Algorithms can also persist attributes via write_back=True:
Attribute |
Slot |
Type |
Source |
Triggered by |
|---|---|---|---|---|
|
per-vertex |
float32, |
computed |
|
|
per-vertex |
float32, |
computed |
|
|
per-vertex |
uint32 |
computed |
|
See also¶
Ingest workflows — full format matrix with deps.
Algorithms — which functions write back.