// // C++ Interface: STMathWrapper // // Description: // // // Author: Malte Marquarding , (C) 2006 // // Copyright: See COPYING file that comes with this distribution // // #ifndef ASAPSTMATHWRAPPER_H #define ASAPSTMATHWRAPPER_H #include #include #include #include "STMath.h" #include "Scantable.h" #include "ScantableWrapper.h" namespace asap { /** Wrapper class to handle ScantableWrapper @author Malte Marquarding */ class STMathWrapper : public STMath { public: STMathWrapper() {;} STMathWrapper(bool insitu) : STMath(insitu) {;} virtual ~STMathWrapper() {;} ScantableWrapper average( const std::vector& in, const std::vector& mask, const std::string& weight, const std::string& avmode, bool alignfreq) { std::vector > sts; for (int i=0; i statistic(const ScantableWrapper& in, const std::vector& mask, const std::string& which) { return STMath::statistic(in.getCP(), mask, which); } ScantableWrapper bin( const ScantableWrapper& in, int width=5) { return ScantableWrapper(STMath::bin(in.getCP(), width)); } ScantableWrapper resample(const ScantableWrapper& in, const std::string& method, float width) { return ScantableWrapper(STMath::resample(in.getCP(), method, width)); } ScantableWrapper smooth(const ScantableWrapper& in, const std::string& kernel, float width) { return ScantableWrapper(STMath::smooth(in.getCP(), kernel, width)); } ScantableWrapper gainElevation(const ScantableWrapper& in, const std::vector& coeff, const std::string& filename, const std::string& method) { return ScantableWrapper(STMath::gainElevation(in.getCP(), coeff, filename, method)); } ScantableWrapper convertFlux(const ScantableWrapper& in, float d, float etaap, float jyperk) { return ScantableWrapper(STMath::convertFlux(in.getCP(), d, etaap, jyperk)); } ScantableWrapper opacity(const ScantableWrapper& in, float tau) { return ScantableWrapper(STMath::opacity(in.getCP(), tau)); } ScantableWrapper merge(const std::vector& in) { std::vector > sts; for (int i=0; i