Citlali
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
Engine Class Reference

#include <engine.h>

Inheritance diagram for Engine:
Inheritance graph
Collaboration diagram for Engine:
Collaboration graph

Public Types

using key_vec_t = std::vector< std::vector< std::string > >
 

Public Member Functions

void obsnum_setup ()
 
template<typename CT >
void get_rtc_config (CT &)
 
template<typename CT >
void get_ptc_config (CT &)
 
template<typename CT >
void get_timestream_config (CT &)
 
template<typename CT >
void get_beammap_config (CT &)
 
template<typename CT >
void get_mapmaking_config (CT &)
 
template<typename CT >
void get_map_filter_config (CT &)
 
template<typename CT >
void get_citlali_config (CT &)
 
template<typename CT >
void get_photometry_config (CT &)
 
template<typename CT >
void get_astrometry_config (CT &)
 
void create_obs_map_files ()
 
void add_tod_header ()
 
template<engine_utils::toltecIO::ProdType prod_t>
void create_tod_files ()
 
void cli_summary ()
 
template<TCDataKind tc_t>
void write_chunk_summary (TCData< tc_t, Eigen::MatrixXd > &)
 
template<typename map_buffer_t >
void write_map_summary (map_buffer_t &)
 
template<mapmaking::MapType map_t, engine_utils::toltecIO::DataType data_t, engine_utils::toltecIO::ProdType prod_t>
auto setup_filenames (std::string dir_name)
 
auto get_map_name (int)
 
template<typename fits_io_type , class map_buffer_t >
void add_phdu (fits_io_type &, map_buffer_t &, Eigen::Index)
 
template<typename fits_io_type , class map_buffer_t >
void write_maps (fits_io_type &, fits_io_type &, map_buffer_t &, Eigen::Index)
 
template<mapmaking::MapType map_t, class map_buffer_t >
void write_psd (map_buffer_t &, std::string)
 
template<mapmaking::MapType map_t, class map_buffer_t >
void write_hist (map_buffer_t &, std::string)
 
void write_stats ()
 
template<mapmaking::MapType map_t, class map_buffer_t >
void run_wiener_filter (map_buffer_t &)
 
template<mapmaking::MapType map_t, class map_buffer_t >
void find_sources (map_buffer_t &)
 
template<mapmaking::MapType map_t, class map_buffer_t >
void write_sources (map_buffer_t &, std::string)
 

Public Attributes

std::shared_ptr< spdlog::logger > logger = spdlog::get("citlali_logger")
 
std::vector< std::string > date_obs
 
bool verbose_mode
 
std::map< std::string, int > gaps
 
std::string output_dir
 
std::string redu_dir_name
 
int redu_dir_num
 
std::string obsnum_dir_name
 
std::string coadd_dir_name
 
std::map< std::string, std::string > tod_filename
 
key_vec_t missing_keys
 
key_vec_t invalid_keys
 
int n_threads
 
std::string parallel_policy
 
int n_scans_done
 
std::map< std::string, double > interface_sync_offset
 
std::vector< Eigen::Index > start_indices
 
std::vector< Eigen::Index > end_indices
 
Eigen::Index hwpr_start_indices
 
Eigen::Index hwpr_end_indices
 
std::string tod_type
 
std::string redu_type
 
std::string obsnum
 
bool write_filtered_maps_partial
 
std::string tod_output_type
 
std::string tod_output_subdir_name
 
std::string map_grouping
 
std::string map_method
 
int n_maps
 
Eigen::VectorXI maps_to_arrays
 
Eigen::VectorXI arrays_to_maps
 
Eigen::VectorXI maps_to_stokes
 
int fruit_iter
 
std::map< std::string, Eigen::VectorXd > pointing_offsets_arcsec
 
Eigen::ArrayXd pointing_offsets_modified_julian_date
 
std::vector< fitsIO< file_type_enum::write_fits, CCfits::ExtHDU * > > fits_io_vec
 
std::vector< fitsIO< file_type_enum::write_fits, CCfits::ExtHDU * > > noise_fits_io_vec
 
std::vector< fitsIO< file_type_enum::write_fits, CCfits::ExtHDU * > > filtered_fits_io_vec
 
std::vector< fitsIO< file_type_enum::write_fits, CCfits::ExtHDU * > > filtered_noise_fits_io_vec
 
std::vector< fitsIO< file_type_enum::write_fits, CCfits::ExtHDU * > > coadd_fits_io_vec
 
std::vector< fitsIO< file_type_enum::write_fits, CCfits::ExtHDU * > > coadd_noise_fits_io_vec
 
std::vector< fitsIO< file_type_enum::write_fits, CCfits::ExtHDU * > > filtered_coadd_fits_io_vec
 
