Some work needs to be done in profiling the code. Though I believe already that there are some serious time losses in the get_upper_bound_climatology function, it would be great to know where exactly we are being slowed down. Right now, precipitation runs quite rapidly. Shortwave radiation (rsds) though is a variable which gets scaled to the interval [0,1] before running bias adjustment. This happens using a running window, and hence is probably a choke point in the code. It would be great to get this to run fast because it is surely not optimized. Currently running nearly 10x slower (!!) where that really should be less than 2x easily.
Some work needs to be done in profiling the code. Though I believe already that there are some serious time losses in the
get_upper_bound_climatologyfunction, it would be great to know where exactly we are being slowed down. Right now, precipitation runs quite rapidly. Shortwave radiation (rsds) though is a variable which gets scaled to the interval [0,1] before running bias adjustment. This happens using a running window, and hence is probably a choke point in the code. It would be great to get this to run fast because it is surely not optimized. Currently running nearly 10x slower (!!) where that really should be less than 2x easily.