Module 2/5 · Weeks 4–6 · 27 h

Multispectral data acquisition and radiometric calibration

UAT 465 UAS Technology for Smart Farming and Precision Agriculture

About 95 minDraft, awaiting reviewLast updated 21 October 2026

Lesson

By the end of this module you will be able to

  1. Explain how plants reflect each band, and what RGB, multispectral and thermal cameras see
  2. Convert pixel values to reflectance with a calibration panel and a light sensor
  3. Choose flight times from solar elevation
  4. Set a field procedure that gives data comparable across days and seasons
  5. Acquire thermal data with a sound procedure and compute the Crop Water Stress Index (CWSI)
  6. Describe the workflow from raw images to an orthomosaic and check quality from the report and the date-to-date shift

Prerequisites: Module 1 Precision and smart farming and the farm management cycle

Why this matters

Multispectral images taken in bright sun and under cloud give very different pixel values even when the crop is the same. If raw values are used to compute vegetation indices and compared across days, you will see “changes” that do not exist and make the wrong fertiliser decisions. Calibration and flight timing matter as much as the camera itself.

How plants reflect light

Healthy leaves absorb red light for photosynthesis, so they reflect little red, but reflect a lot of near-infrared because the leaf’s cell structure scatters it. Between red and near-infrared lies the red edge, where reflectance rises steeply and is sensitive to chlorophyll content (Lillesand and colleagues).

CameraWhat it seesUse in cane
RGBVisible colourCount stools, find gaps, spot weeds
Multispectral (blue, green, red, red edge, NIR)Measured reflectance in each bandVegetation indices, vigour, nutrients
ThermalLeaf surface temperatureWater stress, leaking drip lines

Thermal images need the correct emissivity and must be read with air temperature (Vollmer and Möllmann, 2017). The acquisition procedure and the conversion to a water stress index are in “Acquiring thermal data” later in this module.

From pixel values to reflectance

A pixel value (DN) depends on both the crop and the light falling on it. Reflectance is the fraction of light the crop reflects; it does not depend on how bright the day is, so it can be compared across days. Drone work commonly combines two things:

  • Photographing a calibration panel of known reflectance before and after flight, to relate DN to reflectance, the same principle as the empirical line method (Smith and Milton, 1999)
  • Using a downwelling light sensor on the drone to correct for light changes during flight, such as passing cloud

MicaSense’s image-processing code on GitHub shows all of these steps and is a good study example.

Example 1 Correcting for cloud

The panel’s NIR reflectance is 0.49 and it reads DN 31,000 at reference light 1.00. Three cane points were captured in flight under different light.

# calibrate with a panel of known reflectance (near-infrared band)
rho_panel, dn_panel, e_panel = 0.49, 31000, 1.00   # panel captured before flight, reference light 1.00
# pixel values at three cane points and light from the light sensor at capture (cloud at times)
pixels = [(24500, 1.00), (24500, 0.92), (20000, 0.80)]

for dn, e in pixels:
    raw = dn / dn_panel * rho_panel
    corr = raw * e_panel / e                  # correct for the reduced light
    print(f"DN {dn}, light {e:.2f}: uncorrected {raw:.3f} -> corrected {corr:.3f}")
DN 24500, light 1.00: uncorrected 0.387 -> corrected 0.387
DN 24500, light 0.92: uncorrected 0.387 -> corrected 0.421
DN 20000, light 0.80: uncorrected 0.316 -> corrected 0.395

Points 1 and 2 have the same pixel value, but point 2 was captured when the light dropped to 0.92, so its true reflectance is higher, 0.421. Point 3 looks much lower uncorrected (0.316) but is 0.395 after correction, close to the others. Without correction, the map would show weak bands along cloud shadows that have nothing to do with the crop.

Paired bar chart of three pixels: grey bars uncorrected and green bars corrected. Pixel 1 stays at 0.387, pixel 2 goes from 0.387 to 0.421, and pixel 3 from 0.316 to 0.395
Figure 1 NIR reflectance before and after light correction

Choosing flight times

A low sun makes long cane shadows and lengthens the light’s path through the atmosphere, so image lines differ in brightness. Flying near midday reduces this. Solar elevation follows from latitude , declination and hour angle , using the NOAA equations.

Example 2 When can we fly on 15 January?

The field is at 14.02° N, 99.53° E. The team’s (assumed) rule is to fly only when the sun is at least 40° high.

