CartoDB / quadbin-py

Other
1 stars 2 forks source link

Add numpy API #4

Open Jesus89 opened 2 years ago

Jesus89 commented 2 years ago

Add other optional API I/O interface numpy to improve performance when using arrays. Add the API code in quadbin/api/.

Note: check https://github.com/uber/h3-py/tree/master/src/h3/api

cayetanobv commented 2 years ago

Hi @Jesus89 , @vehrka and I are using currently in production environment the vectorized version (numpy) of some of these functions. Actually, most of them are pretty easy to implement (scalar and vector functions can be the same). You can see here what we did: https://github.com/CartoDB/raster2qk/blob/master/carto/raster/tools/qk_vect_utils.py