Skip to content

Minerals Module

The minerals module ranks reflectance spectra against a library. It uses shape metrics including spectral angle, correlation, derivative correlation, and continuum-removed correlation.

from lux.modules.minerals import identify_mineral

result = identify_mineral(reflectance_spectrum, top_k=5)
for match in result.matches:
    print(match.name, match.score)

V0 Decision Contract

The V0 minerals module reports ranked candidates, diagnostic peaks, and which diagnostic bands are covered by the current scan. Use it directly for visible continuum classes, iron oxide trends, and local reference matching. When a field decision depends on bands outside the observed range, the result explicitly lists those missing bands so the next step is clear: run the extended VIS/NIR, LIBS, Raman, SWIR, or XRF workflow for that target.

Best Use

  • iron oxide trends
  • visible color/continuum classes
  • local reference matching
  • field triage with explicit follow-up modality flags