TECA
The Toolkit for Extreme Climate Analysis
teca_derived_quantity_numerics::point_wise_average Struct Reference

#include <teca_derived_quantity_numerics.h>

Collaboration diagram for teca_derived_quantity_numerics::point_wise_average:
[legend]

Public Member Functions

 point_wise_average (const std::string &v0, const std::string &v1, const std::string &avg)
 
const_p_teca_dataset operator() (unsigned int, const std::vector< const_p_teca_dataset > &in_data, const teca_metadata &)
 

Public Attributes

std::string m_v0
 
std::string m_v1
 
std::string m_avg
 

Detailed Description

an execute function designed for use with teca_derived_quantity on a teca_mesh. shallow copies the input and computes the point-wise average of the named variables.

for every i avg[i] = (v0[i] + v1[i])/2


The documentation for this struct was generated from the following file: