Ignore:
Timestamp:
10/04/16 18:20:50 (8 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes/No?

Interface Changes: Yes/No?

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...


Check-in asap modifications from Jim regarding casacore namespace conversion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STLineFinder.h

    r3085 r3106  
    7070   // merged together. Any masked channel stops the extension
    7171   static void searchForWings(std::list<std::pair<int, int> > &newlines,
    72                        const casa::Vector<casa::Int> &signs,
    73                        const casa::Vector<casa::Bool> &mask,
     72                       const casacore::Vector<casacore::Int> &signs,
     73                       const casacore::Vector<casacore::Bool> &mask,
    7474                       const std::pair<int,int> &edge);
    7575protected:
     
    153153   // in_median    true if median statistics is used as opposed to average of
    154154   //              the lowest 80% of deviations (default)
    155    void setOptions(const casa::Float &in_threshold=sqrt(3.),
    156                    const casa::Int &in_min_nchan=3,
    157                    const casa::Int &in_avg_limit=8,
    158                    const casa::Float &in_box_size=0.2,
    159                    const casa::Float &in_noise_box=-1.,
    160                    const casa::Bool &in_median = casa::False);
    161 
    162    void setDetailedOptions( const casa::Int &order=9 ) ;
     155   void setOptions(const casacore::Float &in_threshold=sqrt(3.),
     156                   const casacore::Int &in_min_nchan=3,
     157                   const casacore::Int &in_avg_limit=8,
     158                   const casacore::Float &in_box_size=0.2,
     159                   const casacore::Float &in_noise_box=-1.,
     160                   const casacore::Bool &in_median = casacore::False);
     161
     162   void setDetailedOptions( const casacore::Int &order=9 ) ;
    163163
    164164   // set the scan to work with (in_scan parameter)
     
    180180   int findLines(const std::vector<bool> &in_mask,
    181181                 const std::vector<int> &in_edge = std::vector<int>(),
    182                  const casa::uInt &whichRow = 0);
     182                 const casacore::uInt &whichRow = 0);
    183183
    184184   // get the mask to mask out all lines that have been found (default)
     
    202202   // array specified, rather than the field of this class
    203203   // boxsize - a number of adjacent channels to average
    204    void averageAdjacentChannels(casa::Vector<casa::Bool> &mask2update,
    205                                const casa::Int &boxsize);
     204   void averageAdjacentChannels(casacore::Vector<casacore::Bool> &mask2update,
     205                               const casacore::Int &boxsize);
    206206
    207207   // auxiliary function to fit and subtract a polynomial from the current
    208208   // spectrum. It uses the Fitter class. This action is required before
    209209   // reducing the spectral resolution if the baseline shape is bad
    210    void subtractBaseline(const casa::Vector<casa::Bool> &temp_mask,
    211                          const casa::Int &order);
     210   void subtractBaseline(const casacore::Vector<casacore::Bool> &temp_mask,
     211                         const casacore::Int &order);
    212212
    213213   // an auxiliary function to remove all lines from the list, except the
     
    224224   //                 nothing will be done if it is empty
    225225   // max_box_nchan - channels in the running box for baseline filtering
    226    void keepStrongestOnly(const casa::Vector<casa::Bool> &temp_mask,
     226   void keepStrongestOnly(const casacore::Vector<casacore::Bool> &temp_mask,
    227227                          std::list<std::pair<int, int> > &lines2update,
    228228                          int max_box_nchan);
    229229private:
    230    casa::CountedPtr<Scantable> scan; // the scan to work with
    231    casa::Vector<casa::Bool> mask;          // associated mask
     230   casacore::CountedPtr<Scantable> scan; // the scan to work with
     231   casacore::Vector<casacore::Bool> mask;          // associated mask
    232232   std::pair<int,int> edge;                // start and stop+1 channels
    233233                                           // to work with
    234    casa::Float threshold;                  // detection threshold - the
     234   casacore::Float threshold;                  // detection threshold - the
    235235                                           // minimal signal to noise ratio
    236    casa::Double box_size;                  // size of the box for running
     236   casacore::Double box_size;              // size of the box for running
    237237                                           // mean calculations, specified as
    238238                                           // a fraction of the whole spectrum
     
    241241                                           // the detection criterion, to be
    242242                                           // a detection
    243    casa::Int   avg_limit;                  // perform the averaging of no
     243   casacore::Int   avg_limit;                  // perform the averaging of no
    244244                                           // more than in_avg_limit
    245245                                           // adjacent channels to search
    246246                                           // for broad lines. see setOptions
    247    casa::uInt last_row_used;                // the Row number specified
     247   casacore::uInt last_row_used;                // the Row number specified
    248248                                           // during the last findLines call
    249249   std::list<std::pair<int, int> > lines;  // container of start and stop+1
    250250                                           // channels of the spectral lines
    251251   // a buffer for the spectrum
    252    mutable casa::Vector<casa::Float>  spectrum;
     252   mutable casacore::Vector<casacore::Float>  spectrum;
    253253
    254254   // the box size for off-line noise estimation (if working with
    255255   // local noise. Negative value means use global noise estimate
    256256   // Default is -1 (i.e. estimate using the whole spectrum)
    257    casa::Float itsNoiseBox;
     257   casacore::Float itsNoiseBox;
    258258
    259259   // true if median statistics is used as opposed to average of
    260260   // the lowest 80% of deviations (default)
    261    casa::Bool itsUseMedian;
     261   casacore::Bool itsUseMedian;
    262262
    263263   // true if spectra and mask data should be provided from
     
    266266
    267267   // shared object for nominal throw
    268    casa::AipsError err ;
     268   casacore::AipsError err ;
    269269};
    270270
Note: See TracChangeset for help on using the changeset viewer.