1 #ifndef teca_unpack_data_h
2 #define teca_unpack_data_h
5 #include "teca_algorithm.h"
6 #include "teca_metadata.h"
40 TECA_GET_ALGORITHM_PROPERTIES_DESCRIPTION()
41 TECA_SET_ALGORITHM_PROPERTIES()
49 TECA_ALGORITHM_PROPERTY_V(
int, output_data_type)
52 void set_output_data_type_to_float()
53 { this->set_output_data_type(teca_variant_array_code<float>::get()); }
57 { this->set_output_data_type(teca_variant_array_code<double>::get()); }
66 const std::vector<teca_metadata> &input_md)
override;
68 std::vector<teca_metadata> get_upstream_request(
70 const std::vector<teca_metadata> &input_md,
73 const_p_teca_dataset execute(
75 const std::vector<const_p_teca_dataset> &input_data,
78 int validate_output_data_type(
int val);