Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdo
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
cdo
Commits
98073bd3
Commit
98073bd3
authored
2 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
rename hp_lonlat_to_healpixl() to hp_lonlat_to_index().
parent
8a426006
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/mpim_grid/grid_healpix.cc
+1
-1
1 addition, 1 deletion
src/mpim_grid/grid_healpix.cc
src/mpim_grid/grid_healpix.h
+2
-2
2 additions, 2 deletions
src/mpim_grid/grid_healpix.h
src/remap_point_search.cc
+1
-1
1 addition, 1 deletion
src/remap_point_search.cc
with
4 additions
and
4 deletions
src/mpim_grid/grid_healpix.cc
+
1
−
1
View file @
98073bd3
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/mpim_grid/grid_healpix.h
+
2
−
2
View file @
98073bd3
...
...
@@ -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
This diff is collapsed.
Click to expand it.
src/remap_point_search.cc
+
1
−
1
View file @
98073bd3
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment