|
| SingleDishMS () |
| Default constructor. More...
|
|
| SingleDishMS (string const &ms_name) |
| Construct from casacore::MS name string. More...
|
|
| ~SingleDishMS () |
| Destructor. More...
|
|
string | name () const |
|
bool | close () |
|
void | setSelection (casacore::Record const &selection, bool const verbose=true) |
|
void | setAverage (casacore::Record const &average, bool const verbose=true) |
|
void | setPolAverage (casacore::Record const &average, bool const verbose=true) |
|
void | subtractBaseline (string const &in_column_name, string const &out_ms_name, string const &out_bloutput_name, bool const &do_subtract, string const &in_spw, string const &blfunc, int const order, float const clip_threshold_sigma, int const num_fitting_max, bool const linefinding, float const threshold, int const avg_limit, int const minwidth, std::vector< int > const &edge) |
| Invoke baseline subtraction (polynomial, write results in new casacore::MS) More...
|
|
void | subtractBaselineCspline (string const &in_column_name, string const &out_ms_name, string const &out_bloutput_name, bool const &do_subtract, string const &in_spw, int const npiece, float const clip_threshold_sigma, int const num_fitting_max, bool const linefinding, float const threshold, int const avg_limit, int const minwidth, std::vector< int > const &edge) |
| Cubicspline. More...
|
|
void | subtractBaselineSinusoid (string const &in_column_name, string const &out_ms_name, string const &out_bloutput_name, bool const &do_subtract, string const &in_spw, string const &addwn0, string const &rejwn0, bool const applyfft, string const fftmethod, string const fftthresh, float const clip_threshold_sigma, int const num_fitting_max, bool const linefinding, float const threshold, int const avg_limit, int const minwidth, std::vector< int > const &edge) |
| Sinusoid. More...
|
|
void | subtractBaselineVariable (string const &in_column_name, string const &out_ms_name, string const &out_bloutput_name, bool const &do_subtract, string const &in_spw, string const ¶m_file, bool const &verbose=true) |
| variable fitting parameters stored in a text file More...
|
|
void | applyBaselineTable (string const &in_column_name, string const &in_bltable_name, string const &in_spw, string const &out_ms_name) |
| apply baseline table More...
|
|
void | fitLine (string const &in_column_name, string const &in_spw, string const &in_pol, string const &fitfunc, string const &in_nfit, bool const linefinding, float const threshold, int const avg_limit, int const minwidth, std::vector< int > const &edge, string const &tempfile_name, string const &temp_out_ms_name) |
| fit line profile More...
|
|
void | smooth (string const &kernelType, float const kernelWidth, string const &columnName, string const &outMsName) |
| smooth data with arbitrary smoothing kernel smoothing kernels currently supported include gaussian and boxcar More...
|
|
|
void | initialize () |
| Utility functions ///. More...
|
|
void | format_selection (casacore::Record &selection) |
|
casacore::String | get_field_as_casa_string (casacore::Record const &in_data, string const &field_name) |
| retrieve a field by name from casacore::Record as casa::String. More...
|
|
bool | prepare_for_process (string const &in_column_name, string const &out_ms_name) |
|
bool | prepare_for_process (string const &in_column_name, string const &out_ms_name, casacore::Block< casacore::Int > const &sortColumns, bool const addDefaultSortCols=false) |
|
void | finalize_process () |
|
bool | set_column (casacore::MSMainEnums::PredefinedColumns const &in, casacore::MSMainEnums::PredefinedColumns &out) |
| check column 'in' is in input casacore::MS and set to 'out' if it exists. More...
|
|
void | convertArrayC2F (casacore::Array< casacore::Float > &from, casacore::Array< casacore::Complex > const &to) |
| Convert a casacore::Complex casacore::Array to casacore::Float Array. More...
|
|
std::vector< string > | split_string (string const &s, char delim) |
| Split a string with given delimiter. More...
|
|
bool | file_exists (string const &filename) |
| examine if a file with specified name exists More...
|
|
void | parse_spw (string const &in_spw, casacore::Vector< casacore::Int > &spw, casacore::Matrix< casacore::Int > &chan, casacore::Vector< size_t > &nchan, casacore::Vector< casacore::Vector< casacore::Bool > > &mask, casacore::Vector< bool > &nchan_set) |
|
void | get_nchan_and_mask (casacore::Vector< casacore::Int > const &rec_spw, casacore::Vector< casacore::Int > const &data_spw, casacore::Matrix< casacore::Int > const &rec_chan, size_t const num_chan, casacore::Vector< size_t > &nchan, casacore::Vector< casacore::Vector< casacore::Bool > > &mask, casacore::Vector< bool > &nchan_set, bool &new_nchan) |
|
void | get_mask_from_rec (casacore::Int spwid, casacore::Matrix< casacore::Int > const &rec_chan, casacore::Vector< casacore::Bool > &mask, bool initialize=true) |
|
void | get_masklist_from_mask (size_t const num_chan, bool const *mask, casacore::Vector< casacore::uInt > &masklist) |
|
void | get_baseline_context (size_t const bltype, uint16_t order, size_t num_chan, casacore::Vector< size_t > const &nchan, casacore::Vector< bool > const &nchan_set, casacore::Vector< size_t > &ctx_indices, std::vector< LIBSAKURA_SYMBOL(LSQFitContextFloat)* > &bl_contexts) |
| Create a set of baseline contexts (if necessary) More...
|
|
void | get_baseline_context (size_t const bltype, uint16_t order, size_t num_chan, size_t ispw, casacore::Vector< size_t > &ctx_indices, std::vector< size_t > &ctx_nchans, std::vector< LIBSAKURA_SYMBOL(LSQFitContextFloat)* > &bl_contexts) |
|
void | destroy_baseline_contexts (std::vector< LIBSAKURA_SYMBOL(LSQFitContextFloat)* > &bl_contexts) |
| Destroy a set of baseline contexts. More...
|
|
void | check_sakura_status (string const &name, LIBSAKURA_SYMBOL(Status) const status) |
|
void | check_baseline_status (LIBSAKURA_SYMBOL(LSQFitStatus) const bl_status) |
|
template<typename T , typename U > |
void | set_matrix_for_bltable (size_t const num_pol, size_t const num_data_max, std::vector< std::vector< T > > const &in_data, casacore::Array< U > &out_data) |
|
template<typename T , typename U > |
void | set_array_for_bltable (size_t const ipol, size_t const num_data, T const *in_data, casacore::Array< U > &out_data) |
|
size_t | get_num_coeff_bloutput (size_t const bltype, size_t order, size_t &num_coeff_max) |
|
std::vector< int > | string_to_list (string const &wn_str, char const delim) |
|
void | get_effective_nwave (std::vector< int > const &addwn, std::vector< int > const &rejwn, int const wn_ulimit, std::vector< int > &effwn) |
|
void | finalise_effective_nwave (std::vector< int > const &blparam_eff_base, std::vector< int > const &blparam_exclude, int const &blparam_upperlimit, size_t const &num_chan, float const *spec, bool const *mask, bool const &applyfft, string const &fftmethod, string const &fftthresh, std::vector< size_t > &blparam_eff) |
|
void | parse_fftthresh (string const &fftthresh_str, string &fftthresh_attr, float &fftthresh_sigma, int &fftthresh_top) |
|
void | select_wavenumbers_via_fft (size_t const num_chan, float const *spec, bool const *mask, string const &fftmethod, string const &fftthresh_attr, float const fftthresh_sigma, int const fftthresh_top, int const blparam_upperlimit, std::vector< int > &blparam_fft) |
|
void | exec_fft (size_t const num_chan, float const *in_spec, bool const *in_mask, bool const get_real_imag, bool const get_ampl_only, std::vector< float > &fourier_spec) |
|
void | interpolate_constant (int const num_chan, float const *in_spec, bool const *in_mask, casacore::Vector< casacore::Float > &spec) |
|
void | merge_wavenumbers (std::vector< int > const &blparam_eff_base, std::vector< int > const &blparam_fft, std::vector< int > const &blparam_exclude, std::vector< size_t > &blparam_eff) |
|
list< pair< size_t, size_t > > | findLineAndGetRanges (size_t const num_data, float const data[], bool mask[], float const threshold, int const avg_limit, int const minwidth, std::vector< int > const &edge, bool const invert) |
|
void | findLineAndGetMask (size_t const num_data, float const data[], bool const in_mask[], float const threshold, int const avg_limit, int const minwidth, std::vector< int > const &edge, bool const invert, bool out_mask[]) |
|
template<typename Func0 , typename Func1 , typename Func2 , typename Func3 > |
void | doSubtractBaseline (string const &in_column_name, string const &out_ms_name, string const &out_bloutput_name, bool const &do_subtract, string const &in_spw, LIBSAKURA_SYMBOL(Status)&status, std::vector< LIBSAKURA_SYMBOL(LSQFitContextFloat)* > &bl_contexts, size_t const bltype, std::vector< int > const &blparam, std::vector< int > const &blparam_exclude, bool const &applyfft, string const &fftmethod, string const &fftthresh, float const clip_threshold_sigma, int const num_fitting_max, bool const linefinding, float const threshold, int const avg_limit, int const minwidth, std::vector< int > const &edge, Func0 func0, Func1 func1, Func2 func2, Func3 func3, casacore::LogIO os) |
|
void | get_data_cube_float (vi::VisBuffer2 const &vb, casacore::Cube< casacore::Float > &data_cube) |
| get data cube (npol*nchan*nvirow) in in_column_ from visbuffer and convert it to float cube More...
|
|
void | get_flag_cube (vi::VisBuffer2 const &vb, casacore::Cube< casacore::Bool > &flag_cube) |
| get flag cube (npol*nchan*nvirow) from visbuffer More...
|
|
void | get_flag_from_cube (casacore::Cube< casacore::Bool > &flag_cube, size_t const row, size_t const plane, size_t const num_flag, bool out_flag[]) |
| retrieve a flag at the row and plane (polarization) from flag cube More...
|
|
void | set_flag_to_cube (casacore::Cube< casacore::Bool > &flag_cube, size_t const row, size_t const plane, size_t const num_flag, bool in_flag[]) |
| set a flag at the row and plane (polarization) to flag cube More...
|
|
void | flag_spectrum_in_cube (casacore::Cube< casacore::Bool > &flag_cube, size_t const row, size_t const plane) |
| flag all channels in a supectrum in cube at the row and plane (polarization) More...
|
|
bool | allchannels_flagged (size_t const num_flag, bool const *flag) |
| return true if all channels are flagged More...
|
|
size_t | NValidMask (size_t const num_mask, bool const *mask) |
| returns the number of channels with true in input mask More...
|
|
void | split_bloutputname (string str) |
| split the name More...
|
|