lcx366 / ATMOS

A python package to estimate the atmosphere parameters
MIT License
32 stars 5 forks source link

Performance improvements for nrlmsis00 #4

Open ahmed-f-alrefaie opened 1 year ago

ahmed-f-alrefaie commented 1 year ago

I've optimized some portions of the code. In particular, the nrlmsis00_data function now uses _lrucache, which is only loaded once, giving a 5x performance improvement.

Additionally, I've migrated globe7 to use pythons inbuilt math library variants as they perform better on scalars than NumPy