Exemple #1
0
 def _c_min_geodetic_distance(mlons, mlats, slons, slats):
     mlons, mlats, slons, slats = _prepare_coords(mlons, mlats,
                                                  slons, slats)
     mdepths = sdepths = numpy.array(0.0)
     return _geodetic_speedups.min_distance(mlons, mlats, mdepths,
                                            slons, slats, sdepths,
                                            indices=False)
Exemple #2
0
 def _c_min_distance(mlons, mlats, mdepths,
                     slons, slats, sdepths, indices=False):
     assert not indices or mlons.ndim > 0
     mlons, mlats, slons, slats = _prepare_coords(mlons, mlats,
                                                  slons, slats)
     mdepths = numpy.array(mdepths, float)
     sdepths = numpy.array(sdepths, float)
     assert mlons.shape == mdepths.shape
     assert slons.shape == sdepths.shape
     return _geodetic_speedups.min_distance(mlons, mlats, mdepths,
                                            slons, slats, sdepths, indices)
Exemple #3
0
 def _c_min_geodetic_distance(mlons, mlats, slons, slats):
     mlons, mlats, slons, slats = _prepare_coords(mlons, mlats, slons,
                                                  slats)
     mdepths = sdepths = numpy.array(0.0)
     return _geodetic_speedups.min_distance(mlons,
                                            mlats,
                                            mdepths,
                                            slons,
                                            slats,
                                            sdepths,
                                            indices=False)
Exemple #4
0
 def _c_min_distance(mlons,
                     mlats,
                     mdepths,
                     slons,
                     slats,
                     sdepths,
                     indices=False):
     assert not indices or mlons.ndim > 0
     mlons, mlats, slons, slats = _prepare_coords(mlons, mlats, slons,
                                                  slats)
     mdepths = numpy.array(mdepths, float)
     sdepths = numpy.array(sdepths, float)
     assert mlons.shape == mdepths.shape
     assert slons.shape == sdepths.shape
     return _geodetic_speedups.min_distance(mlons, mlats, mdepths, slons,
                                            slats, sdepths, indices)