#include <calibrater_cmpt.h>
// TODO: WRITE YOUR DESCRIPTION HERE!
Definition at line 35 of file calibrater_cmpt.h.
Public Member Functions | |
| calibrater () | |
| virtual | ~calibrater () |
| bool | open (const std::string &filename, const bool compress=false) |
| bool | setdata (const std::string &mode="none", const int nchan=1, const int start=0, const int step=1, const Quantity &mstart=Quantity(std::vector< double >(1, 0.0),"km/s"), const Quantity &mstep=Quantity(std::vector< double >(1, 0.0),"km/s"), const std::vector< double > &uvrange=std::vector< double >(1, 0), const std::string &msselect=" ") |
| bool | selectvis (const::casac::variant &time=::casac::initialize_variant(""), const ::casac::variant &spw=::casac::initialize_variant(""), const ::casac::variant &scan=::casac::initialize_variant(""), const ::casac::variant &field=::casac::initialize_variant(""), const ::casac::variant &baseline=::casac::initialize_variant(""), const ::casac::variant &uvrange=::casac::initialize_variant(""), const std::string &chanmode="none", const int nchan=1, const int start=0, const int step=1, const Quantity &mstart=Quantity(std::vector< double >(1, 0.0),"km/s"), const Quantity &mstep=Quantity(std::vector< double >(1, 0.0),"km/s"), const std::string &msselect="") |
| bool | setapply (const std::string &type="", const double t=0.0, const std::string &table="", const std::string &interp="linear", const std::string &select="", const bool calwt=false, const std::vector< int > &spwmap=std::vector< int >(1,-1), const double opacity=0.0) |
| bool | setapply2 (const std::string &type="", const double t=0.0, const std::string &table="", const ::casac::variant &field=::casac::initialize_variant(""), const std::string &interp="linear", const std::string &select="", const bool calwt=false, const std::vector< int > &spwmap=std::vector< int >(1,-1), const double opacity=0.0) |
| bool | setsolve (const std::string &type, const double t, const std::string &table, const double preavg=-1.0, const bool phaseonly=false, const int refant=-1, const bool append=false, const std::string &cfcache="", const double painc=360.0) |
| bool | setmodel (const std::string &modelimage) |
| bool | setsolve2 (const std::string &type, const ::casac::variant &t, const std::string &table, const bool append=false, const double preavg=-1.0, const bool phaseonly=false, const std::string &apmode="AP", const ::casac::variant &refant=::casac::initialize_variant(""), const bool solnorm=false, const float minsnr=0.0, const std::string &combine="", const std::string &cfcache="", const float painc=360.0) |
| bool | setsolvegainspline (const std::string &table="", const bool append=false, const std::string &mode="PHAS", const double splinetime=10800, const double preavg=0.0, const int refant=-1, const int npointaver=10, const double phasewrap=250) |
| bool | setsolvegainspline2 (const std::string &table="", const bool append=false, const std::string &mode="PHAS", const double splinetime=10800, const double preavg=0.0, const int npointaver=10, const double phasewrap=250, const ::casac::variant &refant=::casac::initialize_variant("")) |
| bool | setsolvebandpoly (const std::string &table="", const bool append=false, const int degamp=3, const int degphase=3, const bool visnorm=false, const bool bpnorm=true, const int maskcenter=0, const double maskedge=5.0, const int refant=-1) |
| bool | setsolvebandpoly2 (const std::string &table="", const bool append=false, const int degamp=3, const int degphase=3, const bool visnorm=false, const bool solnorm=true, const int maskcenter=0, const double maskedge=5.0, const ::casac::variant &refant=::casac::initialize_variant("")) |
| bool | state () |
| bool | reset (const bool apply=true, const bool solve=true) |
| bool | initcalset (const int calset=1) |
| bool | solve () |
| bool | correct () |
| bool | corrupt () |
| bool | fluxscale (std::vector< double > &fluxd, const std::string &tablein, const ::casac::variant &reference=::casac::initialize_variant(""), const std::string &tableout="", const ::casac::variant &transfer=::casac::initialize_variant(""), const bool append=false, const std::vector< int > &refspwmap=std::vector< int >(1,-1)) |
| bool | fluxscale2 (std::vector< double > &fluxd, const std::string &tablein, const ::casac::variant &reference=::casac::initialize_variant(""), const std::string &tableout="", const ::casac::variant &transfer=::casac::initialize_variant(""), const bool append=false, const std::vector< int > &refspwmap=std::vector< int >(1,-1)) |
| bool | accumulate (const std::string &tablein="", const std::string &incrtable="", const std::string &tableout="", const::casac::variant &field=::casac::initialize_variant(""), const ::casac::variant &calfield=::casac::initialize_variant(""), const std::string &interp="linear", const double t=-1.0, const std::vector< int > &spwmap=std::vector< int >(1,-1)) |
| bool | accumulate2 (const std::string &tablein="", const std::string &incrtable="", const std::string &tableout="", const::casac::variant &field=::casac::initialize_variant(""), const ::casac::variant &calfield=::casac::initialize_variant(""), const std::string &interp="linear", const double t=-1.0, const std::vector< int > &spwmap=std::vector< int >(1,-1)) |
| bool | smooth (const std::string &tablein, const std::string &tableout, const ::casac::variant &field=::casac::initialize_variant(""), const std::string &smoothtype="median", const double smoothtime=60.0) |
| bool | smooth2 (const std::string &tablein, const std::string &tableout, const ::casac::variant &field=::casac::initialize_variant(""), const std::string &smoothtype="median", const double smoothtime=60.0) |
| bool | listcal (const std::string &caltable, const ::casac::variant &field, const::casac::variant &antenna, const::casac::variant &spw, const std::string &listfile, const int pagerows=50) |
| bool | posangcal (const std::vector< double > &posangcor, const std::string &tablein, const std::string &tableout="") |
| bool | linpolcor (const std::string &tablein="", const std::string &tableout="", const std::vector< std::string > &fields=std::vector< std::string >(1,"""")) |
| bool | plotcal (const std::vector< int > &antennas, const std::vector< int > &fields, const std::vector< int > &spwids, const std::string &plottype="AMP", const std::string &tablename="", const int polarization=1, const bool multiplot=false, const int nx=1, const int ny=1, const std::string &psfile="") |
| std::vector< double > | modelfit (const std::vector< bool > &vary, const int niter=0, const std::string &compshape="P", const std::vector< double > &par=::casac::initialize_vector(3,(double) 1.0,(double) 0.0,(double) 0.0), const std::string &file="") |
| bool | close () |
| bool | done () |
| casac::calibrater::calibrater | ( | ) |
| virtual casac::calibrater::~calibrater | ( | ) | [virtual] |
| bool casac::calibrater::open | ( | const std::string & | filename, | |
| const bool | compress = false | |||
| ) |
| bool casac::calibrater::setdata | ( | const std::string & | mode = "none", |
|
| const int | nchan = 1, |
|||
| const int | start = 0, |
|||
| const int | step = 1, |
|||
| const Quantity & | mstart = Quantity(std::vector< double >(1, 0.0),"km/s"), |
|||
| const Quantity & | mstep = Quantity(std::vector< double >(1, 0.0),"km/s"), |
|||
| const std::vector< double > & | uvrange = std::vector< double >(1, 0), |
|||
| const std::string & | msselect = " " | |||
| ) |
| bool casac::calibrater::selectvis | ( | const ::casac::variant & | time = ::casac::initialize_variant(""), |
|
| const ::casac::variant & | spw = ::casac::initialize_variant(""), |
|||
| const ::casac::variant & | scan = ::casac::initialize_variant(""), |
|||
| const ::casac::variant & | field = ::casac::initialize_variant(""), |
|||
| const ::casac::variant & | baseline = ::casac::initialize_variant(""), |
|||
| const ::casac::variant & | uvrange = ::casac::initialize_variant(""), |
|||
| const std::string & | chanmode = "none", |
|||
| const int | nchan = 1, |
|||
| const int | start = 0, |
|||
| const int | step = 1, |
|||
| const Quantity & | mstart = Quantity(std::vector< double >(1, 0.0),"km/s"), |
|||
| const Quantity & | mstep = Quantity(std::vector< double >(1, 0.0),"km/s"), |
|||
| const std::string & | msselect = "" | |||
| ) |
| bool casac::calibrater::setapply | ( | const std::string & | type = "", |
|
| const double | t = 0.0, |
|||
| const std::string & | table = "", |
|||
| const std::string & | interp = "linear", |
|||
| const std::string & | select = "", |
|||
| const bool | calwt = false, |
|||
| const std::vector< int > & | spwmap = std::vector< int >(1,-1), |
|||
| const double | opacity = 0.0 | |||
| ) |
| bool casac::calibrater::setapply2 | ( | const std::string & | type = "", |
|
| const double | t = 0.0, |
|||
| const std::string & | table = "", |
|||
| const ::casac::variant & | field = ::casac::initialize_variant(""), |
|||
| const std::string & | interp = "linear", |
|||
| const std::string & | select = "", |
|||
| const bool | calwt = false, |
|||
| const std::vector< int > & | spwmap = std::vector< int >(1,-1), |
|||
| const double | opacity = 0.0 | |||
| ) |
| bool casac::calibrater::setsolve | ( | const std::string & | type, | |
| const double | t, | |||
| const std::string & | table, | |||
| const double | preavg = -1.0, |
|||
| const bool | phaseonly = false, |
|||
| const int | refant = -1, |
|||
| const bool | append = false, |
|||
| const std::string & | cfcache = "", |
|||
| const double | painc = 360.0 | |||
| ) |
| bool casac::calibrater::setmodel | ( | const std::string & | modelimage | ) |
| bool casac::calibrater::setsolve2 | ( | const std::string & | type, | |
| const ::casac::variant & | t, | |||
| const std::string & | table, | |||
| const bool | append = false, |
|||
| const double | preavg = -1.0, |
|||
| const bool | phaseonly = false, |
|||
| const std::string & | apmode = "AP", |
|||
| const ::casac::variant & | refant = ::casac::initialize_variant(""), |
|||
| const bool | solnorm = false, |
|||
| const float | minsnr = 0.0, |
|||
| const std::string & | combine = "", |
|||
| const std::string & | cfcache = "", |
|||
| const float | painc = 360.0 | |||
| ) |
| bool casac::calibrater::setsolvegainspline | ( | const std::string & | table = "", |
|
| const bool | append = false, |
|||
| const std::string & | mode = "PHAS", |
|||
| const double | splinetime = 10800, |
|||
| const double | preavg = 0.0, |
|||
| const int | refant = -1, |
|||
| const int | npointaver = 10, |
|||
| const double | phasewrap = 250 | |||
| ) |
| bool casac::calibrater::setsolvegainspline2 | ( | const std::string & | table = "", |
|
| const bool | append = false, |
|||
| const std::string & | mode = "PHAS", |
|||
| const double | splinetime = 10800, |
|||
| const double | preavg = 0.0, |
|||
| const int | npointaver = 10, |
|||
| const double | phasewrap = 250, |
|||
| const ::casac::variant & | refant = ::casac::initialize_variant("") | |||
| ) |
| bool casac::calibrater::setsolvebandpoly | ( | const std::string & | table = "", |
|
| const bool | append = false, |
|||
| const int | degamp = 3, |
|||
| const int | degphase = 3, |
|||
| const bool | visnorm = false, |
|||
| const bool | bpnorm = true, |
|||
| const int | maskcenter = 0, |
|||
| const double | maskedge = 5.0, |
|||
| const int | refant = -1 | |||
| ) |
| bool casac::calibrater::setsolvebandpoly2 | ( | const std::string & | table = "", |
|
| const bool | append = false, |
|||
| const int | degamp = 3, |
|||
| const int | degphase = 3, |
|||
| const bool | visnorm = false, |
|||
| const bool | solnorm = true, |
|||
| const int | maskcenter = 0, |
|||
| const double | maskedge = 5.0, |
|||
| const ::casac::variant & | refant = ::casac::initialize_variant("") | |||
| ) |
| bool casac::calibrater::state | ( | ) |
| bool casac::calibrater::reset | ( | const bool | apply = true, |
|
| const bool | solve = true | |||
| ) |
| bool casac::calibrater::initcalset | ( | const int | calset = 1 |
) |
| bool casac::calibrater::solve | ( | ) |
| bool casac::calibrater::correct | ( | ) |
| bool casac::calibrater::corrupt | ( | ) |
| bool casac::calibrater::fluxscale | ( | std::vector< double > & | fluxd, | |
| const std::string & | tablein, | |||
| const ::casac::variant & | reference = ::casac::initialize_variant(""), |
|||
| const std::string & | tableout = "", |
|||
| const ::casac::variant & | transfer = ::casac::initialize_variant(""), |
|||
| const bool | append = false, |
|||
| const std::vector< int > & | refspwmap = std::vector< int >(1,-1) | |||
| ) |
| bool casac::calibrater::fluxscale2 | ( | std::vector< double > & | fluxd, | |
| const std::string & | tablein, | |||
| const ::casac::variant & | reference = ::casac::initialize_variant(""), |
|||
| const std::string & | tableout = "", |
|||
| const ::casac::variant & | transfer = ::casac::initialize_variant(""), |
|||
| const bool | append = false, |
|||
| const std::vector< int > & | refspwmap = std::vector< int >(1,-1) | |||
| ) |
| bool casac::calibrater::accumulate | ( | const std::string & | tablein = "", |
|
| const std::string & | incrtable = "", |
|||
| const std::string & | tableout = "", |
|||
| const ::casac::variant & | field = ::casac::initialize_variant(""), |
|||
| const ::casac::variant & | calfield = ::casac::initialize_variant(""), |
|||
| const std::string & | interp = "linear", |
|||
| const double | t = -1.0, |
|||
| const std::vector< int > & | spwmap = std::vector< int >(1,-1) | |||
| ) |
| bool casac::calibrater::accumulate2 | ( | const std::string & | tablein = "", |
|
| const std::string & | incrtable = "", |
|||
| const std::string & | tableout = "", |
|||
| const ::casac::variant & | field = ::casac::initialize_variant(""), |
|||
| const ::casac::variant & | calfield = ::casac::initialize_variant(""), |
|||
| const std::string & | interp = "linear", |
|||
| const double | t = -1.0, |
|||
| const std::vector< int > & | spwmap = std::vector< int >(1,-1) | |||
| ) |
| bool casac::calibrater::smooth | ( | const std::string & | tablein, | |
| const std::string & | tableout, | |||
| const ::casac::variant & | field = ::casac::initialize_variant(""), |
|||
| const std::string & | smoothtype = "median", |
|||
| const double | smoothtime = 60.0 | |||
| ) |
| bool casac::calibrater::smooth2 | ( | const std::string & | tablein, | |
| const std::string & | tableout, | |||
| const ::casac::variant & | field = ::casac::initialize_variant(""), |
|||
| const std::string & | smoothtype = "median", |
|||
| const double | smoothtime = 60.0 | |||
| ) |
| bool casac::calibrater::listcal | ( | const std::string & | caltable, | |
| const ::casac::variant & | field, | |||
| const ::casac::variant & | antenna, | |||
| const ::casac::variant & | spw, | |||
| const std::string & | listfile, | |||
| const int | pagerows = 50 | |||
| ) |
| bool casac::calibrater::posangcal | ( | const std::vector< double > & | posangcor, | |
| const std::string & | tablein, | |||
| const std::string & | tableout = "" | |||
| ) |
| bool casac::calibrater::linpolcor | ( | const std::string & | tablein = "", |
|
| const std::string & | tableout = "", |
|||
| const std::vector< std::string > & | fields = std::vector< std::string >(1,"""") | |||
| ) |
| bool casac::calibrater::plotcal | ( | const std::vector< int > & | antennas, | |
| const std::vector< int > & | fields, | |||
| const std::vector< int > & | spwids, | |||
| const std::string & | plottype = "AMP", |
|||
| const std::string & | tablename = "", |
|||
| const int | polarization = 1, |
|||
| const bool | multiplot = false, |
|||
| const int | nx = 1, |
|||
| const int | ny = 1, |
|||
| const std::string & | psfile = "" | |||
| ) |
| std::vector<double> casac::calibrater::modelfit | ( | const std::vector< bool > & | vary, | |
| const int | niter = 0, |
|||
| const std::string & | compshape = "P", |
|||
| const std::vector< double > & | par = ::casac::initialize_vector(3,(double) 1.0,(double) 0.0,(double) 0.0), |
|||
| const std::string & | file = "" | |||
| ) |
| bool casac::calibrater::close | ( | ) |
| bool casac::calibrater::done | ( | ) |
1.5.1