tsssss / geopack

Python version of geopack and Tsyganenko models
MIT License
30 stars 12 forks source link

Feature Request: Evaluate models at multiple points #13

Open ddasilva opened 1 year ago

ddasilva commented 1 year ago

It would be great to have the ability to evaluate the Tsyganenko models at multiple points using vectorized processing. For example, evaluating B for every point on a grid. Some scientific use cases:

  1. Model comparison in the global perspective
  2. Evaluating the models on a grid, and then plugging the result into other code that uses gridded output

This should be possible if operations are all done in a way that supports arrays in addition to individual points. Right now, I can iterate on every point in the grid, but it's very slow to do it this way because the Python interpreter is doing a lot of unnecessary work.

tsssss commented 1 year ago

This is an excellent suggestion. I'll find some time this summer (but unfortunately no guarantee) to do a significant upgrade, including improving efficiency and adding functions as you and others have suggested.