Skip to content
Snippets Groups Projects
Commit ee2d5ac2 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

pointsearch_healpix: added m_srcCoords for KnnMethod::gaussWeighted

parent 964e85b2
No related branches found
No related tags found
1 merge request!283M214003/develop
......@@ -54,6 +54,18 @@ public:
for (size_t i = 0; i < numIndices; ++i) hp_index_to_lonlat(m_hpParams, indices[i], &lons[i], &lats[i]);
store_distance_healpix(searchRadius, pointLL, knnData, numIndices, indices, lons, lats);
if (knnData.m_method == KnnMethod::gaussWeighted)
{
auto numNeighbors = knnData.m_numNeighbors;
if (numNeighbors > knnData.m_srcCoords.size()) knnData.m_srcCoords.resize(numNeighbors);
for (size_t i = 0; i < numNeighbors; ++i)
{
double lon, lat;
hp_index_to_lonlat(m_hpParams, knnData.m_indices[i], &lon, &lat);
gcLLtoXYZ(lon, lat, knnData.m_srcCoords[i]);
}
}
}
private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment