Mario Frasca - 2006-12-04

Logged In: YES
user_id=512199
Originator: YES

previous files are in
/SCIA/share/SDMF/2.4/SmoothMask/ASCII/

a way to compare a "new" mask with an "old" mask is as follows:

export orbit=<orbit>
./query_smoothmaskdb.py <options> --noheader --end-orbit $orbit --output new-$orbit.mask; grep -v "^#" `ls /SCIA/share/SDMF/2.4/SmoothMask/ASCII/*_${orbit}_????.N1.mask | head -1` > old-$orbit.mask

then compare the two files, maybe this way:
for b in `cmp -l old-$orbit.mask new-$orbit.mask | cut -b 0-5`; do echo $(( (b-1) / 2 )); done

you will get the list of differing pixels in the two masks.

add a pipe at the end to count differences (| wc) or to check all of them (| less)