|
TECA
The Toolkit for Extreme Climate Analysis
|
#include <teca_derived_quantity_numerics.h>
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 |
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