Citlali
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
engine_utils Namespace Reference

Classes

struct  CeresAutoDiffFitter
 
struct  DenseFunctor
 
struct  Fitter
 
struct  Gaussian1D
 
struct  Gaussian2D
 
class  mapFitter
 
struct  Model
 
struct  scoped_timeit
 An RAII class to report the lifetime of itself. More...
 
class  SplineFunction
 
struct  SymmetricGaussian2D
 
class  toltecIO
 

Enumerations

enum  FFTDirection { forward = 0 , inverse = 1 }
 
enum  SmoothType { boxcar = 0 , edge_truncate = 1 }
 

Functions

template<typename Model >
std::enable_if< Model::DimensionsAtCompileTime==2, Model >::type create_model (const Eigen::VectorXd &params)
 
template<typename tel_data_t , typename pointing_offset_t >
auto calc_det_pointing (tel_data_t &tel_data, double az_off, double el_off, const std::string pixel_axes, pointing_offset_t &pointing_offsets, const std::string map_grouping)
 
template<typename Derived >
auto calc_par_ang_from_coords (const double lat, const double lon, Eigen::DenseBase< Derived > &az, Eigen::DenseBase< Derived > &alt, Eigen::DenseBase< Derived > &ra, Eigen::DenseBase< Derived > &dec)
 
template<typename Derived >
auto tangent_to_abs (Eigen::DenseBase< Derived > &lat, Eigen::DenseBase< Derived > &lon, const double cra, const double cdec)
 
template<typename Derived >
void gnomonic_projection (const Eigen::DenseBase< Derived > &l, const Eigen::DenseBase< Derived > &b, double l0, double b0, Eigen::DenseBase< Derived > &x, Eigen::DenseBase< Derived > &y)
 
static const void equatorial_to_galactic (const double ra, const double dec, double &l, double &b)
 
static const int parseLine (char *line)
 
static const int get_phys_memory ()
 
static const double planck_nu (const double freq_Hz, const double T_K)
 
static const double mJy_beam_to_uK (const double flux_mjy_beam, const double freq_Hz, const double fwhm)
 
static const std::string current_date_time ()
 
static const std::string unix_to_utc (double &t)
 
template<typename DerivedA , typename DerivedB >
void utc_to_unix (Eigen::DenseBase< DerivedA > &tel_utc, Eigen::DenseBase< DerivedB > &ut_date)
 
static long long modified_julian_date_to_unix (double jd)
 
static double unix_to_modified_julian_date (double unix_time)
 
template<typename Derived >
auto make_meshgrid (const Eigen::DenseBase< Derived > &x, const Eigen::DenseBase< Derived > &y)
 
template<FFTDirection direction, typename Derived >
auto fft (Eigen::DenseBase< Derived > &in, std::string parallel_policy)
 
template<FFTDirection direction, typename Derived , typename fftw_plan_t >
auto fft2 (Eigen::DenseBase< Derived > &in, fftw_plan_t &plan, fftw_complex *a, fftw_complex *b)
 
template<class F , class... Ts, std::size_t... Is>
void for_each_in_tuple (const std::tuple< Ts... > &tuple, F func, std::index_sequence< Is... >)
 
template<class F , class... Ts>
void for_each_in_tuple (const std::tuple< Ts... > &tuple, F func)
 
template<typename Derived >
std::vector< std::tuple< double, int > > sorter (Eigen::DenseBase< Derived > &vec)
 
template<typename DerivedA >
auto calc_std_dev (Eigen::DenseBase< DerivedA > &data)
 
template<typename DerivedA , typename DerivedB >
auto calc_std_dev (Eigen::DenseBase< DerivedA > &data, Eigen::DenseBase< DerivedB > &flag)
 
template<typename DerivedA >
auto calc_rms (Eigen::DenseBase< DerivedA > &data)
 
template<typename DerivedA , typename DerivedB >
auto calc_rms (Eigen::DenseBase< DerivedA > &data, Eigen::DenseBase< DerivedB > &flag)
 
template<typename Derived >
double calc_mad (Eigen::DenseBase< Derived > &data)
 
static auto hanning_window (Eigen::Index n_rows, Eigen::Index n_cols)
 
static double pivot_select (std::vector< double > input, int index)
 
template<typename Derived >
double find_weight_threshold (Eigen::DenseBase< Derived > &weight, double cov)
 
template<typename Derived >
auto set_cov_cov_ranges (const Eigen::DenseBase< Derived > &weight, const double weight_threshold)
 
template<SmoothType smooth_type, typename DerivedA , typename DerivedB >
void smooth (Eigen::DenseBase< DerivedA > &in, Eigen::DenseBase< DerivedB > &out, int w)
 
