NOC-MSM / pyBDY

pyBDY: a Python based regional NEMO model configuration toolbox.
GNU General Public License v3.0
7 stars 7 forks source link

Make us of NUMBA #87

Open jdha opened 2 years ago

jdha commented 2 years ago

A large proportion of the extract code is set up to vectorise 3D arrays. This is a legacy of the Matlab code (evidence from using Fortran-style indexing everywhere). To clean up the code, reduce the volume and make it more readable it maybe as efficient to create small subroutines of purely NumPy array calculations and decorate these with NUMBA's @jit