limit_change
Description
limit_change (written by A. Y. / JCU, May 1990) is a post-processing filter in the Chavez (1986) Landsat destriping pipeline. It compares an original ACRES image (<in>) with its high/low-pass reconstructed destriped version (<in>.des from add_hilo) and reverts pixels whose radiometric change exceeds a user-specified threshold (-limit), writing the result to <in>.des_limit. This prevents filter ringing near sharp coastlines, reefs, or cloud edges.
CLI Options & Usage
limit_change -in <acres_prefix> -limit <thresh>
-in <acres_prefix>: Base filename; opens<acres_prefix>and<acres_prefix>.desand creates<acres_prefix>.des_limit.-limit <thresh>: Threshold against whichabs(orig_pixel + des_pixel)is compared.
Algorithm
- Reads the 90-byte ACRES header from
<acres_prefix>, copies it to<acres_prefix>.des_limit, and advances<acres_prefix>.despast its 90-byte header. - For every pixel across
row à col, ifabs(orig + des) < limit, writes the destriped pixeldes; otherwise restores the original pixelorig.