Changeset 912


Ignore:
Timestamp:
03/21/06 14:50:18 (18 years ago)
Author:
mar637
Message:

added polarimtery functions

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STMath.h

    r896 r912  
    102102  casa::CountedPtr<Scantable>
    103103    invertPhase( const casa::CountedPtr<Scantable>& in);
     104
    104105  casa::CountedPtr<Scantable>
    105106    rotateXYPhase( const casa::CountedPtr<Scantable>& in, float phase);
     107
    106108  casa::CountedPtr<Scantable>
    107109    rotateLinPolPhase( const casa::CountedPtr<Scantable>& in, float phase);
  • trunk/src/STMathWrapper.h

    r872 r912  
    105105    return ScantableWrapper(STMath::merge(sts)); }
    106106
     107  ScantableWrapper rotateXYPhase( const ScantableWrapper& in, float angle)
     108  { return ScantableWrapper(STMath::rotateXYPhase(in.getCP(), angle)); }
     109
     110  ScantableWrapper rotateLinPolPhase( const ScantableWrapper& in, float angle)
     111  { return ScantableWrapper(STMath::rotateLinPolPhase(in.getCP(), angle)); }
     112
     113  ScantableWrapper invertPhase( const ScantableWrapper& in )
     114  { return ScantableWrapper(STMath::invertPhase(in.getCP())); }
     115
     116  ScantableWrapper swapPolarisations( const ScantableWrapper& in )
     117  { return ScantableWrapper(STMath::swapPolarisations(in.getCP())); }
     118
    107119};
    108120
  • trunk/src/python_STMath.cpp

    r872 r912  
    2727//#                        AUSTRALIA
    2828//#
    29 //# $Id:$
     29//# $Id$
    3030//#---------------------------------------------------------------------------
    3131#include <vector>
     
    5656        .def("_opacity", &STMathWrapper::opacity)
    5757        .def("_merge", &STMathWrapper::merge)
     58        .def("_rotate_xyphase", &STMathWrapper::rotateXYPhase)
     59        .def("_rotate_linpolphase", &STMathWrapper::rotateLinPolPhase)
     60        .def("_invert_phase", &STMathWrapper::invertPhase)
     61        .def("_swap_linears", &STMathWrapper::swapPolarisations)
    5862      ;
    5963    };
Note: See TracChangeset for help on using the changeset viewer.