template<typename DerivedA , typename DerivedB >
auto calc_2D_psd (Eigen::DenseBase< DerivedA > &data, Eigen::DenseBase< DerivedB > &y, Eigen::DenseBase< DerivedB > &x, int smooth_window, std::string parallel_policy)
 
template<typename Derived >
auto calc_hist (Eigen::DenseBase< Derived > &data, int n_bins)
 
template<typename Derived >
auto shift_1D (Eigen::DenseBase< Derived > &in, std::vector< Eigen::Index > shift_indices)
 
template<typename Derived >
auto shift_2D (Eigen::DenseBase< Derived > &in, std::vector< Eigen::Index > shift_indices)
 
template<typename Derived >
void fix_periodic_boundary (Eigen::DenseBase< Derived > &data, double low, double high, double upper_limit)
 
auto now ()
 Return the current time.
 
auto elapsed_since (const std::chrono::time_point< std::chrono::high_resolution_clock > &t0)
 Return the time elapsed since given time.
 
template<typename Derived >
Eigen::VectorXd compute_numerical_derivative (const Eigen::DenseBase< Derived > &times, const Eigen::DenseBase< Derived > &values)
 
static const bool is_point_in_box (double a, double b, double x, double y, double theta)
 

Enumeration Type Documentation

◆ FFTDirection

Enumerator
forward 
inverse 

◆ SmoothType

Enumerator
boxcar 
edge_truncate 

Function Documentation

◆ calc_2D_psd()

