Added branch for estimating TTD by boundary propagation and including
code to calculate a wet mask