NiVO / BY TECHNOGISGermany · Indonesia
LiDAR Engineering

Read LAS GPS Time Encoding Before Joining Drone LiDAR Records

Inspect LAS version, GPS-time fields and Global Encoding before joining a point cloud to flight records, including the additional offset rules in LAS 1.5.

Read LAS GPS Time Encoding Before Joining Drone LiDAR Records

Identify the event and file version first

A point cloud can contain a field named GPS time without storing a self-explanatory civil timestamp. Before joining NiVO LiDAR deliverables to flight records, identify the LAS version, point format and the event each time value represents. The join might connect a point, a laser pulse, a trajectory sample or another system event, and those are not automatically the same observation. This tutorial inspects time-encoding metadata before any numerical conversion. It does not process an actual point cloud or claim that every NiVO payload produces the same LAS version, timing field or trajectory relationship.

Preserve the accepted input and its original header, and identify a working copy by filename, digest and delivery revision. Record the source software and any known conversion history. Confirm that the selected reader supports the actual file version and point format. A familiar extension or a displayed column name is not a substitute for that compatibility check. If the point format does not carry the required time field, record its absence instead of borrowing a file creation date or a neighboring metadata value to make a time-based join appear possible.

Distinguish week, adjusted and offset representations

The ASPRS LAS specification defines how Global Encoding flags identify point-record GPS time. Common encodings distinguish a value within a GPS week from adjusted standard GPS time, which subtracts one billion seconds from standard GPS time. The adjusted representation therefore needs its defined offset restored before it can be interpreted on the standard GPS timeline. A week-relative value also needs the correct week context. These are representation questions. Guessing an encoding from the apparent size of a number can produce a plausible sequence while placing the entire cloud on the wrong timeline.

LAS 1.5 adds a time-offset mechanism that must be interpreted with its applicable header field and flag combination. The current ASPRS documentation describes offset GPS time using a million-second multiple of the declared Time Offset. Do not apply a two-case legacy rule blindly to a newer file. Inspect the version and all relevant flags with a reader that supports them, and use the corresponding specification. The code in this article deliberately limits its example to LAS 1.4 metadata; it stops for another version rather than implying that an older library interface has fully audited newer encoding semantics.

NiVO VTOL V7 with a white fuselage, lift rotors, and yellow wing tips
NiVO VTOL V7 with a white fuselage, lift rotors, and yellow wing tips.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.

Inspect a LAS 1.4 header without reading all points

The laspy documentation distinguishes opening a file and inspecting its header from loading the point records. In an environment with a compatible laspy installation, the following example checks the version, point format, presence of the GPS-time dimension and the legacy time-type flag. Replace survey.laz with the identified local input. It opens in read mode and does not modify the cloud. Record the installed software and any LAZ support requirements for the environment. A metadata report is useful preparation evidence, but it does not demonstrate that every point has been decoded or that its time value is meaningful.

Review the reported time-type value using the specification and the library interface documentation. Keep the raw header information with the report rather than retaining only a friendly label. The reader's enum terminology is an interface detail; an adjusted encoding should not be mistaken for an already converted standard GPS or UTC value. The example does not perform a time conversion or a join. No point total, timestamp range or successful dataset opening is invented for article preparation. Errors and unsupported versions remain findings to investigate before proceeding with the actual delivery.

import laspy

with laspy.open("survey.laz") as reader:
    h = reader.header
    print("LAS:", h.version)
    print("Point format:", h.point_format.id)
    if str(h.version) != "1.4":
        raise ValueError("LAS 1.4 example only")
    names = h.point_format.dimension_names
    if "gps_time" not in names:
        raise ValueError("No GPS-time field")
    encoding = h.global_encoding
    print(int(encoding.gps_time_type))

Check actual values without assuming uniqueness

After establishing the encoding, inspect actual time values in an appropriate reader and compare their availability with the intended survey interval. Distinguish missing or unsupported timing from a legitimate value under the applicable format and source convention. Do not silently drop repeated timestamps. The LAS specification intends multiple returns from one pulse to share a GPS time, so a point-level timestamp need not be a unique record identifier. A join that assumes uniqueness can lose points or duplicate associated information even though the numeric time conversion itself is correct.

Preserve any source identifiers needed to connect points, pulses, strips or trajectory records under the actual delivery contract. Check representative values at the beginning, middle and end, including known session boundaries. If a transformed derivative has a different point order, do not assume the same row number still refers to the same observation. Keep any time normalization as a separately documented step and compare its result with the unchanged source. A monotonically increasing plot can be a useful clue, but it cannot establish the correct epoch, encoding or physical event relationship on its own.

Separate encoding restoration from clock matching

Restoring an encoding offset places a number on its specified GPS representation; it does not automatically turn that number into UTC or align it with another device's event. Time-scale conversion, timezone display and event synchronization are separate operations. Use authoritative time information and the actual source/software documentation for the conversion date and required scale. Avoid hard-coding a remembered leap-second difference into an otherwise reusable workflow. Keep the original field and each derived representation identifiable so a later reviewer can determine whether a discrepancy entered during decoding, conversion or event association.

Compare the resulting timeline with documented reference events or processing records appropriate to the task. A flight-controller position sample and the time assigned to a laser pulse can have different meanings and sampling behavior. An apparently small constant shift is not sufficient evidence to apply a correction until tracks look aligned. Record the intended relationship and its support, and preserve uncertainty or missing information. This header audit clarifies the stored time representation. It does not measure synchronization accuracy, recover an absent trajectory or independently establish that the points are correctly georeferenced.

Keep a time-encoding contract with the cloud

The handover notes should identify the LAS version and point format, the relevant Global Encoding interpretation, any applicable time-offset field, and the source of week or epoch context. Record reader/version, input identity and the transformations actually performed. Explain repeated-time handling and the keys used for any association with another dataset. Retain a checked sample from the real delivery when available. If a downstream tool changes the representation, inspect both the header and point values afterward instead of assuming that a successful export preserved the original timing contract.

A NiVO LiDAR workflow benefits from this small audit because it prevents a metadata misunderstanding from spreading into flight comparisons, strip analysis or sensor integration. The accepted result should state which representation is present and how it was interpreted for the specified join. It should also state what was not verified. Correctly reading a GPS-time flag is necessary for some timing tasks, but it is not a certificate of position quality or acquisition completeness. Keep timing interpretation linked to the actual trajectory, calibration and survey-quality evidence that the final analytical use requires.

Technical references

  1. ASPRS LAS 1.5: Global Encoding, GPS Time and Time Offset definitions ↗
  2. laspy: header access and opening a file ↗
  3. laspy: header/GlobalEncoding interface ↗
  4. laspy: point-format dimension names ↗
  5. laspy implementation: GPS-time type enum and bit access ↗
← All articles

Related articles

All articles ↗
LET’S TAKE FLIGHT

Your next mission
starts with a conversation.

Talk to our team