Returns float holding great circle distance between two points (ra1,dec1) & (ra2,dec2). |
The great circle distance is in arcmins, the ras and decs are in degrees. Sample call to calculate the great circle distance between (87.5°,10°) and (88.4°,10.3°): SELECT dbo.fGreatCircleDist(87.5,10,88.4,10.3) => 56.1198 |
Name | Type | Length | inout | pnum |
@ra1 | float | 8 | input | 1 |
@dec1 | float | 8 | input | 2 |
@ra2 | float | 8 | input | 3 |
@dec2 | float | 8 | input | 4 | float | 8 | output | 1 |