Lesson 3 of 3 · Relative-offset networks, weighted fits and rigid-shift limits
Align a stack with explicit weights
27 minute lesson · 3 checks along the way
Your goal for this lessonFit inconsistent pair offsets, compare squared and absolute losses, and explain the roles of weights, reference and model limits.
In this lesson 4 sections · 3 checks
Read & understand
A stack contains more than reference pairs
A time series contains many images of the same region. Pairwise overlap measurements can connect those images in a network, including pairs that share neither endpoint with the chosen reference. Network enhanced spectral diversity combines those measurements to estimate relative image offsets. The documented SNAP operator estimates one rigid offset per image within the selected sub-swath. This can use well-connected pairs without pretending every individual estimate agrees.
Invent three images with offsets x0,x1,x2, measured in millipixels. Fix x0=0 as the reference. Pair measurements are b01=2, b02=5 and b12=2, with the convention bij estimates xj−xi. The first two suggest x1=2 and x2=5, but those offsets predict x2−x1=3, not the measured two. Define residuals r01=x1−2, r02=x2−5 and r12=x2−x1−2. No pair of offsets can make all three residuals zero. The task is to state how disagreement will be handled, not quietly discard it.
Read & understand
Squared loss spreads disagreement according to weights
An equal-weight squared-loss fit minimizes r01²+r02²+r12². Setting its two derivatives to zero gives 2x1−x2=0 and −x1+2x2=7. Solving yields x1=7/3 and x2=14/3 millipixels. The residuals are +1/3,−1/3,+1/3 millipixels, with squared sum 1/3 millipixel². The fitted network is consistent by construction, but its deviations from the measured edges remain visible.
Now stipulate weights (1,1/4,1) for edges 01,02,12. The objective is r01²+(1/4)r02²+r12². Its equations become 2x1−x2=0 and −x1+(5/4)x2=13/4. The solution is x1=13/6, x2=13/3, with residuals +1/6,−2/3,+1/6 millipixels and weighted objective 1/6 millipixel². The lower-weight edge absorbs more disagreement. These weights are an independent assumption of the example; the three inconsistent numbers alone do not prove which edge deserves less trust.
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Absolute loss can leave several equally good answers
An L1 fit minimizes the sum of absolute residuals instead of their squares. Equal weights give the same minimum value one millipixel at (x1,x2)=(2,4), (2,5) and (3,5), and at every point inside the triangle they form. To see the lower bound, note that r01−r02+r12=1 for every possible x1,x2. The sum of absolute residuals cannot be smaller than the absolute value of that signed sum. Each point in the triangle reaches the bound.
The equal-weight L2 solution lies inside this triangle too. Calling L1 robust does not identify a unique answer or a faulty edge. With the separately stipulated weights (1,1/4,1), the L1 objective instead has unique minimum at (2,4): residuals (0,−1,0), weighted cost 1/4 millipixel. Its objective equals one quarter of the unweighted absolute sum plus three quarters of |r01|+|r12|. Reaching the lower bound requires r01=r12=0, which fixes both offsets. The conclusion follows from the declared weights, not from discovering that edge 02 was wrong.
A fit need not be unique
Original inconsistent network, with all offsets in millipixels. Equal-weight L1 has minimum one throughout the gold triangle. Equal-weight L2 is unique at the blue point. The pink point uses L2 weights (1,1/4,1) in edge order 01,02,12. Its different answer follows from stipulated weights, not proof that any particular measured edge is faulty.
Open full-size diagram in a new tab: A fit need not be uniqueCheck 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
A relative fit cannot repair every kind of error
Change the reference to image 1 by subtracting the fitted x1 from every offset, including x0. Every predicted difference xj−xi remains unchanged. A reference fixes the common origin; it does not establish absolute timing truth. Connectivity also matters. If only edge 01 remains, it can constrain x1 relative to x0, but image 2 can take any offset without affecting that observation. Adding disconnected observations does not anchor the missing part of the network.
Finally, suppose two spatial patches need shifts zero and two millipixels. One equal-weight rigid shift of one millipixel leaves fit-minus-required residuals +1 and −1, respectively. More image-pair edges cannot make that rigid model represent two different spatial shifts. Physical along-track motion can contribute to apparent misregistration, so applying a correction requires scientific judgment about what signal should remain. Preserve the measured edges, weights, residuals and reference alongside the estimate. A neat fitted stack is useful evidence about a specified model, not proof that the ground stayed still or that every source of phase error disappeared.
Check 3 of 3
10 pointsUse the reading above. You can try again without losing points.
Put it together
Your lesson progress
Each check connects to a part of the story. Complete all 3 to earn your 25-point lesson bonus.
Explore further · Optional
Go to the source
Explore the evidence behind this lesson. These optional readings and videos open in a new tab.
- Read: Fattahi, Agram and Simons: A Network-Based Enhanced Spectral Diversity Approach for TOPS Time-Series AnalysisPDF page 4 formulates the relative image-offset network and least-squares estimation. The three-edge example and exact solutions here are original.
- Read: ESA SNAP 9.0.0: Enhanced Spectral Diversity operatorThe joint-coregistration documentation describes rigid offsets and L1/L2 options. The toy weights are not estimates of the operator’s internal uncertainty.
- Read: Yague-Martinez et al.: Interferometric Processing of Sentinel-1 TOPS DataPDF page 5 distinguishes stationary and nonstationary scenarios. Along-track physical displacement must not be silently reinterpreted as an instrument error.