BrownDwarf / gollum

A microservice for programmatic access to precomputed synthetic spectral model grids in astronomy
https://gollum-astro.readthedocs.io/
MIT License
21 stars 5 forks source link

A function for finding the closest grid point in a lattice (3 dimensional space) #34

Closed Jiayi-Cao closed 2 years ago

Jiayi-Cao commented 2 years ago

The sonora.py code currently takes in effective temperature, surface gravity, and metallicity as grid points in a three dimensional space. However, the points are in a jagged array (#31 ), so we need to create a function to find the nearest grid point whenever a grid point that doesn't exist is found.

gully commented 2 years ago

In discussion with @Jiayi-Cao today, we agreed it would be useful to test this function. Originally in a Jupyter notebook, but possibly in a standalone unit test.