Double separation(source1,
source2)
Return the great-circle separation between two sources.
Source source1
Source source2
Double
- The great-circle distance between the two sources, in decimal degrees.
- Example 1:
- The following example displays the separation between the sun
and the current source, in degrees.
print $separation(sun, current)
- Context:
- This function calculates and returns the great-circle distance
between two sources on the sky. This could, for example, be used
to dynamically check whether a source was too close to the sun to
be observed.