Open phargogh opened 4 years ago
Note to self: for yet another rebuild to be worth it, the rewrite should have a tangible benefit to us, either in terms of performance or in terms of maintenance.
Because it's still a timeseries model, performance improvements are unlikely unless we make the intermediate rasters optional.
Would it be easier to maintain a closed-form version of this? I'm not so sure.
I'm documenting this while it's on my mind as we're nearing the end of #316 , #209 , will full knowledge that it might not be worth addressing. The recently-completed iteration of Coastal Blue Carbon takes a timeseries approach to the model, where (for the most part) each year is computed in sequence and (again, for the most part) each output raster is represented as a task. The advantages of this approach include:
One of the drawbacks of this approach is that it requires a lot of bookkeeping that might not be necessary. It turns out that all of the math of the model implies that a closed-form solution is possible, though it doesn't eliminate the need for some degree of bookkeeping according to transitions. Here's my reasoning:
In all honesty, it's possible that this is just a fun idea and not something that ends up being practical because of how the model handles the various transition events and a true, general-case closed-form solution might not be possible or might be harder to express and debug. If this ends up being the case, then implementing this proposed change might not be worth it at all.