some scripts added to aid analysis of residual sky