import math
# sun elevation from the NOAA equations at Kanchanaburi on 15 January (day 15 of the year)
lat, lon, tz, doy = 14.02, 99.53, 7, 15
min_elev = 40                           # team rule (assumed): fly when the sun is at least 40 degrees high
g = 2 * math.pi / 365 * (doy - 1)
eqt = 229.18 * (0.000075 + 0.001868 * math.cos(g) - 0.032077 * math.sin(g)
                - 0.014615 * math.cos(2 * g) - 0.040849 * math.sin(2 * g))
decl = (0.006918 - 0.399912 * math.cos(g) + 0.070257 * math.sin(g) - 0.006758 * math.cos(2 * g)
        + 0.000907 * math.sin(2 * g) - 0.002697 * math.cos(3 * g) + 0.00148 * math.sin(3 * g))

for hour in (8, 9, 10, 11, 12, 13, 14, 15, 16):
    tst = hour * 60 + eqt + 4 * lon - 60 * tz          # true solar time (minutes)
    ha = math.radians(tst / 4 - 180)
    cz = (math.sin(math.radians(lat)) * math.sin(decl)
          + math.cos(math.radians(lat)) * math.cos(decl) * math.cos(ha))
    elev = 90 - math.degrees(math.acos(cz))
    print(f"{hour:02d}:00  sun elevation {elev:5.1f} deg {'fly' if elev >= min_elev else ''}")
08:00  sun elevation  14.8 deg 
09:00  sun elevation  27.4 deg 
10:00  sun elevation  38.9 deg 
11:00  sun elevation  48.3 deg fly
12:00  sun elevation  53.9 deg fly
13:00  sun elevation  54.0 deg fly
14:00  sun elevation  48.4 deg fly
15:00  sun elevation  39.1 deg 
16:00  sun elevation  27.7 deg 

The hours that pass are 11:00 to 14:00. At 10:00 and 15:00 the sun is about 39°, close but not enough. Computed minute by minute, the window is about 10:06 to 14:55. In January the sun is lower than at other times of year, peaking at only about 55°, so the window is shorter than in the hot season. For repeat flights across seasons, fly at similar times each time.

Graph of solar elevation from 08:00 to 16:00. The yellow line rises from 14.8 degrees to a peak of about 54 degrees around midday, then falls. A dashed pink line marks 40 degrees and a green band shows the survey window from about 10:00 to 15:00
Figure 2 Sun elevation at Kanchanaburi on 15 January

A comparable field procedure

  1. Check the wind and cloud forecast; avoid days with patchy cloud
  2. Photograph the panel before and after flight, with no shadow of people or the drone on it
  3. Use the same height, speed, overlap and time of day each time
  4. Record date, time, sky conditions and the cane’s growth stage
  5. Process with the same software and settings, and keep the originals

Acquiring thermal data

Well-watered cane transpires through its stomata. The evaporating water carries heat away, so the leaves stay cooler than the air, just as our skin cools when sweat evaporates. When the soil dries or a drip line clogs, the cane closes its stomata to save water and the leaves warm up before any wilting can be seen. A thermal camera detects this difference. Jackson and colleagues (1981) and Idso and colleagues (1981) turned canopy temperature into the Crop Water Stress Index (CWSI); the form most practical in the field compares leaf temperature with two reference surfaces (Maes and Steppe, 2012):

is the canopy temperature, the temperature of a surface kept fully wet (the coolest a fully transpiring leaf can be), and the temperature of a leaf that does not transpire at all. 0 means no stress and 1 the most stress.

Most small drone thermal cameras have an uncooled sensor, so their readings drift with the camera’s own temperature and with the wind blowing past it. Kelly and colleagues (2019) tested such a camera: in the laboratory it was accurate to about 1 °C, but in flight the error reached about ±5 °C, and the image edges read up to 2.6 °C differently from the centre. The field procedure therefore has to be stricter than for a multispectral camera.

  1. Choose the time Fly from midday to early afternoon on a clear day, when stressed and well-watered cane differ most in temperature (Maes and Steppe, 2012). The flight window from Example 2 can be used
  2. Warm up the camera Leave it switched on at the ground until readings settle. Kelly and colleagues found readings settled after about 15 minutes and recommend adding extra flight lines at the start so the camera adjusts to the wind before real data are collected
  3. Lay out at least three temperature reference targets at different temperatures, measure their true temperature with a contact thermometer as the drone passes, and convert pixel values to temperature with a straight line, the same idea as the multispectral calibration panel (Kelly and colleagues used at least three points)
  4. Prepare wet and dry reference surfaces for and , placed in the field in the same sun as the canopy
  5. Set the emissivity of leaves: typical values are 0.95 or higher and 0.97 is a good approximation (Maes and Steppe, 2012). A wrong setting biases the temperature (Teledyne FLIR). Record air temperature, humidity and wind for every flight
  6. Remove soil pixels Dry soil in the sun can be much hotter than the canopy, so use only canopy pixels, for example by overlaying the thermal image on the NDVI map and keeping only leaf pixels, or wait until the cane canopy closes the rows
  7. Use high image overlap Thermal images have low resolution and unreliable edges; more overlap means more of each image’s centre can be used

