Ignore:
Timestamp:
03/03/15 18:26:31 (9 years ago)
Author:
Kana Sugimoto
Message:

New Development: Yes

JIRA Issue: Yes (CAS-6929)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): asap as a whole

Description: committing Darrell's changes to make asap work with merged casacore.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STLineFinder.h

    r2943 r3029  
    6262   // the new line
    6363   static void addNewSearchResult(const std::list<std::pair<int, int> >
    64                   &newlines, std::list<std::pair<int, int> > &lines_list)
    65                            throw(casa::AipsError);
     64                  &newlines, std::list<std::pair<int, int> > &lines_list);
    6665
    6766   // extend all line ranges to the point where a value stored in the
     
    7372                       const casa::Vector<casa::Int> &signs,
    7473                       const casa::Vector<casa::Bool> &mask,
    75                        const std::pair<int,int> &edge)
    76                            throw(casa::AipsError);
     74                       const std::pair<int,int> &edge);
    7775protected:
    7876
     
    8684        // return true if line2 intersects with line1 with at least one
    8785        // common channel, and false otherwise
    88         bool operator()(const std::pair<int,int> &line2) const throw();
     86        bool operator()(const std::pair<int,int> &line2) const;
    8987   };
    9088
     
    9896        // update temp_line with a union of temp_line and new_line
    9997        // provided there is no gap between the lines
    100         void operator()(const std::pair<int,int> &new_line) throw();
     98        void operator()(const std::pair<int,int> &new_line);
    10199        // return the result (temp_line)
    102         const std::pair<int,int>& result() const throw();
     100        const std::pair<int,int>& result() const;
    103101   };
    104102
     
    113111        // return true if line2 should be placed later than line1
    114112        // in the ordered list (so, it is at greater channel numbers)
    115         bool operator()(const std::pair<int,int> &line2) const throw();
     113        bool operator()(const std::pair<int,int> &line2) const;
    116114   };
    117115
     
    129127
    130128struct STLineFinder : protected LFLineListOperations {
    131    STLineFinder() throw();
    132    virtual ~STLineFinder() throw(casa::AipsError);
     129   STLineFinder();
     130   virtual ~STLineFinder();
    133131
    134132   // set the parameters controlling algorithm
     
    160158                   const casa::Float &in_box_size=0.2,
    161159                   const casa::Float &in_noise_box=-1.,
    162                    const casa::Bool &in_median = casa::False) throw();
     160                   const casa::Bool &in_median = casa::False);
    163161
    164162   void setDetailedOptions( const casa::Int &order=9 ) ;
    165163
    166164   // set the scan to work with (in_scan parameter)
    167    void setScan(const ScantableWrapper &in_scan) throw(casa::AipsError);
     165   void setScan(const ScantableWrapper &in_scan);
    168166
    169167   // set spectrum data to work with. this is a method to allow linefinder work
     
    182180   int findLines(const std::vector<bool> &in_mask,
    183181                 const std::vector<int> &in_edge = std::vector<int>(),
    184                  const casa::uInt &whichRow = 0) throw(casa::AipsError);
     182                 const casa::uInt &whichRow = 0);
    185183
    186184   // get the mask to mask out all lines that have been found (default)
     
    189187   //       in setScan) or dropped out by the edge parameter (in_edge
    190188   //       in setScan) are still excluded regardless on the invert option
    191    std::vector<bool> getMask(bool invert=false) const throw(casa::AipsError);
     189   std::vector<bool> getMask(bool invert=false) const;
    192190
    193191   // get range for all lines found. The same units as used in the scan
    194192   // will be returned (e.g. velocity instead of channels).
    195    std::vector<double>   getLineRanges() const throw(casa::AipsError);
     193   std::vector<double>   getLineRanges() const;
    196194   // The same as getLineRanges, but channels are always used to specify
    197195   // the range
    198    std::vector<int> getLineRangesInChannels() const throw(casa::AipsError);
     196   std::vector<int> getLineRangesInChannels() const;
    199197protected:
    200198   // auxiliary function to average adjacent channels and update the mask
     
    205203   // boxsize - a number of adjacent channels to average
    206204   void averageAdjacentChannels(casa::Vector<casa::Bool> &mask2update,
    207                                const casa::Int &boxsize)
    208                                throw(casa::AipsError);
     205                               const casa::Int &boxsize);
    209206
    210207   // auxiliary function to fit and subtract a polynomial from the current
     
    212209   // reducing the spectral resolution if the baseline shape is bad
    213210   void subtractBaseline(const casa::Vector<casa::Bool> &temp_mask,
    214                          const casa::Int &order) throw(casa::AipsError);
     211                         const casa::Int &order);
    215212
    216213   // an auxiliary function to remove all lines from the list, except the
     
    229226   void keepStrongestOnly(const casa::Vector<casa::Bool> &temp_mask,
    230227                          std::list<std::pair<int, int> > &lines2update,
    231                           int max_box_nchan)
    232                                       throw (casa::AipsError);
     228                          int max_box_nchan);
    233229private:
    234230   casa::CountedPtr<Scantable> scan; // the scan to work with
Note: See TracChangeset for help on using the changeset viewer.