Near the equator
Within about ten degrees of the equator, the sun passes north of a tile in part of the year and
south of it in the rest. Per-image c then differs between the two sides, and with Landsat 5's
drifting overpass the mix changes over the years. One curve c(solar zenith) cannot follow that,
so scsc-stack would bias the trends of east- and west-facing slopes there, while per-image SCS+C
follows each image's c.
topocorr detects this case from the sun azimuths of the model's images:
from topocorr.stack import sun_sides
model.sun_both_sides # True when each side holds at least 5 % of the images
sun_sides(azimuths) # (images with the sun north of the tile, images with it south)
When it is true:
correct(images, model)warns and uses per-image SCS+C instead ofscsc-stack, and per-image C instead ofc-stack;se-stack(per-image slopes) is not affected;diagnosewarns and recordstc_sun_both_sides = 1on its output; its drift estimate rests on the one curve, so read it with care there;comparewarns and recordstc_sun_both_sides = 1in its table; it applies every method as named, so compare the stack methods with the per-image ones there.
The Tapantí notebook (Costa Rica, 9.8° N) shows the case step by step.