std::vector< fitsIO< file_type_enum::write_fits, CCfits::ExtHDU * > > filtered_coadd_noise_fits_io_vec
 
- Public Attributes inherited from reduControls
bool use_subdir
 
bool run_tod
 
bool run_tod_output
 
bool run_mapmaking
 
bool run_coadd
 
bool run_noise
 
bool run_map_filter
 
bool run_source_finder
 
- Public Attributes inherited from reduClasses
engine::Calib calib
 
engine::Telescope telescope
 
engine_utils::toltecIO toltec_io
 
engine::Diagnostics diagnostics
 
engine_utils::mapFitter map_fitter
 
timestream::RTCProc rtcproc
 
timestream::PTCProc ptcproc
 
mapmaking::MapBuffer omb {"omb"}
 
mapmaking::MapBuffer cmb {"cmb"}
 
mapmaking::NaiveMapmaker naive_mm
 
mapmaking::JincMapmaker jinc_mm
 
mapmaking::MLMapmaker ml_mm
 
mapmaking::WienerFilter wiener_filter
 
- Public Attributes inherited from beammapControls
std::string beammap_source_name
 
double beammap_ra_rad
 
double beammap_dec_rad
 
std::map< std::string, double > beammap_fluxes_mJy_beam
 
std::map< std::string, double > beammap_err_mJy_beam
 
std::map< std::string, double > beammap_fluxes_MJy_Sr
 
std::map< std::string, double > beammap_err_MJy_Sr
 
int beammap_iter_max
 
double beammap_iter_tolerance
 
bool beammap_subtract_reference
 
Eigen::Index beammap_reference_det
 
bool beammap_derotate
 
int beammap_tod_output_iter = 0
 
Eigen::VectorXd sens_psd_limits_Hz
 
std::map< std::string, double > lower_fwhm_arcsec
 
std::map< std::string, double > upper_fwhm_arcsec
 
std::map< std::string, double > lower_sig2noise
 
std::map< std::string, double > upper_sig2noise
 
std::map< std::string, double > max_dist_arcsec
 
double lower_sens_factor
 
double upper_sens_factor
 

Member Typedef Documentation

◆ key_vec_t

using Engine::key_vec_t = std::vector<std::vector<std::string> >

Member Function Documentation

◆ add_phdu()

