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

#include <beammap.h>

Inheritance diagram for Beammap:
Inheritance graph
Collaboration diagram for Beammap:
Collaboration graph

Public Types

enum  AptFlags {
  Good = 0 , BadFit = 1 << 0 , AzFWHM = 1 << 1 , ElFWHM = 1 << 2 ,
  Sig2Noise = 1 << 3 , Sens = 1 << 4 , Position = 1 << 5
}
 
- Public Types inherited from Engine
using key_vec_t = std::vector< std::vector< std::string > >
 

Public Member Functions

void setup ()
 
template<class KidsProc , class RawObs >
void timestream_pipeline (KidsProc &, RawObs &)
 
template<class KidsProc >
auto run_timestream (KidsProc &)
 
void loop_pipeline ()
 
void run_loop ()
 
void set_apt_flags ()
 
void process_apt ()
 
template<class KidsProc , class RawObs >
void pipeline (KidsProc &, RawObs &)
 
template<mapmaking::MapType map_type>
void output ()
 
- Public Member Functions inherited from Engine
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::string map_parallel_policy
 
std::vector< TCData< TCDataKind::PTC, Eigen::MatrixXd > > ptcs0
 
std::vector< TCData< TCDataKind::PTC, Eigen::MatrixXd > > ptcs
 
mapmaking::MapBuffer omb_copy {"omb"}
 
std::vector< engine::Calibcalib_scans0
 
std::vector< engine::Calibcalib_scans
 
Eigen::Index current_iter
 
Eigen::Matrix< bool, Eigen::Dynamic, 1 > converged
 
Eigen::Vector< int, Eigen::Dynamic > converge_iter
 
Eigen::MatrixXd p0
 
Eigen::MatrixXd perror0
 
Eigen::MatrixXd params
 
Eigen::MatrixXd perrors
 
Eigen::Index beammap_reference_det_found = -99
 
Eigen::Matrix< uint16_t, Eigen::Dynamic, 1 > flag2
 
Eigen::Matrix< bool, Eigen::Dynamic, 1 > good_fits
 
std::vector< int > scan_in_vec
 
std::vector< int > scan_out_vec
 
std::vector< int > det_in_vec
 
std::vector< int > det_out_vec
 
- Public Attributes inherited from Engine
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 Enumeration Documentation

◆ AptFlags

Enumerator
Good 
BadFit 
AzFWHM 
ElFWHM 
Sig2Noise 
Sens 
Position 

Member Function Documentation

◆ loop_pipeline()

void Beammap::loop_pipeline ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ output()

template<mapmaking::MapType map_type>
void Beammap::output ( )
Here is the call graph for this function:

◆ pipeline()

template<class KidsProc , class RawObs >
void Beammap::pipeline ( KidsProc &  kidsproc,
RawObs rawobs 
)
Here is the call graph for this function:

◆ process_apt()

void Beammap::process_apt ( )
Here is the caller graph for this function:

◆ run_loop()

void Beammap::run_loop ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ run_timestream()

template<class KidsProc >
auto Beammap::run_timestream ( KidsProc &  kidsproc)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_apt_flags()

void Beammap::set_apt_flags ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setup()

void Beammap::setup ( )
Here is the call graph for this function:

◆ timestream_pipeline()

template<class KidsProc , class RawObs >
void Beammap::timestream_pipeline ( KidsProc &  kidsproc,
RawObs rawobs 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ beammap_reference_det_found

Eigen::Index Beammap::beammap_reference_det_found = -99

◆ calib_scans

std::vector<engine::Calib> Beammap::calib_scans

◆ calib_scans0

std::vector<engine::Calib> Beammap::calib_scans0

◆ converge_iter

Eigen::Vector<int, Eigen::Dynamic> Beammap::converge_iter

◆ converged

Eigen::Matrix<bool, Eigen::Dynamic, 1> Beammap::converged

◆ current_iter

Eigen::Index Beammap::current_iter

◆ det_in_vec

std::vector<int> Beammap::det_in_vec

◆ det_out_vec

std::vector<int> Beammap::det_out_vec

◆ flag2

Eigen::Matrix<uint16_t,Eigen::Dynamic,1> Beammap::flag2

◆ good_fits

Eigen::Matrix<bool, Eigen::Dynamic, 1> Beammap::good_fits

◆ map_parallel_policy

std::string Beammap::map_parallel_policy

◆ omb_copy

mapmaking::MapBuffer Beammap::omb_copy {"omb"}

◆ p0

Eigen::MatrixXd Beammap::p0

◆ params

Eigen::MatrixXd Beammap::params

◆ perror0

Eigen::MatrixXd Beammap::perror0

◆ perrors

Eigen::MatrixXd Beammap::perrors

◆ ptcs

std::vector<TCData<TCDataKind::PTC,Eigen::MatrixXd> > Beammap::ptcs

◆ ptcs0

std::vector<TCData<TCDataKind::PTC,Eigen::MatrixXd> > Beammap::ptcs0

◆ scan_in_vec

std::vector<int> Beammap::scan_in_vec

◆ scan_out_vec

std::vector<int> Beammap::scan_out_vec

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