Parse SPECPR spectral data files
spectral-data-skillskillsetup L2★1
chrislyonsKY/speclib ↗What it does
Parse and resample spectral reflectance data
Best for
Harmonizing spectral libraries across USGS, ASTER, EMIT, and ECOSTRESS for machine learning or geophysics
Inputs
- · [object Object]
- · [object Object]
Outputs
- · [object Object]
Preconditions
Understanding of fixed SPECPR 1536-byte record format and USGS column conventions; wavelength units must match
Failure modes
- · Interpolating across NaN gaps (spectral data has voids)
- · Confusing wavelength units (µm vs nm) across sources
- · Treating delete value -1.23e+34 as valid data
- · Forgetting separate wavelength file in USGS format
Trust signals
- · Explicit IEEE 754 single-precision format for SPECPR
- · Cubic-spline interpolation method documented (0.0001 µm fine spacing)
- · Unit conversion table for each source (USGS, ASTER, EMIT, ECOSTRESS)
- · Gaussian convolution with FWHM (standard spectral resampling)
- · Clark 1993 reference for SPECtrum Processing