template<typename fits_io_type , class map_buffer_t >
void Engine::add_phdu ( fits_io_type &  fits_io,
map_buffer_t &  mb,
Eigen::Index  i 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ add_tod_header()

void Engine::add_tod_header ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cli_summary()

void Engine::cli_summary ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_obs_map_files()

void Engine::create_obs_map_files ( )
Here is the call graph for this function:

◆ create_tod_files()

void Engine::create_tod_files ( )
Here is the call graph for this function:

◆ find_sources()

template<mapmaking::MapType map_t, class map_buffer_t >
void Engine::find_sources ( map_buffer_t &  mb)
Here is the call graph for this function:

◆ get_astrometry_config()

template<typename CT >
void Engine::get_astrometry_config ( CT &  config)

◆ get_beammap_config()

template<typename CT >
void Engine::get_beammap_config ( CT &  config)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_citlali_config()

template<typename CT >
void Engine::get_citlali_config ( CT &  config)
Here is the call graph for this function:

◆ get_map_filter_config()

template<typename CT >
void Engine::get_map_filter_config ( CT &  config)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_map_name()

auto Engine::get_map_name ( int  i)
Here is the caller graph for this function:

◆ get_mapmaking_config()

template<typename CT >
void Engine::get_mapmaking_config ( CT &  config)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_photometry_config()

template<typename CT >
void Engine::get_photometry_config ( CT &  config)
Here is the call graph for this function:

◆ get_ptc_config()

template<typename CT >
void Engine::get_ptc_config ( CT &  config)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_rtc_config()

template<typename CT >
void Engine::get_rtc_config ( CT &  config)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_timestream_config()

template<typename CT >
void Engine::get_timestream_config ( CT &  config)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ obsnum_setup()

void Engine::obsnum_setup ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ run_wiener_filter()

template<mapmaking::MapType map_t, class map_buffer_t >
void Engine::run_wiener_filter ( map_buffer_t &  mb)
Here is the call graph for this function:

◆ setup_filenames()

auto Engine::setup_filenames ( std::string  dir_name)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_chunk_summary()

template<TCDataKind tc_t>
void Engine::write_chunk_summary ( TCData< tc_t, Eigen::MatrixXd > &  in)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_hist()

template<mapmaking::MapType map_t, class map_buffer_t >
void Engine::write_hist ( map_buffer_t &  mb,
std::string  dir_name 
)
Here is the call graph for this function:

◆ write_map_summary()

template<typename map_buffer_t >
void Engine::write_map_summary ( map_buffer_t &  mb)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_maps()

template<typename fits_io_type , class map_buffer_t >
void Engine::write_maps ( fits_io_type &  fits_io,
fits_io_type &  noise_fits_io,
map_buffer_t &  mb,
Eigen::Index  i 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_psd()

template<mapmaking::MapType map_t, class map_buffer_t >
void Engine::write_psd ( map_buffer_t &  mb,
std::string  dir_name 
)
Here is the call graph for this function:

◆ write_sources()

template<mapmaking::MapType map_t, class map_buffer_t >
void Engine::write_sources ( map_buffer_t &  mb,
std::string  dir_name 
)
Here is the call graph for this function:

◆ write_stats()

void Engine::write_stats ( )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ arrays_to_maps

Eigen::VectorXI Engine::arrays_to_maps

◆ coadd_dir_name

std::string Engine::coadd_dir_name

◆ coadd_fits_io_vec

std::vector<fitsIO<file_type_enum::write_fits, CCfits::ExtHDU*> > Engine::coadd_fits_io_vec

◆ coadd_noise_fits_io_vec

std::vector<fitsIO<file_type_enum::write_fits, CCfits::ExtHDU*> > Engine::coadd_noise_fits_io_vec

◆ date_obs

std::vector<std::string> Engine::date_obs

◆ end_indices

std::vector<Eigen::Index> Engine::end_indices

◆ filtered_coadd_fits_io_vec

std::vector<fitsIO<file_type_enum::write_fits, CCfits::ExtHDU*> > Engine::filtered_coadd_fits_io_vec

◆ filtered_coadd_noise_fits_io_vec

std::vector<fitsIO<file_type_enum::write_fits, CCfits::ExtHDU*> > Engine::filtered_coadd_noise_fits_io_vec

◆ filtered_fits_io_vec

std::vector<fitsIO<file_type_enum::write_fits, CCfits::ExtHDU*> > Engine::filtered_fits_io_vec

◆ filtered_noise_fits_io_vec

std::vector<fitsIO<file_type_enum::write_fits, CCfits::ExtHDU*> > Engine::filtered_noise_fits_io_vec

◆ fits_io_vec

std::vector<fitsIO<file_type_enum::write_fits, CCfits::ExtHDU*> > Engine::fits_io_vec

◆ fruit_iter

int Engine::fruit_iter

◆ gaps

std::map<std::string,int> Engine::gaps

◆ hwpr_end_indices

Eigen::Index Engine::hwpr_end_indices

◆ hwpr_start_indices

Eigen::Index Engine::hwpr_start_indices

◆ interface_sync_offset

std::map<std::string,double> Engine::interface_sync_offset

◆ invalid_keys

key_vec_t Engine::invalid_keys

◆ logger

std::shared_ptr<spdlog::logger> Engine::logger = spdlog::get("citlali_logger")

◆ map_grouping

std::string Engine::map_grouping

◆ map_method

std::string Engine::map_method

◆ maps_to_arrays

Eigen::VectorXI Engine::maps_to_arrays

◆ maps_to_stokes

Eigen::VectorXI Engine::maps_to_stokes

◆ missing_keys

key_vec_t Engine::missing_keys

◆ n_maps

int Engine::n_maps

◆ n_scans_done

int Engine::n_scans_done

◆ n_threads

int Engine::n_threads

◆ noise_fits_io_vec

std::vector<fitsIO<file_type_enum::write_fits, CCfits::ExtHDU*> > Engine::noise_fits_io_vec

◆ obsnum

std::string Engine::obsnum

◆ obsnum_dir_name

std::string Engine::obsnum_dir_name

◆ output_dir

std::string Engine::output_dir

◆ parallel_policy

std::string Engine::parallel_policy

◆ pointing_offsets_arcsec

std::map<std::string, Eigen::VectorXd> Engine::pointing_offsets_arcsec

◆ pointing_offsets_modified_julian_date

Eigen::ArrayXd Engine::pointing_offsets_modified_julian_date

◆ redu_dir_name

std::string Engine::redu_dir_name

◆ redu_dir_num

int Engine::redu_dir_num

◆ redu_type

std::string Engine::redu_type

◆ start_indices

std::vector<Eigen::Index> Engine::start_indices

◆ tod_filename

std::map<std::string, std::string> Engine::tod_filename

◆ tod_output_subdir_name

std::string Engine::tod_output_subdir_name

◆ tod_output_type

std::string Engine::tod_output_type

◆ tod_type

std::string Engine::tod_type

◆ verbose_mode

bool Engine::verbose_mode

◆ write_filtered_maps_partial

bool Engine::write_filtered_maps_partial

The documentation for this class was generated from the following file: