benjaminpope / drpangloss

the best of all possible interferometry models
https://benjaminpope.github.io/drpangloss/
MIT License
2 stars 0 forks source link

coordinate transform #16

Open benjaminpope opened 4 months ago

benjaminpope commented 4 months ago

Trivial issue here - I want to add to_angular and to_cartesian methods to BinaryModel* to convert between them. Seeking feedback on whether we want this method to return an object, a dict (ie {'dra':...,} or {'sep':...}) or just an array [dra, ddec, flux]. Mainly want this to pass trivially from a grid search in cartesian to MCMC in angular coordinates.

Would probably also be a way easier way to do the azimuthal averaging.