Skip to content

Instantly share code, notes, and snippets.

View vivekastro's full-sized avatar

vivek vivekastro

  • Indian Institute of Astrophysics
  • Bangalore, India
View GitHub Profile
@vivekastro
vivekastro / pyspherematch.py
Created December 11, 2017 12:08 — forked from eteq/pyspherematch.py
Match two sets of on-sky coordinates to each other. I.e., find nearest neighbor of one that's in the other. Similar in purpose to IDL's spherematch, but totally different implementation. Requires numpy and scipy.
"""
Match two sets of on-sky coordinates to each other.
I.e., find nearest neighbor of one that's in the other.
Similar in purpose to IDL's spherematch, but totally different implementation.
Requires numpy and scipy.
"""
from __future__ import division
import numpy as np