I'm working with the kinematic wave method to determine the runoff of a basin, I am using the explicit method for resolution (The Lax-Wendroff scheme):
For example, by using the code in a basin of 625 km2 (the idea is to use the program in much larger basins) with 62000 pixels (or cells) each iteration the program lasts approximately 15 seconds, if needed aproximadante for convergence between 1000 and 10 000 iterations, the program requires a lot of time to perform the calculation (between 4 and 40 hours)
I'm working with script code in python (im new in this), in ArcGIS, for some processes from raster layers, my code takes the raster files, create arrays of data(NumPyArray), manipulate the data and then creates a rater output with the results. My problem is, this process is very slow. I'm working with basins and therefore a large amount of data in each array. I want to know if there is some other way to optimize my code or if this process is best to carry it out with the use of SQL tables. In this case, i dont know how to use the data in raster layers with SQL tables, please help
This is the logic of my program
أكثر...

For example, by using the code in a basin of 625 km2 (the idea is to use the program in much larger basins) with 62000 pixels (or cells) each iteration the program lasts approximately 15 seconds, if needed aproximadante for convergence between 1000 and 10 000 iterations, the program requires a lot of time to perform the calculation (between 4 and 40 hours)
I'm working with script code in python (im new in this), in ArcGIS, for some processes from raster layers, my code takes the raster files, create arrays of data(NumPyArray), manipulate the data and then creates a rater output with the results. My problem is, this process is very slow. I'm working with basins and therefore a large amount of data in each array. I want to know if there is some other way to optimize my code or if this process is best to carry it out with the use of SQL tables. In this case, i dont know how to use the data in raster layers with SQL tables, please help
This is the logic of my program
أكثر...