Tree derived type.
More...
|
subroutine | tree_alloc (tree, mpl, n, mask) |
| Allocation. More...
|
|
subroutine | tree_init (tree, lon, lat) |
| Initialization. More...
|
|
subroutine | tree_dealloc (tree) |
| Release memory. More...
|
|
subroutine | tree_find_nearest_neighbors (tree, lon, lat, nn, nn_index, nn_dist) |
| Find nearest neighbors using a KDTree. More...
|
|
subroutine | tree_count_nearest_neighbors (tree, lon, lat, sr, nn) |
| Count nearest neighbors using a tree. More...
|
|
|
real(kind_real), parameter | nn_inc = 1.5 |
|
◆ tree_alloc()
subroutine type_tree::tree_alloc |
( |
class(tree_type), intent(inout) |
tree, |
|
|
type(mpl_type), intent(inout) |
mpl, |
|
|
integer, intent(in) |
n, |
|
|
logical, dimension(n), intent(in), optional |
mask |
|
) |
| |
|
private |
Allocation.
- Parameters
-
[in,out] | mpl | MPI data |
[in] | n | Number of points |
Definition at line 49 of file type_tree.F90.
◆ tree_count_nearest_neighbors()
subroutine type_tree::tree_count_nearest_neighbors |
( |
class(tree_type), intent(in) |
tree, |
|
|
real(kind_real), intent(in) |
lon, |
|
|
real(kind_real), intent(in) |
lat, |
|
|
real(kind_real), intent(in) |
sr, |
|
|
integer, intent(out) |
nn |
|
) |
| |
|
private |
Count nearest neighbors using a tree.
- Parameters
-
[in] | lon | Point longitude (in radians) |
[in] | lat | Point latitude (in radians) |
[in] | sr | Spherical radius (in radians) |
[out] | nn | Number of nearest neighbors found |
Definition at line 263 of file type_tree.F90.
◆ tree_dealloc()
subroutine type_tree::tree_dealloc |
( |
class(tree_type), intent(inout) |
tree | ) |
|
|
private |
◆ tree_find_nearest_neighbors()
subroutine type_tree::tree_find_nearest_neighbors |
( |
class(tree_type), intent(in) |
tree, |
|
|
real(kind_real), intent(in) |
lon, |
|
|
real(kind_real), intent(in) |
lat, |
|
|
integer, intent(in) |
nn, |
|
|
integer, dimension(nn), intent(out) |
nn_index, |
|
|
real(kind_real), dimension(nn), intent(out), optional |
nn_dist |
|
) |
| |
|
private |
Find nearest neighbors using a KDTree.
- Parameters
-
[in] | lon | Point longitude (in radians) |
[in] | lat | Point latitude (in radians) |
[in] | nn | Number of nearest neighbors to find |
[out] | nn_index | Nearest neighbors index |
[out] | nn_dist | Nearest neighbors distance |
Definition at line 159 of file type_tree.F90.
◆ tree_init()
subroutine type_tree::tree_init |
( |
class(tree_type), intent(inout) |
tree, |
|
|
real(kind_real), dimension(tree%n), intent(in) |
lon, |
|
|
real(kind_real), dimension(tree%n), intent(in) |
lat |
|
) |
| |
|
private |
Initialization.
- Parameters
-
[in] | lon | Points longitudes (in radians) |
[in] | lat | Points latitudes (in radians) |
Definition at line 90 of file type_tree.F90.
◆ nn_inc
real(kind_real), parameter type_tree::nn_inc = 1.5 |