SABER
tools_samp Module Reference

Sampling functions. More...

Functions/Subroutines

subroutine, public initialize_sampling (mpl, rng, area, n_loc, lon_loc, lat_loc, mask_loc, rh_loc, loc_to_glb, ntry, nrep, ns2_glb, sam2_glb, fast, verbosity, n_uni, uni_to_loc, tree_uni)
 Intialize sampling. More...
 
subroutine, public initialize_sampling_local (mpl, area, n_loc, n_loc_eff, n_glb_eff, lon_loc, lat_loc, mask_loc, rh_loc, loc_to_glb, ns2_glb, ns1_glb_eff, lon1_glb_eff, lat1_glb_eff, rh1_glb_eff, sam1_glb_eff, verbosity, n_uni, uni_to_loc, tree_uni)
 Intialize sampling, local, based on ATLAS octahedral grid. More...
 
subroutine, public initialize_sampling_global (mpl, rng, ns1_glb_eff, lon1_glb_eff, lat1_glb_eff, rh1_glb_eff, sam1_glb_eff, ntry, nrep, ns2_glb, sam2_glb, fast, verbosity)
 Intialize sampling, global. More...
 

Detailed Description

Sampling functions.

Function/Subroutine Documentation

◆ initialize_sampling()

subroutine, public tools_samp::initialize_sampling ( type(mpl_type), intent(inout)  mpl,
type(rng_type), intent(inout)  rng,
real(kind_real), intent(in)  area,
integer, intent(in)  n_loc,
real(kind_real), dimension(n_loc), intent(in)  lon_loc,
real(kind_real), dimension(n_loc), intent(in)  lat_loc,
logical, dimension(n_loc), intent(in)  mask_loc,
real(kind_real), dimension(n_loc), intent(in)  rh_loc,
integer, dimension(n_loc), intent(in)  loc_to_glb,
integer, intent(in)  ntry,
integer, intent(in)  nrep,
integer, intent(in)  ns2_glb,
integer, dimension(ns2_glb), intent(out)  sam2_glb,
logical, intent(in), optional  fast,
logical, intent(in), optional  verbosity,
integer, intent(in), optional  n_uni,
integer, dimension(:), intent(in), optional  uni_to_loc,
type(tree_type), intent(in), optional  tree_uni 
)

Intialize sampling.

Parameters
[in,out]mplMPI data
[in,out]rngRandom number generator
[in]areaGlobal domain area
[in]n_locNumber of points (local)
[in]lon_locLongitudes (local)
[in]lat_locLatitudes (local)
[in]mask_locMask (local)
[in]rh_locHorizontal support radius (local)
[in]loc_to_glbLocal to global index
[in]ntryNumber of tries
[in]nrepNumber of replacements
[in]ns2_glbNumber of samplings points (global)
[out]sam2_glbHorizontal sampling index (global)
[in]fastFast sampling flag
[in]verbosityVerbosity flag
[in]n_uniUniverse size
[in]uni_to_locUniverse to local index
[in]tree_uniUniverse KD-tree

Definition at line 32 of file tools_samp.F90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialize_sampling_global()

subroutine, public tools_samp::initialize_sampling_global ( type(mpl_type), intent(inout)  mpl,
type(rng_type), intent(inout)  rng,
integer, intent(in)  ns1_glb_eff,
real(kind_real), dimension(ns1_glb_eff), intent(in)  lon1_glb_eff,
real(kind_real), dimension(ns1_glb_eff), intent(in)  lat1_glb_eff,
real(kind_real), dimension(ns1_glb_eff), intent(in)  rh1_glb_eff,
integer, dimension(ns1_glb_eff), intent(in)  sam1_glb_eff,
integer, intent(in)  ntry,
integer, intent(in)  nrep,
integer, intent(in)  ns2_glb,
integer, dimension(ns2_glb), intent(out)  sam2_glb,
logical, intent(in), optional  fast,
logical, intent(in), optional  verbosity 
)

Intialize sampling, global.

Parameters
[in,out]mplMPI data
[in,out]rngRandom number generator
[in]ntryNumber of tries
[in]nrepNumber of replacements
[in]ns2_glbNumber of samplings points (global)
[out]sam2_glbHorizontal sampling index (global)
[in]fastFast sampling flag
[in]verbosityVerbosity flag

Definition at line 511 of file tools_samp.F90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialize_sampling_local()

subroutine, public tools_samp::initialize_sampling_local ( type(mpl_type), intent(inout)  mpl,
real(kind_real), intent(in)  area,
integer, intent(in)  n_loc,
integer, intent(in)  n_loc_eff,
integer, intent(in)  n_glb_eff,
real(kind_real), dimension(n_loc), intent(in)  lon_loc,
real(kind_real), dimension(n_loc), intent(in)  lat_loc,
logical, dimension(n_loc), intent(in)  mask_loc,
real(kind_real), dimension(n_loc), intent(in)  rh_loc,
integer, dimension(n_loc), intent(in)  loc_to_glb,
integer, intent(in)  ns2_glb,
integer, intent(out)  ns1_glb_eff,
real(kind_real), dimension(:), intent(out), allocatable  lon1_glb_eff,
real(kind_real), dimension(:), intent(out), allocatable  lat1_glb_eff,
real(kind_real), dimension(:), intent(out), allocatable  rh1_glb_eff,
integer, dimension(:), intent(out), allocatable  sam1_glb_eff,
logical, intent(in), optional  verbosity,
integer, intent(in), optional  n_uni,
integer, dimension(:), intent(in), optional  uni_to_loc,
type(tree_type), intent(in), optional  tree_uni 
)

Intialize sampling, local, based on ATLAS octahedral grid.

Parameters
[in,out]mplMPI data
[in]areaGlobal domain area
[in]n_locNumber of points (local)
[in]n_loc_effNumber of points (local, effective)
[in]n_glb_effNumber of points (global, effective)
[in]lon_locLongitudes (local)
[in]lat_locLatitudes (local)
[in]mask_locMask (local)
[in]rh_locHorizontal support radius (local)
[in]loc_to_glbLocal to global index
[in]ns2_glbNumber of samplings points (global)
[in]verbosityVerbosity flag
[in]n_uniUniverse size
[in]uni_to_locUniverse to local index
[in]tree_uniUniverse KD-tree

Definition at line 168 of file tools_samp.F90.

Here is the caller graph for this function: