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

rename hp_lonlat_to_healpixl() to hp_lonlat_to_index().

parent 8a426006
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ hp_xy_to_xy(int64_t index, int nside)
}
int64_t
hp_lonlat_to_healpixl(HpOrder order, int nside, double xval, double yval)
hp_lonlat_to_index(HpOrder order, int nside, double xval, double yval)
{
int64_t (*convert_order)(int64_t index, int nside);
// clang-format off
......
......@@ -12,10 +12,10 @@ enum class HpOrder
};
HpOrder hp_get_order(const char *orderName);
int64_t hp_lonlat_to_healpixl(HpOrder order, int nside, double xval, double yval);
int64_t hp_lonlat_to_index(HpOrder order, int nside, double xval, double yval);
void hp_index_to_lonlat(HpOrder order, int nside, int64_t index, double *xval, double *yval);
void hp_generate_coords(HpOrder order, int nside, int64_t nvals, double *xvals, double *yvals, bool withBounds, double *xbounds,
double *ybounds);
void hp_index_to_lonlat(HpOrder order, int nside, int64_t index, double *xval, double *yval);
void hp_bilinear_interpolate_weights(double lon, double lat, size_t *indices, double *weights, int nside, HpOrder order);
#endif
......@@ -129,7 +129,7 @@ gridSearchPointHealpix(GridPointSearch &gps, double plon, double plat, knnWeight
knnWeights.initAddr();
knnWeights.initDist();
auto index = hp_lonlat_to_healpixl(gps.order, gps.nside, plon, plat);
auto index = hp_lonlat_to_index(gps.order, gps.nside, plon, plat);
size_t src_add = index;
store_distance_healpix(gps, plon, plat, knnWeights, 1, &src_add);
......
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