Changeset 2177 for trunk/src/STMath.h


Ignore:
Timestamp:
05/20/11 18:53:58 (13 years ago)
Author:
WataruKawasaki
Message:

New Development: Yes

JIRA Issue: Yes CAS-2828

Ready for Test: Yes

Interface Changes:

What Interface Changed:

Test Programs:

Put in Release Notes:

Module(s): SD

Description: created a tool function sd.scantable.fft() to apply FFT for scantable data.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STMath.h

    r1937 r2177  
    1313#define ASAPSTMATH_H
    1414
     15#include <map>
    1516#include <string>
    16 #include <map>
    1717
    1818#include <casa/aips.h>
     19#include <casa/Arrays/Vector.h>
     20#include <casa/BasicSL/String.h>
    1921#include <casa/Utilities/CountedPtr.h>
    20 #include <casa/BasicSL/String.h>
    21 #include <casa/Arrays/Vector.h>
     22
     23#include <scimath/Mathematics/FFTServer.h>
    2224#include <scimath/Mathematics/InterpolateArray1D.h>
    2325
     26#include "Logger.h"
    2427#include "Scantable.h"
    2528#include "STDefs.h"
    2629#include "STPol.h"
    27 #include "Logger.h"
    2830
    2931namespace asap {
     
    345347    lagFlag( const casa::CountedPtr<Scantable>& in, double start,
    346348             double end, const std::string& mode="frequency");
     349
     350  std::vector<float>
     351    fft( const casa::CountedPtr<Scantable>& in,
     352         const std::vector<int>& whichrow,
     353         bool getRealImag=false );
    347354
    348355  // test for average spectra with different channel/resolution
     
    426433                                        int index ) ;
    427434  double getMJD( string strtime ) ;
     435  void doFFT( std::vector<float>& out,
     436              casa::FFTServer< casa::Float, casa::Complex >& ffts,
     437              bool getRealImag,
     438              casa::Vector<casa::Float>& spec,
     439              casa::Vector<casa::uChar>& flag ) ;
     440  void doZeroOrderInterpolation( casa::Vector<casa::Float>& spec,
     441                                 casa::Vector<casa::uChar>& flag) ;
    428442
    429443  bool insitu_;
Note: See TracChangeset for help on using the changeset viewer.