NREL / rex

REsource eXtraction Tool (rex)
https://nrel.github.io/rex
BSD 3-Clause "New" or "Revised" License
19 stars 10 forks source link

Update regridder.py #178

Closed bnb32 closed 1 month ago

bnb32 commented 1 month ago

Regridding high res GWA data to the wtk grid shows that using vindex is ~2x slower than using np.concatenate and reshaping.

https://docs.dask.org/en/latest/generated/dask.array.Array.vindex.html mentions fewer optimizations and potential for slow down. Since we dont need fancy indexing here we should revert.