# 3.4.4.6. Spectral distance¶

Spectral distance

This tab allows for calculating the spectral distance between every corresponding pixel of two band sets. The output is a raster containing the spectral distance of each pixel. Optionally, a threshold can be defined for creating a binary raster (0-1) of values below and above the threshold.

This tool supports virtual raster output; if the output file name ends with .vrt then the output is created as virtual raster composed of as many .tif files as the number of CPU threads defined in System; for large rasters this can speed up the process.

## 3.4.4.6.1. Spectral distance of band sets¶

• Select first input band set : select the first input Band set;
• Select second input band set : select the second input Band set;
• Distance algorithm Minimum Distance Spectral Angle Mapping: select Minimum Distance or * Spectral Angle Mapping for spectral distance calculation;
• Distance threshold : if checked, a binary raster of values below and above the threshold is created;
• BATCH : add this function to the Batch;
• RUN : choose the output destination and start the calculation;