bes  Updated for version 3.20.10
functions::StareSubsetArrayFunction Class Reference
Collaboration diagram for functions::StareSubsetArrayFunction:
Collaboration graph

Public Member Functions

template<class T >
void build_masked_data (Array *dependent_var, const vector< STARE_ArrayIndexSpatialValue > &dep_var_stare_indices, const vector< STARE_ArrayIndexSpatialValue > &target_s_indices, T mask_value, unique_ptr< Array > &result)
 Mask the data in dependent_var using the target_s_indices. More...
 

Static Public Member Functions

template<class T >
static void build_masked_data (libdap::Array *dependent_var, const std::vector< STARE_ArrayIndexSpatialValue > &dep_var_stare_indices, const std::vector< STARE_ArrayIndexSpatialValue > &target_s_indices, T mask_value, unique_ptr< libdap::Array > &result)
 
static libdap::BaseType * stare_subset_array_dap4_function (libdap::D4RValueList *args, libdap::DMR &dmr)
 

Friends

class StareFunctionsTest
 

Detailed Description

Definition at line 157 of file StareFunctions.h.

Member Function Documentation

◆ build_masked_data()

template<class T >
void functions::StareSubsetArrayFunction::build_masked_data ( Array *  dependent_var,
const vector< STARE_ArrayIndexSpatialValue > &  dep_var_stare_indices,
const vector< STARE_ArrayIndexSpatialValue > &  target_s_indices,
mask_value,
unique_ptr< Array > &  result 
)

Mask the data in dependent_var using the target_s_indices.

Copy values from dependent_var to result that lie at the intersection of the target and dataset stare indices. The libdap::Array 'result' is modified.

Template Parameters
TThe element type of the dependent_var and result Arrays
Parameters
dependent_varThe dataset values to subset/mask
dep_var_stare_indicesThe stare indices that define the spatial extent of these data
target_s_indicesThe stare indices that define the spatial extent of the region of interest
resultA value-result parameter. The masked dependent_var data is returned using this libdap::Array
Todo:
FIXME jhrg 6/17/21

Definition at line 292 of file StareFunctions.cc.


The documentation for this class was generated from the following files: