# Hyperspectral Data Processing

{% hint style="info" %}
Phoenix LiDAR Systems store Headwall Nano data slightly differently than payloads from other integrators. This document explains the necessary workflow for utilizing PLS data in Headwall's software.
{% endhint %}

### Input Data

* SBET format post-processed trajectory
  * This is required for georeferencing the Nano Hyperspectral imagery.
  * Utilize NavLab (Cloud or Embedded) or alternatively Novatel's InertialExplorer to produce an SBET .out file
* DEM
  * DEM files must have a geographic projection, such as WGS84 EPSG:4326, that matches the processed SBET datum
  * The best source for a digital elevation model is from co-acquired LiDAR data.
    * After achieving an accurate ground classified point cloud in SpatialExplorer, use the [Create Maps](/spatialexplorer-8-and-9/user-interface/toolbars/analytics/create/create-maps.md) tool to output a Geodetic Elevation raster .tif file.
  * Other DEM sources can also be used.
* Hyperspectral Imagery
  * It is highly recommended that users Reformat Headwall data in SpatialExplorer before proceeding to SpectralView

### SpectralView

* Place a copy of your project DEM raster into the "dem" folder that is located in the  Headwall software install directory
  * Similar to "C:\Headwall\dem"
* Place a copy of your SBET .out file in the same directory as your reformatted Headwall data
* Open a hyperspectral data cube in SpectraView.

{% hint style="info" %}
Other steps, such as Radiance and Reflectance computation, may be taken prior to orthorectification in SpectralView
{% endhint %}

* Click the "Ortho R." tool and configure the orthorectification settings.
  * Enable "Advanced settings..."
    * Set "Time offset (ms)" to -18000 to account for GPS leap seconds
    * Check "Use post process file"
  * All other settings are sensor specific.

<figure><img src="/files/SmK6xxVISqi4tIfGAO6b" alt=""><figcaption><p>Example Ortho Rectification Settings</p></figcaption></figure>

* Click "Start O.R" and ensure that the results displayed on the Preview tab look satisfactory.

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

* Select all of the wavelengths that you would like output on the Create tab and then press "Create Cube"


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.phoenixlidar.com/3rd-party-software-documentation/hyperspectral-data-processing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
