dispos

ginga.util.wcs.dispos(dra0, decd0, dra, decd)[source]

Compute distance and position angle solving a spherical triangle (no approximations).

Source/credit: Skycat Author: A.P. Martinez

Parameters:

dra0 : float

Center RA in decimal degrees.

decd0 : float

Center DEC in decimal degrees.

dra : float

Point RA in decimal degrees.

decd : float

Point DEC in decimal degrees.

Returns:

phi : float

Phi in degrees (East of North).

dist : float

Distance in arcmin.