informatics-lab / precip_rediagnosis

Project to use ML to re-diagnose precipitation fields from ensemble model fields
0 stars 0 forks source link

Use numba to speed up radar regridding operation #74

Open stevehadd opened 2 years ago

stevehadd commented 2 years ago

following on from #3 , it is clear that we need to speed up the custom radar regrdding (to match the mogreps-g grid) as the current python for loop approach is VERY slow. Numba might be a good option for that, but will take a little refactoring so I'm putting this is a spearate issue.

Basically, we should just need to pull out the regridding function https://numba.pydata.org/

stevehadd commented 2 years ago

the vectorise decorator plus numpy ufuncs might be useful for our purposes