Example 3 From thermal pixel values to CWSI for three zones

The cane field is drip irrigated. The team laid out three reference targets whose true temperatures were 28.4, 38.9 and 50.1 °C. The wet reference read 30.5 °C and the dry reference leaf 41.0 °C, and the mean canopy pixel values of zones A, B and C after removing soil are in the code. The team’s (assumed) rule is to inspect the drip lines of any zone with CWSI above 0.5 (all data assumed).

# linear calibration from three reference targets, then CWSI for each zone
tcp = [(7210, 28.4), (7985, 38.9), (8840, 50.1)]   # (pixel value, contact thermometer temperature degC)
n = len(tcp)
mx = sum(d for d, _ in tcp) / n
my = sum(t for _, t in tcp) / n
b = sum((d - mx) * (t - my) for d, t in tcp) / sum((d - mx) ** 2 for d, _ in tcp)
a = my - b * mx
worst = max(abs(a + b * d - t) for d, t in tcp)
print(f"T = {a:.2f} + {b:.5f} x DN, largest residual {worst:.2f} degC")

T_WET, T_DRY = 30.5, 41.0          # wet reference surface and dry reference leaf (degC)
zones = {"A": 7650, "B": 7830, "C": 8050}   # mean canopy pixel value (soil removed)
for z, dn in zones.items():
    tc = a + b * dn
    cwsi = (tc - T_WET) / (T_DRY - T_WET)
    flag = "check drip line" if cwsi > 0.5 else ""
    print(f"zone {z}: canopy {tc:.1f} degC, CWSI {cwsi:.2f} {flag}")
print(f"1 degC error changes CWSI by {1 / (T_DRY - T_WET):.2f}")
T = -67.50 + 0.01331 x DN, largest residual 0.12 degC
zone A: canopy 34.3 degC, CWSI 0.36 
zone B: canopy 36.7 degC, CWSI 0.59 check drip line
zone C: canopy 39.6 degC, CWSI 0.87 check drip line
1 degC error changes CWSI by 0.10

The calibration line passes all three targets within 0.12 °C. Zone A is fairly well watered (CWSI 0.36), zone B is starting to suffer, and zone C is severely stressed (0.87), close to a leaf that does not transpire at all, so the team should walk zone C’s drip lines first. The last line shows that a 1 °C error shifts CWSI by 0.10. Without calibration, and with the camera error of up to 5 °C that Kelly and colleagues found, the numbers would be meaningless. Hence reference targets on every flight, and CWSI is better used to compare zones within one flight than as an absolute value across days.

From raw images to maps: processing and quality checks

Drone images are not yet a map. The usual workflow has five steps. (1) Screen the images: drop blurred ones and those taken in turns, and set the panel images aside. (2) Convert to reflectance and align the bands so that they overlap. The MicaSense code does both, saves a multi-band TIFF, writes position and time back into the file so the stitching software can read them, and warns that radiance images cannot be used for NDVI or NDRE. (3) Stitch with photogrammetry: the software matches features that appear in several overlapping images, computes the camera positions, and builds an orthomosaic, an image corrected to be upright with a constant scale (Tsouros et al., 2019). (4) Tie the coordinates to the ground with ground control points (GCPs) or RTK/PPK camera positions. (5) Read the quality report before using the map.

A GCP is a target whose ground position is measured with GNSS. OpenDroneMap recommends at least 5 for most jobs, spread over the field, farther apart than one image footprint, and 10 to 30 m inside the field boundary. Pix4D recommends targets about 5 to 10 times the GSD wide. The Pix4D quality report summarises the share of images whose camera position could be computed (above 95% is green, 65 to 95% orange, below 65% red) and the GCP errors.

