> For the complete documentation index, see [llms.txt](https://docs-7.phoenixlidar.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-7.phoenixlidar.com/lidarmill-desktop/workflow-kk/ground-control/adjusting-automatically-to-gcps-vertical-only.md).

# Adjusting Automatically to GCPs (Vertical Only)

{% hint style="info" %}
This section covers how to compute and apply an average vertical adjustment to the point cloud based on GCP elevations - you can always choose not to apply the computed adjustment, so this workflow may also be useful to users who'd like to quickly compare point cloud and GCP elevations.
{% endhint %}

Point clouds can be automatically adjusted to fit control points vertically. This is done by determining the difference between an interpolated surface elevation from the points around a GCP to the elevation of the GCP itself (a residual). Use the **Align to GCP** tool, circled in red, to auto assign vertical residuals to each GCP:&#x20;

<figure><img src="/files/6ZLZPvLLvFOXTMCEi9vp" alt=""><figcaption><p>Align to GCP tool</p></figcaption></figure>

Users can specify the point classes that should be used when comparing GCP elevations to point cloud elevations. If ground points have already been classified, it may be sensible to compare GCPs only to ground points, however any and all classes can be used to determine GCP-to-cloud residuals:&#x20;

<figure><img src="/files/ijYTv2t8yErlMEWZxWRF" alt=""><figcaption></figcaption></figure>

Once the vertical residuals have been assigned, they will be visible in both the map and profile view. Residuals will always be displayed as a positive value. Note in the example below that points 3 and 4 have no residual listed, as they were set to **Check** - only points set to **Control** will be compared to the cloud when using the **Auto-Assign Residuals** tool.

<figure><img src="/files/ZOzoiuWyYIKLuCONVYFE" alt=""><figcaption><p>Points 2 and 5 are automatically assigned vertical residuals</p></figcaption></figure>

Residuals have been computed but no adjustment has been performed. To apply an adjustment based on the automatically computed residuals, click the **Apply** button located in the **corrections menu** (bottom right corner of SpatialExplorer by default):

<figure><img src="/files/XsCUkPEnPT0omapuM5xU" alt=""><figcaption><p>Four vertical residuals are shown in the corrections menu. </p></figcaption></figure>

{% hint style="info" %}
Applying a single vertical shift to a dataset is effective for removing bias cause by a variety of potential issues that have a direct linear impact on geo-referencing, such as slight error in a reference station elevation.
{% endhint %}

A single vertical shift to the trajectory will be computed based on the average GCP-to-cloud residual. If instead you'd like to apply a variable adjustment, rather than a single global adjustment, you can use GCPs as part of a [LiDARSnap trajectory optimization](/lidarmill-desktop/workflow-kk/lidarsnap-v4.md) routine. In the example below, a 1 cm vertical shift will be applied to the entire trajectory. Note that no horizontal shift has been computed as this must be computed manually (covered in next section).&#x20;

<figure><img src="/files/0GC1MCfIHQg3dszFZkbs" alt=""><figcaption></figcaption></figure>

After clicking **OK** a new trajectory will be produced with the vertical adjustment applied. This trajectory will automatically be loaded into the project and set as the active trajectory. The point cloud will be recomputed based on this new, adjusted trajectory, and GCP-to-cloud residuals will then be recalculated.&#x20;
