Once n(λ) is known, each extremum satisfies 2n(λ)d = mλ/2 for integer or half-integer order m. Two consecutive maxima (or minima) at λ1 < λ2 give:
d = λ1λ2 / [2(n(λ1)λ2 − n(λ2)λ1)]
That is Swanepoel eq. (13). Average across all adjacent pairs to get a robust estimate dpair, then grid-search ±1500 nm around it on a fine step to catch half-integer offsets, then alternate a two-step convergence between d and the integer orders mi.
Why one pair is not enough
A single d from one pair can be off by 2–4 % due to envelope smoothing error at that specific pair. The median across all pairs plus the order-snap refinement brings it under ~0.5 % for clean spectra.