Open jdduh opened 8 years ago
Ugh! I am not able to recreate this error. Can you post the AOI that you are working with to BASINS?
I was able to replicate this using the Boise_R_nr_Twin_Springs_11022016. The underlying error is what it says in the first error message. There is not enough memory available to filter when you get to the third iteration. I tried re-initializing the RasterNeighborhoodOp on each pass through the loop but that didn't help.
I did find a problem with the error handling for templates so it no longer tries to create the AOI if a template rule fails which eliminates the final error message.
The only thing I can think of that "might" work is to switch from the RasterNeighborhoodOp to the GP filter tool. Maybe it uses less memory? It will definitely be slower, unfortunately.
@jdduh Let me know how you'd like to proceed.
So, this might be related to the ArcObjects update when we moved from 10.1 to 10.2. The tool worked without any memory issue in 10.1. Yes, please switch it to GP tool.
I had forgotten that this code gave us problems earlier. It may be related to 10.2. I suspect it is also related to the size of the dataset. Fortunately, the code was already written to use the GP tool so I just had to re-enable it and test it. It is slower, but it does work. This will be in the next BAGIS-H release.
Here is the sequence of error messages. I ran the aspect template rule, but the error occurred in other template rules as well. BAGIS-H is able to create the HRU layers if the iteration is by-passed (i.e., set to 0).