LAS 1.5 External Waveforms: Check the WDP Companion Before Handoff
Inspect the LAS 1.5 external-waveform flag and expected WDP companion with a bounded read-only header check, then review packet and descriptor dependencies.

Define whether waveform data belongs in the delivery
A point-cloud viewer can display coordinates while ignoring waveform information required by another analysis. A successful preview therefore does not establish that the complete waveform delivery is present. Before accepting a NiVO LiDAR processing package, agree whether the task requires discrete points only or waveform-related data as well. This tutorial checks a limited set of LAS 1.5 header fields and the expected external companion path. It does not establish that a particular NiVO payload records waveforms, decode an actual survey or assess ranging accuracy. A waveform requirement must come from the actual sensor and processing specification.
Identify the accepted cloud, producing software, file version and delivery revision before opening it. Keep the master unchanged and use a read-only inspection on an identified local file. A newer specification does not imply that every existing reader supports it, and a familiar extension does not establish the point-record profile. If the delivery uses another LAS version or compressed representation, select the corresponding supported procedure. The example deliberately accepts only an uncompressed las file declaring version 1.5, so its byte offsets and interpretation boundary remain explicit rather than being presented as a universal point-cloud validator.
Read the external flag and its naming relationship
The current ASPRS LAS 1.5 specification describes Global Encoding flags for internal and external waveform storage. The external flag identifies an auxiliary file using the cloud base name with a wdp extension; the internal and external flags are mutually exclusive. The same specification identifies point formats 9 and 10 as waveform-bearing profiles. These declarations guide an initial dependency review. They do not prove that every referenced sample exists or that the companion bytes correspond to the selected cloud. Preserve the version and flags actually observed rather than guessing a storage arrangement from a folder containing several similarly named files.
Treat the cloud and its declared companion as related delivery objects. Record both names, paths, sizes and digests where available. Do not rename one file independently and assume the relationship remains discoverable in another application. Check filename case and the actual package structure when a candidate is not found, particularly across operating systems. A missing expected path is a finding to investigate, not permission to substitute a nearby wdp file from another revision. The accepted source identity should remain clear enough that the producer can explain which waveform object belongs to which point-cloud export.

Product context only; this photograph does not depict the constructed examples in this article.
Inspect a bounded LAS 1.5 header prefix
The following standard-library recipe reads the defined LAS 1.5 header prefix, checks the signature and version, and inspects the point-format and waveform flag fields. It reports the expected companion only when the external flag is set. It does not load point records, alter the header or open waveform packets. Replace the illustrative filename with the identified uncompressed local input. The code is reviewed against the published header layout; no real LAS file was processed for this article. A complete conformance reader must check much more than these selected fields before accepting a file.
Read any reported result within that narrow scope. The file may pass these initial checks while having invalid record lengths, missing metadata, broken offsets or inconsistent packet references. The code rejects contradictory internal/external declarations but does not certify every other flag or header value. A missing companion report also needs the package naming and case review described above. Preserve the inspection output, input identity and environment with the delivery record. If the selected file falls outside the bounded profile, stop and use a version-aware supported tool instead of relaxing the guard until an unfamiliar file appears to pass.
# Limited read-only triage: uncompressed LAS 1.5 only.
from pathlib import Path
import struct
cloud = Path("accepted-cloud.las").resolve(strict=True)
if not cloud.is_file() or cloud.suffix.lower() != ".las":
raise ValueError("Select the identified uncompressed LAS file")
with cloud.open("rb") as stream:
header = stream.read(393)
if len(header) != 393 or header[:4] != b"LASF":
raise ValueError("Missing LAS 1.5 header prefix")
if (header[24], header[25]) != (1, 5):
raise ValueError("Use the procedure for this file version")
if struct.unpack_from("<H", header, 94)[0] != 393:
raise ValueError("Unexpected declared LAS 1.5 header size")
if header[104] not in (9, 10):
raise ValueError("Outside this waveform point-format profile")
flags = struct.unpack_from("<H", header, 6)[0]
internal = bool(flags & (1 << 1))
external = bool(flags & (1 << 2))
if internal and external:
raise ValueError("Contradictory waveform storage flags")
print("Internal flag:", internal, "External flag:", external)
if external:
companion = cloud.with_suffix(".wdp")
print("Expected companion:", companion.name)
print("Regular file at expected path:", companion.is_file())Check descriptors and packet relationships separately
ASPRS defines waveform packet descriptor records that describe how waveform samples are organized. The descriptor information includes sample representation and configuration fields, and the specification requires the relevant descriptor metadata for waveform point formats. Keep those records with the accepted cloud and use a reader that understands them. A companion filename is not a substitute for this metadata. If a conversion retains coordinates but omits descriptors or changes waveform references, the resulting cloud may still look normal while no longer supporting the waveform analysis agreed with the recipient.
The specification separately defines the waveform data packet record, required internally or externally for point formats 9 and 10. Acceptance should trace representative point references through the applicable descriptor to the actual packet data with suitable tooling. Check the requested analysis against that supported reader rather than inferring successful waveform access from an ordinary point-cloud display. The short header recipe above performs none of those packet-level checks. Record what was actually verified, which tool and version performed it, and what remains unresolved. This prevents a simple file-existence test from being promoted into a claim of complete waveform integrity.
Preserve dependencies across conversion and transfer
Before converting or tiling a waveform-bearing cloud, establish whether the proposed writer preserves the required references, descriptors and companion relationship. Test an identified sample using the receiving workflow and retain the original package. Do not assume that coordinate preservation implies waveform preservation. If an intended derivative deliberately contains discrete points only, label that scope and keep it separate from a deliverable expected to support waveform analysis. The choice must follow the agreed task and evidence rather than the convenience of a smaller transfer or the fact that one output opens in the preferred viewer.
After copying the package, compare the accepted file identities and repeat the relevant checks from the receiving location. This can expose a companion omitted from a file-selection step or a reference broken by a naming change. Retain a manifest that links the cloud revision, companion revision and processing history. If the package contains several clouds sharing a producer-defined arrangement, obtain that documented mapping instead of applying a guessed one-file rule. Any nonstandard or unsupported relationship should remain an explicit exception requiring resolution, with no invented assertion that all waveform dependencies have been satisfied.
Deliver evidence at the level actually tested
A useful handoff record states the declared LAS version, selected waveform profile, observed storage flags, expected companion path and actual files received. Add descriptor and packet-level findings only when those checks were performed with an appropriate reader. Include software versions, representative traceable references and unresolved limitations. Keep the limited header inspection labeled as triage. Another analyst should be able to distinguish evidence that a companion exists from evidence that the file is structurally valid, that packet references resolve and that the resulting samples are suitable for the intended scientific or engineering interpretation.
For NiVO LiDAR discussions, the practical question becomes concrete: which output format, waveform metadata and companion objects does the actual configured workflow provide? The answer needs producer documentation and tested delivery evidence, not a general assumption about LiDAR or a catalogue photograph. A complete-looking point cloud may satisfy a discrete-point task while being insufficient for a waveform task. Preserve that distinction in the acceptance record. This supports an honest transfer of data and responsibilities without claiming a new payload capability, completed waveform decoding or measurement accuracy that the inspection did not establish.



