1 #ifndef teca_table_writer_h
2 #define teca_table_writer_h
4 #include "teca_config.h"
6 #include "teca_algorithm.h"
7 #include "teca_metadata.h"
41 TECA_ALGORITHM_PROPERTY(std::
string, file_name)
44 TECA_ALGORITHM_PROPERTY(std::
string, row_dim_name)
48 TECA_GET_ALGORITHM_PROPERTIES_DESCRIPTION()
49 TECA_SET_ALGORITHM_PROPERTIES()
57 enum {format_auto, format_csv, format_bin, format_xlsx, format_netcdf};
58 TECA_ALGORITHM_PROPERTY(
int, output_format)
59 void set_output_format_auto(){ this->set_output_format(format_auto); }
60 void set_output_format_csv(){ this->set_output_format(format_csv); }
61 void set_output_format_bin(){ this->set_output_format(format_bin); }
62 void set_output_format_xlsx(){ this->set_output_format(format_xlsx); }
63 void set_output_format_netcdf(){ this->set_output_format(format_netcdf); }
71 const_p_teca_dataset execute(
73 const std::vector<const_p_teca_dataset> &input_data,
77 const std::vector<teca_metadata> &input_md)
override;
80 std::string file_name;
81 std::string row_dim_name;
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 writes tabular data in a binary or CSV (comma separated value) format that is easil...
Definition: teca_table_writer.h:29
p_teca_error_handler error_handler TECA_EXPORT
The global error handler instance.