If you are working on topography datasets shadows can introduce elevation error in your DEMs, and results are improved by masking shadow areas.