eb08d1ea38ef34b757b7a5b0736ce92e2a4b0fb0,pykrige/core.py,,great_circle_distance,#Any#Any#Any#Any#,58

Before Change


    lat1 = np.array(lat1)*np.pi/180.0
    lat2 = np.array(lat2)*np.pi/180.0
    d = np.cos((lon1-lon2)*np.pi/180.0)*np.cos(lat1)*np.cos(lat2) \
        + np.sin(lat1)*np.sin(lat2)
    // Angle is arccos of euclidean dot product. Avoid errors caused
    // by numerics (possibly d>1.0 or d<-1.0, resulting in NAN. This
    // can, however, only be caused by numerical errors for real
    // lat/lon):
    d[d>1.0] = 1.0
    d[d<-1.0]=-1.0
    return 180.0/np.pi*np.arccos(d)

def euclid3_to_great_circle(euclid3_distance):
    
    Convert euclidean distance between points on a unit sphere to

After Change


    // Formula can be obtained from [2] combining eqns. (14)-(16)
    // for spherical geometry (f=0).
    
    return 180.0/np.pi*np.arctan2(
               np.sqrt((c2*np.sin(dlon))**2 + 
                       (c1*s2-s1*c2*cd)**2),
               s1*s2+c1*c2*cd)

def euclid3_to_great_circle(euclid3_distance):
    
    Convert euclidean distance between points on a unit sphere to
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: bsmurphy/PyKrige
Commit Name: eb08d1ea38ef34b757b7a5b0736ce92e2a4b0fb0
Time: 2017-02-03
Author: malte.ziebarth@fmvkb.de
File Name: pykrige/core.py
Class Name:
Method Name: great_circle_distance


Project Name: rodluger/starry
Commit Name: 4e5c97a84c22b6beb953e34a0f18147f7e668f88
Time: 2019-09-05
Author: rodluger@gmail.com
File Name: starry/ops/ops.py
Class Name: Ops
Method Name: align


Project Name: utiasSTARS/liegroups
Commit Name: 1115322dc2fb896b254b71fff79a8453f89cd963
Time: 2017-07-31
Author: clement.leopold@gmail.com
File Name: liegroups/so3.py
Class Name: SO3
Method Name: log