Barak 0.3.2 documentation

barak.coord.ang_sep

«  barak.convolve.convolve_window   ::   Contents   ::   barak.coord.dec2s  »

barak.coord.ang_sep

barak.coord.ang_sep(ra1, dec1, ra2, dec2)[source]

Returns the angular separation in degrees on the celestial sphere between two RA/Dec coordinates.

Parameters :

ra1, dec1 : floats or arrays of floats, shape (N,)

First set of coordinates in degrees.

ra2, dec2 : floats or arrays of floats, shape (M,)

Second set of coordinates in degrees.

Returns :

separation_in_degrees : array of floats, shape (N, M)

If N or M is 1, that dimension is suppressed.

«  barak.convolve.convolve_window   ::   Contents   ::   barak.coord.dec2s  »