NiVO / BY TECHNOGISGermany · Indonesia
Point cloud attributes

LAS Return Number Is Not Number of Returns: Review a Drone Point Cloud

Decode a constructed LAS point-format 6–10 return byte and distinguish pulse order, total returns and the selection rules used in a cloud handoff.

LAS Return Number Is Not Number of Returns: Review a Drone Point Cloud

Identify the attribute before interpreting the display

A point-cloud viewer may offer first, last and single-return selections beside familiar classification controls. Those labels can look like interchangeable ways to choose a surface, but their meanings depend on different evidence. Begin by identifying the actual attributes, declared LAS version and point record format. This tutorial examines Return Number and Number of Returns using the LAS 1.5 definition and a constructed byte for point formats six through ten. It does not describe an inspected NiVO acquisition, assert a sensor return capability or establish which observations in a real cloud represent terrain. Keep those project questions attached to their own acquisition and processing records.

Preserve the received file and obtain its release identity, producing software and intended use. Ask whether the cloud is an original delivery, a classified subset, a thinned derivative or a merged collection. The answer affects how an analyst should interpret an apparent gap in return sequences. A preview can show plausible geometry while concealing a changed attribute or an intentional selection. Do not infer completeness from the visible density alone. A useful first finding names the field being inspected and explains the evidence available for its interpretation before applying a filter or writing a replacement cloud.

Read order and total as two fields

The ASPRS LAS 1.5 definition gives Return Number the sequence position for a pulse and Number of Returns the total for that pulse. For point formats six through ten, the low four bits of byte offset fourteen store the former and the high four bits store the latter. The specified return number is between one and the declared total. These meanings concern the individual point record, not the total number of point records in a file. Version and point-format identification therefore belong before byte interpretation. Do not transfer this particular nibble layout to older point formats or to compressed LAZ bytes.

The same specification discusses systems without multiple-return recording and synthetically derived return values in the relevant global encoding context. Preserve that source context rather than assuming every numerical pair came directly from the same physical sensing process. A format field alone cannot establish the collection method or capability of the photographed aircraft. If a delivery contains unexpected values, retain them as evidence and ask for the producer explanation. A reviewer should not silently replace a zero or inconsistent pair with a convenient default. Such a replacement would erase the distinction between an observed anomaly and a deliberate correction with an accountable source.

NiVO VTOL V5 product image showing the fixed wing and vertical-lift rotors
NiVO VTOL V5 product image showing the fixed wing and vertical-lift rotors.Source: NiVO / TechnoGIS catalogue materials supplied by the site owner · Catalogue photo
Product context only; this photograph does not depict the constructed examples in this article.

Decode one constructed byte without parsing a cloud

Consider the invented byte 0x32. Separating its two nibbles gives a total of three and a return number of two. It describes one record marked as the second return within a three-return pulse. It does not contain three point records or prove that all associated records are present in the file being reviewed. The Python function below operates only on an explicitly supplied integer byte. It checks the supported layout identifier and the pair range, then labels the constructed cases. It is not a LAS file reader and supplies no header parsing, decompression, pulse matching or real observation processing.

Use the example to clarify the field relationship before considering a real dataset. A byte with return number greater than its total is rejected by this narrow check; that outcome illustrates a semantic inconsistency rather than a recommendation to repair the data automatically. The function also rejects unsupported format identifiers and values outside one byte. These boundaries keep the teaching calculation explicit. When inspecting actual files, use a suitable version-aware reader and retain its diagnostics. Extracting a byte at a guessed offset from an unknown file is not an equivalent procedure, especially when record layouts, compression or declared lengths have not been established.

def decode_returns(value, point_format):
    if point_format not in range(6, 11):
        raise ValueError("this example supports point formats 6-10 only")
    if not isinstance(value, int) or not 0 <= value <= 255:
        raise ValueError("expected one integer byte")
    number = value & 0x0F
    total = (value >> 4) & 0x0F
    if not 1 <= number <= total <= 15:
        raise ValueError("inconsistent return pair")
    if total == 1:
        group = "only"
    elif number == 1:
        group = "first"
    elif number == total:
        group = "last"
    else:
        group = "intermediate"
    return number, total, group

# Constructed bytes, not data read from a project:
print(decode_returns(0x32, 6))  # (2, 3, 'intermediate')
print(decode_returns(0x11, 6))  # (1, 1, 'only')

State what first, last and only mean in the tool

PDAL documents its returns filter with separate groups for first, intermediate, last and only. In that filter, first and last concern pulses with more than one return; only identifies a total of one. Thus a request for last returns and a request for last plus only do not express the same inclusion rule. The constructed function follows that grouping distinction after its pair check. Confirm the exact behavior of the installed receiving tool before transferring a label into a delivery requirement. Similar menu text should not be treated as a universal promise that different applications select identical point sets.

Write the intended inclusion rule in the review record before running a real selection. Identify whether single-return points should be included, how invalid pairs will be handled and which processing stage the rule applies to. Keep the observed counts and actual tool diagnostics if you execute the operation. No PDAL run is claimed in this tutorial. A recipient should be able to distinguish a documented filter definition from a measured result on an identified cloud. If different analysts used different rules, first reconcile that difference rather than attributing a changed output count to lost observations or a file-format defect.

Keep return selection separate from terrain acceptance

A last-return designation is an attribute relationship, not a ground-classification certificate. Review classification, flags, spatial context and the accepted project method separately before using a selected subset for terrain analysis. A return attribute does not establish whether a point lies on a roof, vegetation or an accepted ground surface in the actual project. Avoid turning a convenient viewer selection into an unsupported terrain claim. Retain the original cloud and give any derived selection a distinct identity, so another reviewer can inspect what was included and trace the result back to the accepted source rather than a transient display state.

Likewise, a valid pair in one record does not prove that the complete pulse sequence survived filtering, tiling or delivery. A derivative may intentionally contain only part of the source observations. Establish the intended scope with processing history and suitable reader evidence before treating missing sequence members as corruption. The two attributes alone are not a universal pulse identity for reconstructing every original group. If a project requires pulse-level completeness, define the association method and required evidence explicitly. Do not invent missing returns or infer a sensor specification from the highest total found in a convenient preview subset.

Deliver an attribute finding with reproducible scope

A clear handoff identifies the cloud revision, version, point format, reader build, observed field semantics and selection rule. Record any invalid pairs or unsupported input conditions without silently normalizing them. If a derived cloud was created, document the operation and its actual result, retaining the accepted original and any warnings. Another analyst should understand whether the review checked field decoding, selection behavior, delivery completeness or suitability for a specific analysis. These findings require different evidence. A successful constructed byte calculation is useful instruction, but cannot stand in for an executed reader pass or acceptance review on real observations.

For NiVO data discussions, the practical benefit is a precise explanation of what a return label does and what the recipient expects to receive. It complements point-count and classification reviews while keeping the pulse relationship visible. The product photograph supplies context only and does not demonstrate the example values or a particular payload capability. Preserve the attribute meaning through the handoff rather than relying on a screenshot of a selected cloud. With the exact input and inclusion rule recorded, the recipient can reproduce the intended selection and identify what additional evidence is needed before the result supports its proposed analytical use.

Technical references

  1. ASPRS LAS 1.5: point records and return fields ↗
  2. PDAL returns filter grouping definitions ↗
← All articles

Related articles

All articles ↗
LET’S TAKE FLIGHT

Your next mission
starts with a conversation.

Talk to our team