template<typename DerivedA , typename DerivedB >
auto engine_utils::calc_2D_psd ( Eigen::DenseBase< DerivedA > &  data,
Eigen::DenseBase< DerivedB > &  y,
Eigen::DenseBase< DerivedB > &  x,
int  smooth_window,
std::string  parallel_policy 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ calc_det_pointing()

template<typename tel_data_t , typename pointing_offset_t >
auto engine_utils::calc_det_pointing ( tel_data_t &  tel_data,
double  az_off,
double  el_off,
const std::string  pixel_axes,
pointing_offset_t &  pointing_offsets,
const std::string  map_grouping 
)
Here is the caller graph for this function:

◆ calc_hist()

template<typename Derived >
auto engine_utils::calc_hist ( Eigen::DenseBase< Derived > &  data,
int  n_bins 
)
Here is the caller graph for this function:

◆ calc_mad()

template<typename Derived >
double engine_utils::calc_mad ( Eigen::DenseBase< Derived > &  data)

◆ calc_par_ang_from_coords()

template<typename Derived >
auto engine_utils::calc_par_ang_from_coords ( const double  lat,
const double  lon,
Eigen::DenseBase< Derived > &  az,
Eigen::DenseBase< Derived > &  alt,
Eigen::DenseBase< Derived > &  ra,
Eigen::DenseBase< Derived > &  dec 
)

◆ calc_rms() [1/2]

template<typename DerivedA >
auto engine_utils::calc_rms ( Eigen::DenseBase< DerivedA > &  data)
Here is the caller graph for this function:

◆ calc_rms() [2/2]

template<typename DerivedA , typename DerivedB >
auto engine_utils::calc_rms ( Eigen::DenseBase< DerivedA > &  data,
Eigen::DenseBase< DerivedB > &  flag 
)

◆ calc_std_dev() [1/2]

template<typename DerivedA >
auto engine_utils::calc_std_dev ( Eigen::DenseBase< DerivedA > &  data)
Here is the caller graph for this function:

◆ calc_std_dev() [2/2]

template<typename DerivedA , typename DerivedB >
auto engine_utils::calc_std_dev ( Eigen::DenseBase< DerivedA > &  data,
Eigen::DenseBase< DerivedB > &  flag 
)

◆ compute_numerical_derivative()

template<typename Derived >
Eigen::VectorXd engine_utils::compute_numerical_derivative ( const Eigen::DenseBase< Derived > &  times,
const Eigen::DenseBase< Derived > &  values 
)

◆ create_model()

template<typename Model >
std::enable_if< Model::DimensionsAtCompileTime==2, Model >::type engine_utils::create_model ( const Eigen::VectorXd &  params)

◆ current_date_time()

static const std::string engine_utils::current_date_time ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ elapsed_since()

auto engine_utils::elapsed_since ( const std::chrono::time_point< std::chrono::high_resolution_clock > &  t0)
inline

Return the time elapsed since given time.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equatorial_to_galactic()

static const void engine_utils::equatorial_to_galactic ( const double  ra,
const double  dec,
double &  l,
double &  b 
)
static
Here is the caller graph for this function:

◆ fft()

template<FFTDirection direction, typename Derived >
auto engine_utils::fft ( Eigen::DenseBase< Derived > &  in,
std::string  parallel_policy 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fft2()

template<FFTDirection direction, typename Derived , typename fftw_plan_t >
auto engine_utils::fft2 ( Eigen::DenseBase< Derived > &  in,
fftw_plan_t &  plan,
fftw_complex *  a,
fftw_complex *  b 
)

◆ find_weight_threshold()

template<typename Derived >
double engine_utils::find_weight_threshold ( Eigen::DenseBase< Derived > &  weight,
double  cov 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fix_periodic_boundary()

template<typename Derived >
void engine_utils::fix_periodic_boundary ( Eigen::DenseBase< Derived > &  data,
double  low,
double  high,
double  upper_limit 
)
Here is the caller graph for this function:

◆ for_each_in_tuple() [1/2]

template<class F , class... Ts>
void engine_utils::for_each_in_tuple ( const std::tuple< Ts... > &  tuple,
func 
)
Here is the call graph for this function:

◆ for_each_in_tuple() [2/2]

template<class F , class... Ts, std::size_t... Is>
void engine_utils::for_each_in_tuple ( const std::tuple< Ts... > &  tuple,
func,
std::index_sequence< Is... >   
)
Here is the caller graph for this function:

◆ get_phys_memory()

static const int engine_utils::get_phys_memory ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gnomonic_projection()

template<typename Derived >
void engine_utils::gnomonic_projection ( const Eigen::DenseBase< Derived > &  l,
const Eigen::DenseBase< Derived > &  b,
double  l0,
double  b0,
Eigen::DenseBase< Derived > &  x,
Eigen::DenseBase< Derived > &  y 
)
Here is the caller graph for this function:

◆ hanning_window()

static auto engine_utils::hanning_window ( Eigen::Index  n_rows,
Eigen::Index  n_cols 
)
static
Here is the caller graph for this function:

◆ is_point_in_box()

static const bool engine_utils::is_point_in_box ( double  a,
double  b,
double  x,
double  y,
double  theta 
)
static
Here is the caller graph for this function:

◆ make_meshgrid()

template<typename Derived >
auto engine_utils::make_meshgrid ( const Eigen::DenseBase< Derived > &  x,
const Eigen::DenseBase< Derived > &  y 
)

◆ mJy_beam_to_uK()

static const double engine_utils::mJy_beam_to_uK ( const double  flux_mjy_beam,
const double  freq_Hz,
const double  fwhm 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ modified_julian_date_to_unix()

static long long engine_utils::modified_julian_date_to_unix ( double  jd)
static
Here is the caller graph for this function:

◆ now()

auto engine_utils::now ( )
inline

Return the current time.

Here is the caller graph for this function:

◆ parseLine()

static const int engine_utils::parseLine ( char *  line)
static
Here is the caller graph for this function:

◆ pivot_select()

static double engine_utils::pivot_select ( std::vector< double >  input,
int  index 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ planck_nu()

static const double engine_utils::planck_nu ( const double  freq_Hz,
const double  T_K 
)
static
Here is the caller graph for this function:

◆ set_cov_cov_ranges()

template<typename Derived >
auto engine_utils::set_cov_cov_ranges ( const Eigen::DenseBase< Derived > &  weight,
const double  weight_threshold 
)
Here is the caller graph for this function:

◆ shift_1D()

template<typename Derived >
auto engine_utils::shift_1D ( Eigen::DenseBase< Derived > &  in,
std::vector< Eigen::Index >  shift_indices 
)
Here is the caller graph for this function:

◆ shift_2D()

template<typename Derived >
auto engine_utils::shift_2D ( Eigen::DenseBase< Derived > &  in,
std::vector< Eigen::Index >  shift_indices 
)
Here is the caller graph for this function:

◆ smooth()

template<SmoothType smooth_type, typename DerivedA , typename DerivedB >
void engine_utils::smooth ( Eigen::DenseBase< DerivedA > &  in,
Eigen::DenseBase< DerivedB > &  out,
int  w 
)

◆ sorter()

template<typename Derived >
std::vector< std::tuple< double, int > > engine_utils::sorter ( Eigen::DenseBase< Derived > &  vec)
Here is the caller graph for this function:

◆ tangent_to_abs()

template<typename Derived >
auto engine_utils::tangent_to_abs ( Eigen::DenseBase< Derived > &  lat,
Eigen::DenseBase< Derived > &  lon,
const double  cra,
const double  cdec 
)
Here is the caller graph for this function:

◆ unix_to_modified_julian_date()

static double engine_utils::unix_to_modified_julian_date ( double  unix_time)
static
Here is the caller graph for this function:

◆ unix_to_utc()

static const std::string engine_utils::unix_to_utc ( double &  t)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utc_to_unix()

template<typename DerivedA , typename DerivedB >
void engine_utils::utc_to_unix ( Eigen::DenseBase< DerivedA > &  tel_utc,
Eigen::DenseBase< DerivedB > &  ut_date 
)
Here is the caller graph for this function: