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()); }
68 const std::vector<teca_metadata> &input_md)
override;
70 std::vector<teca_metadata> get_upstream_request(
72 const std::vector<teca_metadata> &input_md,
75 const_p_teca_dataset execute(
77 const std::vector<const_p_teca_dataset> &input_data,
80 int validate_output_data_type(
int val);
The interface to TECA pipeline architecture.
Definition: teca_algorithm.h:244
virtual teca_metadata get_output_metadata(unsigned int port, const std::vector< teca_metadata > &input_md)
an algorithm that unpacks NetCDF packed values
Definition: teca_unpack_data.h:31
void set_output_data_type_to_double()
set the output data type to single precision floating point
Definition: teca_unpack_data.h:56
p_teca_error_handler error_handler TECA_EXPORT
The global error handler instance.