Example 4 Data volume and quality checks for the 150-rai flight

Continuing Example 1 of module 1, compute the data volume, the number of images seeing each point and the mosaic size, then check results from the quality report. The report figures and the check points are assumed, and the team rule (assumed) is that mosaics of two dates may shift by at most 2 GSD.

import math
# continuing Example 1 of module 1: 80 m height, 75% overlap both ways, a 600 x 400 m field
px_x, px_y, pitch, f, h, ov = 1456, 1088, 3.45e-6, 5.5e-3, 80, 0.75
W, H, bands, bytes_px = 600, 400, 5, 2        # 5 bands, 16 bits per pixel (assumed)
gsd = h * pitch / f
fw, fh = px_x * gsd, px_y * gsd
lines = math.ceil(H / (fw * (1 - ov))) + 1
shots = math.ceil(W / (fh * (1 - ov))) + 1
caps = lines * shots
print(f"GSD {gsd * 100:.2f} cm, {lines} lines x {shots} = {caps} captures")
print(f"raw data {caps * bands * px_x * px_y * bytes_px / 1e9:.1f} GB, each ground point in about {1 / (1 - ov) ** 2:.0f} images")
mx, my = round(W / gsd), round(H / gsd)
print(f"mosaic {mx:,} x {my:,} px per band, 5-band float32 {mx * my * bands * 4 / 1e9:.2f} GB")
print(f"GCP target {5 * gsd * 100:.0f}-{10 * gsd * 100:.0f} cm")

calibrated = 980                              # from the quality report (assumed)
share = calibrated / caps * 100
print(f"calibrated {calibrated} of {caps} = {share:.1f}% -> {'ok (>95%)' if share > 95 else 'check the missing captures'}")

# shift (cm) of the same check points between the mosaics of two dates (assumed); team rule: at most 2 GSD
shift = [(4, -3), (6, 2), (-5, 7), (8, -4), (3, 9), (-7, -2)]
rmse = math.sqrt(sum(dx * dx + dy * dy for dx, dy in shift) / len(shift))
tol = 2 * gsd * 100
print(f"date-to-date shift RMSE {rmse:.1f} cm vs tolerance {tol:.1f} cm -> {'ok' if rmse <= tol else 'realign'}")
GSD 5.02 cm, 23 lines x 45 = 1035 captures
raw data 16.4 GB, each ground point in about 16 images
mosaic 11,957 x 7,971 px per band, 5-band float32 1.91 GB
GCP target 25-50 cm
calibrated 980 of 1035 = 94.7% -> check the missing captures
date-to-date shift RMSE 7.8 cm vs tolerance 10.0 cm -> ok

The flight gives 1,035 captures, about 16.4 GB of raw data, and each ground point lies in about 16 images, above Pix4D’s green threshold of more than 5 (the field edge gets fewer, so fly past the boundary). The five-band mosaic is about 12,000 x 8,000 pixels per band, roughly 1.9 GB as float32, and GCP targets should be 25 to 50 cm wide. The 980 of 1,035 captures that were calibrated make 94.7%, slightly under 95%, so look at which captures are missing, for example turn images or blurred ones, instead of letting it pass. If the missing captures are scattered over the field, refly with higher overlap, since OpenDroneMap suggests about 80 to 83% for complex vegetation. The shift between the two dates has an RMSE of 7.8 cm, inside the 10 cm limit, so indices from the two dates can be compared pixel by pixel. If it were over the limit, the mosaics would have to be re-aligned first.

Module lab

Lab: surveying a field and calibrating reflectance

  1. Compute the flight window for your survey day with the code in Example 2
  2. Photograph the panel before and after flight, then survey the field as planned in module 1 under CAAT conditions
  3. Convert pixel values to reflectance with software or the MicaSense code, and compare with a hand calculation using Example 1 for sample points
  4. Find image lines that are unusually bright and explain whether light or the crop caused them
  5. Stitch the images into an orthomosaic, read the share of calibrated images in the quality report, and compare the mosaic with the earlier check points using the limit in Example 4

Common mistakes

Watch out

  • Computing indices from raw pixel values and comparing across days
  • A shadow on the panel, or photographing it only once
  • Flying in early morning or late afternoon, with long shadows and uneven images
  • Flying under patchy cloud without a light sensor
  • Changing height or software between seasons, so data cannot be compared
  • Flying a thermal camera straight after switching it on, without warm-up or temperature reference targets, or averaging soil pixels in with the canopy

