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/STFrequencies.h

    r2900 r3106  
    3232public:
    3333  STFrequencies() {;}
    34   explicit STFrequencies(casa::Table tab);
     34  explicit STFrequencies(casacore::Table tab);
    3535  explicit STFrequencies(const Scantable& parent);
    3636
     
    4646   * @return an index into the frequency table
    4747   */
    48   casa::uInt addEntry( casa::Double refpix, casa::Double refval,
    49                        casa::Double inc );
     48  casacore::uInt addEntry( casacore::Double refpix, casacore::Double refval,
     49                       casacore::Double inc );
    5050
    5151  /**
     
    5656   * @param id the identifier
    5757   */
    58   void getEntry( casa::Double& refpix, casa::Double& refval,
    59                  casa::Double& inc, casa::uInt id );
     58  void getEntry( casacore::Double& refpix, casacore::Double& refval,
     59                 casacore::Double& inc, casacore::uInt id );
    6060
    6161  /***
     
    6868   * 17/09/2008 Takeshi Nakazato
    6969   ***/
    70   void setEntry( casa::Double refpix, casa::Double refval,
    71                  casa::Double inc, casa::uInt id ) ;
     70  void setEntry( casacore::Double refpix, casacore::Double refval,
     71                 casacore::Double inc, casacore::uInt id ) ;
    7272
    7373
     
    7575
    7676  /**
    77    * Retrieve  the frequency values as a casa::SpectralCoordinate
     77   * Retrieve  the frequency values as a casacore::SpectralCoordinate
    7878   * @param freqID
    79    * @return casa::SpectralCoordinate
    80    */
    81   casa::SpectralCoordinate getSpectralCoordinate( casa::uInt freqID ) const;
    82 
    83   /**
    84   casa::SpectralCoordinate getSpectralCoordinate( const casa::MDirection& md,
    85                                                   const casa::MPosition& mp,
    86                                                   const casa::MEpoch& me,
    87                                                   casa::Double restfreq,
    88                                                   casa::uInt freqID
     79   * @return casacore::SpectralCoordinate
     80   */
     81  casacore::SpectralCoordinate getSpectralCoordinate( casacore::uInt freqID ) const;
     82
     83  /**
     84  casacore::SpectralCoordinate getSpectralCoordinate( const casacore::MDirection& md,
     85                                                  const casacore::MPosition& mp,
     86                                                  const casacore::MEpoch& me,
     87                                                  casacore::Double restfreq,
     88                                                  casacore::uInt freqID
    8989                                                  ) const;
    9090  **/
    91   casa::SpectralCoordinate getSpectralCoordinate( const casa::MDirection& md,
    92                                                   const casa::MPosition& mp,
    93                                                   const casa::MEpoch& me,
    94                                                   casa::Vector<casa::Double> restfreq,
    95                                                   casa::uInt freqID
     91  casacore::SpectralCoordinate getSpectralCoordinate( const casacore::MDirection& md,
     92                                                  const casacore::MPosition& mp,
     93                                                  const casacore::MEpoch& me,
     94                                                  casacore::Vector<casacore::Double> restfreq,
     95                                                  casacore::uInt freqID
    9696                                                  ) const;
    9797
    9898  /**
    9999   * Return the unit of the frequency values
    100    * @return casa::Unit
    101    */
    102   casa::Unit getUnit() const;
     100   * @return casacore::Unit
     101   */
     102  casacore::Unit getUnit() const;
    103103  std::string getUnitString() const;
    104104
    105105  /**
    106106   * Return the doppler type of the values
    107    * @return casa::MDoppler::Types
    108    */
    109   casa::MDoppler::Types getDoppler() const;
     107   * @return casacore::MDoppler::Types
     108   */
     109  casacore::MDoppler::Types getDoppler() const;
    110110  std::string getDopplerString() const;
    111111
     
    114114   * Return the frame type, e.g MFrequency::TOPO
    115115   * @param base return the base frame or the user frame
    116    * @return casa::MFrequency::Types
    117    */
    118   casa::MFrequency::Types getFrame(bool base=false) const;
     116   * @return casacore::MFrequency::Types
     117   */
     118  casacore::MFrequency::Types getFrame(bool base=false) const;
    119119
    120120  /**
     
    131131  void setFrame(const std::string& frame, bool base=false);
    132132  /**
    133    * set the frequency frame from a casa::MFrequency::Types
    134    * @param frame casa::MFrequency::Types
    135    */
    136   void setFrame(casa::MFrequency::Types frame, bool base=false);
     133   * set the frequency frame from a casacore::MFrequency::Types
     134   * @param frame casacore::MFrequency::Types
     135   */
     136  void setFrame(casacore::MFrequency::Types frame, bool base=false);
    137137  void setUnit( const std::string & unit );
    138138  void setDoppler( const std::string & doppler );
     
    144144   * @li "RESAMPLE"
    145145   */
    146   void rescale(casa::Float factor, const std::string& mode);
     146  void rescale(casacore::Float factor, const std::string& mode);
    147147
    148148  /**
     
    152152   * @return teh reference frequency
    153153   */
    154   float getRefFreq(casa::uInt id, casa::uInt channel);
     154  float getRefFreq(casacore::uInt id, casacore::uInt channel);
    155155
    156156  /**
     
    159159    * @param id the coordinate id
    160160    */
    161   void shiftRefPix(int npix, casa::uInt id);
     161  void shiftRefPix(int npix, casacore::uInt id);
    162162  /**
    163163   * Return this table or s specific row as a string representation
     
    165165   * @return a string
    166166   */
    167   std::string print(int id=-1, casa::Bool strip=casa::False) const;
     167  std::string print(int id=-1, casacore::Bool strip=casacore::False) const;
    168168
    169169  std::vector<std::string> getInfo() const;
    170170  void setInfo( const std::vector<std::string>& theinfo );
    171171
    172   const casa::String& name() const { return name_; }
     172  const casacore::String& name() const { return name_; }
    173173
    174174  /**
     
    185185   * @return boolean indicating match with any rows or not
    186186   */
    187   bool match( casa::Double refpix, casa::Double refval, casa::Double inc,
    188               casa::Double freqTolInHz, casa::uInt &id);
     187  bool match( casacore::Double refpix, casacore::Double refval, casacore::Double inc,
     188              casacore::Double freqTolInHz, casacore::uInt &id);
    189189
    190190private:
    191191
    192192  /**
    193    * setup the the column structure of the casa::table
     193   * setup the the column structure of the casacore::table
    194194   */
    195195  void setup();
     
    198198   * @param sc
    199199   * @param factor the bin factor
    200    * @return casa::SpectralCoordinate
    201    */
    202   casa::SpectralCoordinate binCsys(const casa::SpectralCoordinate& sc, casa::Int factor);
     200   * @return casacore::SpectralCoordinate
     201   */
     202  casacore::SpectralCoordinate binCsys(const casacore::SpectralCoordinate& sc, casacore::Int factor);
    203203  /**
    204204   * the actual resampling of the SpectralCoordinate as called by rescale
     
    207207   * @return
    208208   */
    209   casa::SpectralCoordinate resampleCsys(const casa::SpectralCoordinate& sc, casa::Float width);
    210 
    211   static const casa::String name_;
    212   casa::ScalarColumn<casa::Double> refvalCol_, refpixCol_, incrCol_;
     209  casacore::SpectralCoordinate resampleCsys(const casacore::SpectralCoordinate& sc, casacore::Float width);
     210
     211  static const casacore::String name_;
     212  casacore::ScalarColumn<casacore::Double> refvalCol_, refpixCol_, incrCol_;
    213213};
    214214
Note: See TracChangeset for help on using the changeset viewer.