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()
39 int initialize(MPI_Comm comm,
long first_step,
long last_step,
40 const teca_calendar_util::p_interval_iterator &it,
45 p_teca_cf_layout_manager get_layout_manager(
long time_step)
override;
48 int to_stream(std::ostream &os)
override;
61 int get_file_id(
long time_step,
long &file_id);
66 using step_bracket_t = std::pair<long, long>;
67 std::vector<step_bracket_t> file_steps;