original_docstring: Compute the great circle distance from poistion 1 to position 2.
  
      Inputs are expected in decimal degrees. Returns great circle distance in decimal degrees.
      Accurate for small separations. This routine uses the Vincenty equation, which also handles
      antipodal point correctly.
docstring: Compute the great circle distance from poistion 1 to position 2.
  Inputs are expected in decimal degrees. Returns great circle distance in decimal degrees.
  Accurate for small separations. This routine uses the Vincenty equation, which also handles
  antipodal point correctly.
docstring_tokens: Compute the great circle distance from poistion 1 to position 2 . Inputs are expected in decimal degrees . Returns great circle distance in decimal degrees . Accurate for small separations . This routine uses the Vincenty equation which also handles antipodal point correctly .
code: def greatCircleDistance(ra1, dec1, ra2, dec2):
      """Compute the great circle distance from poistion 1 to position 2.
  
      Inputs are expected in decimal degrees. Returns great circle distance in decimal degrees.
      Accurate for small separations. This routine uses the Vincenty equation, which also handles
      antipodal point correctly."""
      phi1 = dec1 * np.pi / 180.
      lam1 = ra1 * np.pi / 180.
      phi2 = dec2 * np.pi / 180.
      lam2 = ra2 * np.pi / 180.
      deltalam = np.abs(lam1 - lam2)
      n1 = (np.cos(phi2) * np.sin(deltalam))**2
      n2 = (np.cos(phi1) * np.sin(phi2) -
            np.sin(phi1) * np.cos(phi2) * np.cos(deltalam))**2
      num = np.sqrt(n1 + n2)
      d1 = np.sin(phi1) * np.sin(phi2)
      d2 = np.cos(phi1) * np.cos(phi2) * np.cos(deltalam)
      denom = d1 + d2
      return np.arctan2(num, denom) * 180. / np.pi
code_tokens: def greatCircleDistance ( ra1 , dec1 , ra2 , dec2 ) : phi1 = dec1 * np . pi / 180. lam1 = ra1 * np . pi / 180. phi2 = dec2 * np . pi / 180. lam2 = ra2 * np . pi / 180. deltalam = np . abs ( lam1 - lam2 ) n1 = ( np . cos ( phi2 ) * np . sin ( deltalam ) ) ** 2 n2 = ( np . cos ( phi1 ) * np . sin ( phi2 ) - np . sin ( phi1 ) * np . cos ( phi2 ) * np . cos ( deltalam ) ) ** 2 num = np . sqrt ( n1 + n2 ) d1 = np . sin ( phi1 ) * np . sin ( phi2 ) d2 = np . cos ( phi1 ) * np . cos ( phi2 ) * np . cos ( deltalam ) denom = d1 + d2 return np . arctan2 ( num , denom ) * 180. / np . pi
short_docstring: Compute the great circle distance from poistion 1 to position 2.
short_docstring_tokens: Compute the great circle distance from poistion 1 to position 2 .
comment: """Compute the great circle distance from poistion 1 to position 2.
  
      Inputs are expected in decimal degrees. Returns great circle distance in decimal degrees.
      Accurate for small separations. This routine uses the Vincenty equation, which also handles
      antipodal point correctly."""