1 #ifndef teca_cf_interval_time_step_mapper_h
2 #define teca_cf_interval_time_step_mapper_h
4 #include "teca_config.h"
5 #include "teca_metadata.h"
6 #include "teca_cf_layout_manager.h"
7 #include "teca_cf_time_step_mapper.h"
16 #include <unordered_map>
21 using p_teca_cf_interval_time_step_mapper = std::shared_ptr<teca_cf_interval_time_step_mapper>;
29 static p_teca_cf_interval_time_step_mapper
New()
40 int initialize(MPI_Comm comm,
long first_step,
long last_step,
41 const teca_calendar_util::p_interval_iterator &it,
42 const std::string &index_request_key);
64 using step_bracket_t = std::pair<long, long>;
65 std::vector<step_bracket_t> file_steps;
NetCDF CF2 files time step mapper.
Definition: teca_cf_interval_time_step_mapper.h:25
int initialize(MPI_Comm comm, long first_step, long last_step, const teca_calendar_util::p_interval_iterator &it, const std::string &index_request_key)
static p_teca_cf_interval_time_step_mapper New()
allocate and return a new object
Definition: teca_cf_interval_time_step_mapper.h:29
int to_stream(std::ostream &os) override
print a summary to the stream
int get_file_id(long time_step, long &file_id)
given a time step, get the corresponding file id
p_teca_cf_layout_manager get_layout_manager(long time_step) override
given a time step returns the associated layout manager
Defines the interface for mapping time steps to files.
Definition: teca_cf_time_step_mapper.h:23
virtual p_teca_cf_layout_manager get_layout_manager(long time_step)
given a time step returns the associated layout manager
Definition: teca_cf_time_step_mapper.h:40
p_teca_error_handler error_handler TECA_EXPORT
The global error handler instance.