Safeguarding Digital Pastures: Managing User Errors in Terrain Analysis
This guide outlines strategies for keeping your "sheep" in the digital pasture - ensuring data integrity while navigating the challenges of user error and complex Digital Elevation Models (DEMs). Built on foundational terrain analysis code, it emphasizes the importance of properly structuring data into arrays and avoiding pitfalls with pixel values. Learn to recognize common errors, implement effective error handling, and maintain clarity in your data types. With diligent practice, you can streamline your analysis and wholly embrace the world of digital terrain without letting your data escape!
Safeguarding Digital Pastures: Managing User Errors in Terrain Analysis
E N D
Presentation Transcript
Goal: Keep the sheep inside his digital pasture, without falling victim to the predators of user error and a wolf-like DEM. What Glory? Tricks: Start with code written by the Warlord of terrain analysis. Once you get your data into arrays, it is a non-stop party! Look at pixel value of fdr 1st, so you can avoid the values that don’t follow the 2^(n-1) naming scheme (could also be handled by not using an array to translate them) Don’t let your sheep out of his pasture! KEEP HIM AWAY FROM THE YELLOW FENCE If you use raw DEM for fdr, watch out for pixels that flow into each other Learn to error handle! – Message Boxes and On Error GoTo Mind your Dims/data types – make sure you have declared them as you intended Run your code 100 times until you manage to escape from the ole’ maze