duncanwp / python_for_climate_scientists

A python course intended to provide a thorough grounding for those working in the earth sciences

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do optimisation section

duncanwp opened this issue · comments

  • Optimization overview (Only as needed, be sure to use numpy properly, slots?)
  • Multiprocessing / threading
  • Profiling
  • More involved options: simple mpi4py, numba, cython, …

The core example will be selecting a region of the satellite data. Start with a loop over files then a loop over points, move to a numpy where, then move to shapely.

Note that the file loop is actually not too bad. I'll have to think of a region which is relatively simple but couldn't easily be done with subset...