Summary

  • Healthy plants reflect little red and much NIR; the red edge is sensitive to chlorophyll
  • Reflectance is comparable across days; raw pixel values are not
  • Choose flight times from solar elevation and fly at similar times each time
  • A consistent field procedure makes data comparable across seasons
  • A thermal camera needs warm-up, at least three reference targets and soil pixels removed; then
  • Turn images into a map in five steps: screen the images, convert to reflectance and align the bands, stitch an orthomosaic, tie the coordinates with GCPs or RTK/PPK, and read the quality report before use

Check your understanding

  1. A 0.50 panel reads DN 30,000 and a leaf reads DN 18,000 under the same light. What is the leaf’s reflectance?
  2. From question 1, if the leaf was captured when light dropped to 0.90, what is the corrected reflectance?
  3. The cane canopy reads 35.0 °C, the wet reference 30.0 °C and the dry reference leaf 40.0 °C. What is the CWSI and what does it mean?
  4. Why not survey at 08:00 in January?
  5. What goes wrong if next season’s height changes from 80 m to 120 m?
Answers
  1. : moderate water stress, halfway between a fully transpiring leaf and one that does not transpire at all
  2. The sun is only about 15° high, so shadows are long and images uneven
  3. GSD changes, so resolution and per-pixel averaging differ and seasons are hard to compare

Key formulas

Reflectance from a panel
Solar elevation
Crop Water Stress Index

Key references

  1. MicaSense. imageprocessing: MicaSense RedEdge and Altum image processing tutorials (MIT License) [Software]. GitHub. link
  2. Smith, G. M., & Milton, E. J. (1999). The use of the empirical line method to calibrate remotely sensed data to reflectance. International Journal of Remote Sensing, 20(13), 2653–2662. link
  3. NOAA Global Monitoring Laboratory. General solar position calculations. link
  4. Vollmer, M., & Möllmann, K.-P. (2017). Infrared thermal imaging: Fundamentals, research and applications (2nd ed.). Wiley-VCH. link
  5. Lillesand, T., Kiefer, R. W., & Chipman, J. (2015). Remote sensing and image interpretation (7th ed.). Wiley. link
  6. Jackson, R. D., Idso, S. B., Reginato, R. J., & Pinter, P. J., Jr. (1981). Canopy temperature as a crop water stress indicator. Water Resources Research, 17(4), 1133–1138. link
  7. Idso, S. B., Jackson, R. D., Pinter, P. J., Jr., Reginato, R. J., & Hatfield, J. L. (1981). Normalizing the stress-degree-day parameter for environmental variability. Agricultural Meteorology, 24, 45–55. link
  8. Maes, W. H., & Steppe, K. (2012). Estimating evapotranspiration and drought stress with ground-based thermal remote sensing in agriculture: A review. Journal of Experimental Botany, 63(13), 4671–4712. link
  9. Kelly, J., Kljun, N., Olsson, P.-O., Mihai, L., Liljeblad, B., Weslien, P., Klemedtsson, L., & Eklundh, L. (2019). Challenges and best practices for deriving temperature data from an uncalibrated UAV thermal infrared camera. Remote Sensing, 11(5), 567. link
  10. Teledyne FLIR. How does emissivity affect thermal imaging? link
  11. Tsouros, D. C., Bibi, S., & Sarigiannidis, P. G. (2019). A review on UAV-based applications for precision agriculture. Information, 10(11), 349. link
  12. OpenDroneMap Authors. Ground control points. OpenDroneMap documentation (Version 3.6.0). link
  13. MicaSense. Batch processing [Image processing tutorial]. MicaSense RedEdge and Altum image processing tutorials. GitHub Pages. link
  14. Pix4D. Getting GCPs on the field or through other sources (optional but recommended) [Support article]. PIX4Dmapper documentation. Pix4D SA. link
  15. Pix4D. Quality report [Support article]. PIX4Dcloud documentation. Pix4D SA. link
  16. OpenDroneMap Authors. Flying tips. OpenDroneMap documentation. link

Further reading

Study the assigned knowledge units in advance, review media and take the module quiz

In class / field

Intensive lab and field practice recorded in a lab notebook

Learning evidence: Lab notebook signed by the instructor

Module quiz

This is a formative self-check, not a graded exam

Knowledge domain: Surveying, mapping and geoinformatics · Sensors and embedded systems · Aircraft, structures and design