#include <SingleDishMS.h>
Public Member Functions | |
SingleDishMS () | |
Default constructor. | |
SingleDishMS (string const &ms_name) | |
Construct from MS name string. | |
~SingleDishMS () | |
Destructor. | |
string | name () const |
bool | close () |
void | setSelection (Record const &selection, bool const verbose=true) |
void | setAverage (Record const &average, bool const verbose=true) |
void | scale (float const factor, string const &in_column_name, string const &out_ms_name) |
Multiply a scale factor to selected spectra. | |
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, vector< int > const &edge) |
Invoke baseline subtraction (polynomial, write results in new MS). | |
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, vector< int > const &edge) |
Cubicspline. | |
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, vector< int > const &edge) |
Sinusoid. | |
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) |
variable fitting parameters stored in a text file | |
void | applyBaselineTable (string const &in_column_name, string const &in_bltable_name, string const &in_spw, string const &out_ms_name) |
apply baseline table | |
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, vector< int > const &edge, string const &tempfile_name, string const &temp_out_ms_name) |
fit line profile | |
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 | |
Static Public Member Functions | |
static bool | importAsap (string const &infile, string const &outfile, bool const parallel=false) |
static bool | importNRO (string const &infile, string const &outfile, bool const parallel=false) |
Private Member Functions | |
void | initialize () |
Utility functions ///. | |
void | format_selection (Record &selection) |
String | get_field_as_casa_string (Record const &in_data, string const &field_name) |
retrieve a field by name from Record as casa::String. | |
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, Block< Int > const &sortColumns, bool const addDefaultSortCols=false) |
void | finalize_process () |
bool | set_column (MSMainEnums::PredefinedColumns const &in, MSMainEnums::PredefinedColumns &out) |
check column 'in' is in input MS and set to 'out' if it exists. | |
void | convertArrayC2F (Array< Float > &from, Array< Complex > const &to) |
Convert a Complex Array to Float Array. | |
std::vector< string > | split_string (string const &s, char delim) |
Split a string with given delimiter. | |
bool | file_exists (string const &filename) |
examine if a file with specified name exists | |
void | parse_spw (string const &in_spw, Vector< Int > &spw, Matrix< Int > &chan, Vector< size_t > &nchan, Vector< Vector< Bool > > &mask, Vector< bool > &nchan_set) |
void | get_nchan_and_mask (Vector< Int > const &rec_spw, Vector< Int > const &data_spw, Matrix< Int > const &rec_chan, size_t const num_chan, Vector< size_t > &nchan, Vector< Vector< Bool > > &mask, Vector< bool > &nchan_set, bool &new_nchan) |
void | get_mask_from_rec (Int spwid, Matrix< Int > const &rec_chan, Vector< Bool > &mask, bool initialize=true) |
void | get_masklist_from_mask (size_t const num_chan, bool const *mask, Vector< uInt > &masklist) |
void | get_baseline_context (size_t const bltype, uint16_t order, size_t num_chan, Vector< size_t > const &nchan, Vector< bool > const &nchan_set, Vector< size_t > &ctx_indices, std::vector< LIBSAKURA_SYMBOL(LSQFitContextFloat)* > &bl_contexts) |
Create a set of baseline contexts (if necessary). | |
void | get_baseline_context (size_t const bltype, uint16_t order, size_t num_chan, size_t ispw, 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. | |
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, 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, Array< U > &out_data) |
size_t | get_num_coeff_bloutput (size_t const bltype, size_t order, size_t &num_coeff_max) |
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, Vector< 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, 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, 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, vector< int > const &blparam, 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, vector< int > const &edge, Func0 func0, Func1 func1, Func2 func2, Func3 func3, LogIO os) |
retrieve a spectrum at the row and | plane (polarization) from data cube */void get_spectrum_from_cube(Cube< Float > &data_cube |
MS handling functions ///. | |
void | set_spectrum_to_cube (Cube< Float > &data_cube, size_t const row, size_t const plane, size_t const num_data, float in_data[]) |
set a spectrum at the row and plane (polarization) to data cube | |
void | get_data_cube_float (vi::VisBuffer2 const &vb, Cube< Float > &data_cube) |
get data cube (npol*nchan*nvirow) in in_column_ from visbuffer and convert it to float cube | |
void | get_flag_cube (vi::VisBuffer2 const &vb, Cube< Bool > &flag_cube) |
get flag cube (npol*nchan*nvirow) from visbuffer | |
void | get_flag_from_cube (Cube< 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 | |
void | set_flag_to_cube (Cube< 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 | |
void | flag_spectrum_in_cube (Cube< 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) | |
bool | allchannels_flagged (size_t const num_flag, bool const *flag) |
return true if all channels are flagged | |
size_t | NValidMask (size_t const num_mask, bool const *mask) |
returns the number of channels with true in input mask | |
multiply a scaling factor to a float array *void | do_scale (float const factor, size_t const num_data, float data[]) |
Array execution functions ///. | |
void | split_bloutputname (string str) |
split the name | |
Private Attributes | |
retrieve a spectrum at the row and size_t const | row |
retrieve a spectrum at the row and size_t const size_t const | plane |
retrieve a spectrum at the row and size_t const size_t const size_t const | num_data |
retrieve a spectrum at the row and size_t const size_t const size_t const float | out_data [] |
the name of input MS *string | msname_ |
Member vairables ///. | |
MSMainEnums::PredefinedColumns | in_column_ |
columns to read and save data | |
Record | selection_ |
Record of selection. | |
Record | average_ |
Record of average. | |
SDMSManager * | sdh_ |
SDMSManager. | |
void(* | visCubeAccessor_ )(vi::VisBuffer2 const &vb, Cube< Float > &cube) |
pointer to accessor function | |
Bool | doSmoothing_ |
smoothing flag | |
string | bloutputname_csv |
string | bloutputname_text |
string | bloutputname_table |
Static Private Attributes | |
static constexpr Int | kNRowBlocking |
max number of rows to get in each iteration |
Definition at line 46 of file SingleDishMS.h.
casa::SingleDishMS::SingleDishMS | ( | ) |
Default constructor.
casa::SingleDishMS::SingleDishMS | ( | string const & | ms_name | ) |
Construct from MS name string.
casa::SingleDishMS::~SingleDishMS | ( | ) |
Destructor.
bool casa::SingleDishMS::allchannels_flagged | ( | size_t const | num_flag, | |
bool const * | flag | |||
) | [private] |
return true if all channels are flagged
void casa::SingleDishMS::applyBaselineTable | ( | string const & | in_column_name, | |
string const & | in_bltable_name, | |||
string const & | in_spw, | |||
string const & | out_ms_name | |||
) |
apply baseline table
void casa::SingleDishMS::check_baseline_status | ( | LIBSAKURA_SYMBOL(LSQFitStatus) const | bl_status | ) | [private] |
void casa::SingleDishMS::check_sakura_status | ( | string const & | name, | |
LIBSAKURA_SYMBOL(Status) const | status | |||
) | [private] |
bool casa::SingleDishMS::close | ( | ) |
void casa::SingleDishMS::convertArrayC2F | ( | Array< Float > & | from, | |
Array< Complex > const & | to | |||
) | [private] |
Convert a Complex Array to Float Array.
void casa::SingleDishMS::destroy_baseline_contexts | ( | std::vector< LIBSAKURA_SYMBOL(LSQFitContextFloat)* > & | bl_contexts | ) | [private] |
Destroy a set of baseline contexts.
multiply a scaling factor to a float array* void casa::SingleDishMS::do_scale | ( | float const | factor, | |
size_t const | num_data, | |||
float | data[] | |||
) | [private] |
Array execution functions ///.
void casa::SingleDishMS::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, | |||
vector< int > const & | blparam, | |||
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, | |||
vector< int > const & | edge, | |||
Func0 | func0, | |||
Func1 | func1, | |||
Func2 | func2, | |||
Func3 | func3, | |||
LogIO | os | |||
) | [inline, private] |
void casa::SingleDishMS::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 | |||
) | [private] |
bool casa::SingleDishMS::file_exists | ( | string const & | filename | ) | [private] |
examine if a file with specified name exists
void casa::SingleDishMS::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 | |||
) | [private] |
void casa::SingleDishMS::finalize_process | ( | ) | [private] |
void casa::SingleDishMS::findLineAndGetMask | ( | size_t const | num_data, | |
float const | data[], | |||
bool const | in_mask[], | |||
float const | threshold, | |||
int const | avg_limit, | |||
int const | minwidth, | |||
vector< int > const & | edge, | |||
bool const | invert, | |||
bool | out_mask[] | |||
) | [private] |
list<pair<size_t, size_t> > casa::SingleDishMS::findLineAndGetRanges | ( | size_t const | num_data, | |
float const | data[], | |||
bool | mask[], | |||
float const | threshold, | |||
int const | avg_limit, | |||
int const | minwidth, | |||
vector< int > const & | edge, | |||
bool const | invert | |||
) | [private] |
void casa::SingleDishMS::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, | |||
vector< int > const & | edge, | |||
string const & | tempfile_name, | |||
string const & | temp_out_ms_name | |||
) |
fit line profile
void casa::SingleDishMS::flag_spectrum_in_cube | ( | Cube< Bool > & | flag_cube, | |
size_t const | row, | |||
size_t const | plane | |||
) | [private] |
flag all channels in a supectrum in cube at the row and plane (polarization)
void casa::SingleDishMS::format_selection | ( | Record & | selection | ) | [private] |
void casa::SingleDishMS::get_baseline_context | ( | size_t const | bltype, | |
uint16_t | order, | |||
size_t | num_chan, | |||
size_t | ispw, | |||
Vector< size_t > & | ctx_indices, | |||
std::vector< size_t > & | ctx_nchans, | |||
std::vector< LIBSAKURA_SYMBOL(LSQFitContextFloat)* > & | bl_contexts | |||
) | [private] |
void casa::SingleDishMS::get_baseline_context | ( | size_t const | bltype, | |
uint16_t | order, | |||
size_t | num_chan, | |||
Vector< size_t > const & | nchan, | |||
Vector< bool > const & | nchan_set, | |||
Vector< size_t > & | ctx_indices, | |||
std::vector< LIBSAKURA_SYMBOL(LSQFitContextFloat)* > & | bl_contexts | |||
) | [private] |
Create a set of baseline contexts (if necessary).
void casa::SingleDishMS::get_data_cube_float | ( | vi::VisBuffer2 const & | vb, | |
Cube< Float > & | data_cube | |||
) | [private] |
get data cube (npol*nchan*nvirow) in in_column_ from visbuffer and convert it to float cube
void casa::SingleDishMS::get_effective_nwave | ( | std::vector< int > const & | addwn, | |
std::vector< int > const & | rejwn, | |||
int const | wn_ulimit, | |||
std::vector< int > & | effwn | |||
) | [private] |
String casa::SingleDishMS::get_field_as_casa_string | ( | Record const & | in_data, | |
string const & | field_name | |||
) | [private] |
retrieve a field by name from Record as casa::String.
void casa::SingleDishMS::get_flag_cube | ( | vi::VisBuffer2 const & | vb, | |
Cube< Bool > & | flag_cube | |||
) | [private] |
get flag cube (npol*nchan*nvirow) from visbuffer
void casa::SingleDishMS::get_flag_from_cube | ( | Cube< Bool > & | flag_cube, | |
size_t const | row, | |||
size_t const | plane, | |||
size_t const | num_flag, | |||
bool | out_flag[] | |||
) | [private] |
retrieve a flag at the row and plane (polarization) from flag cube
void casa::SingleDishMS::get_mask_from_rec | ( | Int | spwid, | |
Matrix< Int > const & | rec_chan, | |||
Vector< Bool > & | mask, | |||
bool | initialize = true | |||
) | [private] |
void casa::SingleDishMS::get_masklist_from_mask | ( | size_t const | num_chan, | |
bool const * | mask, | |||
Vector< uInt > & | masklist | |||
) | [private] |
void casa::SingleDishMS::get_nchan_and_mask | ( | Vector< Int > const & | rec_spw, | |
Vector< Int > const & | data_spw, | |||
Matrix< Int > const & | rec_chan, | |||
size_t const | num_chan, | |||
Vector< size_t > & | nchan, | |||
Vector< Vector< Bool > > & | mask, | |||
Vector< bool > & | nchan_set, | |||
bool & | new_nchan | |||
) | [private] |
size_t casa::SingleDishMS::get_num_coeff_bloutput | ( | size_t const | bltype, | |
size_t | order, | |||
size_t & | num_coeff_max | |||
) | [private] |
static bool casa::SingleDishMS::importAsap | ( | string const & | infile, | |
string const & | outfile, | |||
bool const | parallel = false | |||
) | [static] |
static bool casa::SingleDishMS::importNRO | ( | string const & | infile, | |
string const & | outfile, | |||
bool const | parallel = false | |||
) | [static] |
void casa::SingleDishMS::initialize | ( | ) | [private] |
Utility functions ///.
void casa::SingleDishMS::interpolate_constant | ( | int const | num_chan, | |
float const * | in_spec, | |||
bool const * | in_mask, | |||
Vector< Float > & | spec | |||
) | [private] |
void casa::SingleDishMS::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 | |||
) | [private] |
string casa::SingleDishMS::name | ( | ) | const [inline] |
Definition at line 59 of file SingleDishMS.h.
References msname_.
size_t casa::SingleDishMS::NValidMask | ( | size_t const | num_mask, | |
bool const * | mask | |||
) | [private] |
returns the number of channels with true in input mask
void casa::SingleDishMS::parse_fftthresh | ( | string const & | fftthresh_str, | |
string & | fftthresh_attr, | |||
float & | fftthresh_sigma, | |||
int & | fftthresh_top | |||
) | [private] |
void casa::SingleDishMS::parse_spw | ( | string const & | in_spw, | |
Vector< Int > & | spw, | |||
Matrix< Int > & | chan, | |||
Vector< size_t > & | nchan, | |||
Vector< Vector< Bool > > & | mask, | |||
Vector< bool > & | nchan_set | |||
) | [private] |
retrieve a spectrum at the row and casa::SingleDishMS::plane | ( | polarization | ) | [private] |
MS handling functions ///.
bool casa::SingleDishMS::prepare_for_process | ( | string const & | in_column_name, | |
string const & | out_ms_name, | |||
Block< Int > const & | sortColumns, | |||
bool const | addDefaultSortCols = false | |||
) | [private] |
bool casa::SingleDishMS::prepare_for_process | ( | string const & | in_column_name, | |
string const & | out_ms_name | |||
) | [private] |
void casa::SingleDishMS::scale | ( | float const | factor, | |
string const & | in_column_name, | |||
string const & | out_ms_name | |||
) |
Multiply a scale factor to selected spectra.
void casa::SingleDishMS::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 | |||
) | [private] |
void casa::SingleDishMS::set_array_for_bltable | ( | size_t const | ipol, | |
size_t const | num_data, | |||
T const * | in_data, | |||
Array< U > & | out_data | |||
) | [inline, private] |
Definition at line 272 of file SingleDishMS.h.
bool casa::SingleDishMS::set_column | ( | MSMainEnums::PredefinedColumns const & | in, | |
MSMainEnums::PredefinedColumns & | out | |||
) | [private] |
check column 'in' is in input MS and set to 'out' if it exists.
if not, out is set to MS::UNDEFINED_COLUMN
void casa::SingleDishMS::set_flag_to_cube | ( | Cube< Bool > & | flag_cube, | |
size_t const | row, | |||
size_t const | plane, | |||
size_t const | num_flag, | |||
bool | in_flag[] | |||
) | [private] |
set a flag at the row and plane (polarization) to flag cube
void casa::SingleDishMS::set_matrix_for_bltable | ( | size_t const | num_pol, | |
size_t const | num_data_max, | |||
std::vector< std::vector< T > > const & | in_data, | |||
Array< U > & | out_data | |||
) | [inline, private] |
Definition at line 259 of file SingleDishMS.h.
References num_data.
void casa::SingleDishMS::set_spectrum_to_cube | ( | Cube< Float > & | data_cube, | |
size_t const | row, | |||
size_t const | plane, | |||
size_t const | num_data, | |||
float | in_data[] | |||
) | [private] |
set a spectrum at the row and plane (polarization) to data cube
void casa::SingleDishMS::setAverage | ( | Record const & | average, | |
bool const | verbose = true | |||
) |
void casa::SingleDishMS::setSelection | ( | Record const & | selection, | |
bool const | verbose = true | |||
) |
void casa::SingleDishMS::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
void casa::SingleDishMS::split_bloutputname | ( | string | str | ) | [private] |
split the name
std::vector<string> casa::SingleDishMS::split_string | ( | string const & | s, | |
char | delim | |||
) | [private] |
Split a string with given delimiter.
vector<int> casa::SingleDishMS::string_to_list | ( | string const & | wn_str, | |
char const | delim | |||
) | [private] |
void casa::SingleDishMS::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, | |||
vector< int > const & | edge | |||
) |
Invoke baseline subtraction (polynomial, write results in new MS).
void casa::SingleDishMS::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, | |||
vector< int > const & | edge | |||
) |
Cubicspline.
void casa::SingleDishMS::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, | |||
vector< int > const & | edge | |||
) |
Sinusoid.
void casa::SingleDishMS::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 & | param_file | |||
) |
variable fitting parameters stored in a text file
Record casa::SingleDishMS::average_ [private] |
Record of average.
Definition at line 409 of file SingleDishMS.h.
string casa::SingleDishMS::bloutputname_csv [private] |
Definition at line 417 of file SingleDishMS.h.
string casa::SingleDishMS::bloutputname_table [private] |
Definition at line 419 of file SingleDishMS.h.
string casa::SingleDishMS::bloutputname_text [private] |
Definition at line 418 of file SingleDishMS.h.
Bool casa::SingleDishMS::doSmoothing_ [private] |
smoothing flag
Definition at line 415 of file SingleDishMS.h.
MSMainEnums::PredefinedColumns casa::SingleDishMS::in_column_ [private] |
columns to read and save data
Definition at line 405 of file SingleDishMS.h.
constexpr Int casa::SingleDishMS::kNRowBlocking [static, private] |
max number of rows to get in each iteration
Definition at line 425 of file SingleDishMS.h.
the name of input MS* string casa::SingleDishMS::msname_ [private] |
retrieve a spectrum at the row and size_t const size_t const size_t const casa::SingleDishMS::num_data [private] |
Definition at line 364 of file SingleDishMS.h.
Referenced by set_matrix_for_bltable().
retrieve a spectrum at the row and size_t const size_t const size_t const float casa::SingleDishMS::out_data[] [private] |
Definition at line 364 of file SingleDishMS.h.
retrieve a spectrum at the row and size_t const size_t const casa::SingleDishMS::plane [private] |
Definition at line 364 of file SingleDishMS.h.
retrieve a spectrum at the row and size_t const casa::SingleDishMS::row [private] |
Definition at line 364 of file SingleDishMS.h.
SDMSManager* casa::SingleDishMS::sdh_ [private] |
Definition at line 411 of file SingleDishMS.h.
Record casa::SingleDishMS::selection_ [private] |
Record of selection.
Definition at line 407 of file SingleDishMS.h.
void(* casa::SingleDishMS::visCubeAccessor_)(vi::VisBuffer2 const &vb, Cube< Float > &cube) [private] |
pointer to accessor function