Ignore:
Timestamp:
11/12/08 17:04:01 (16 years ago)
Author:
TakTsutsumi
Message:

Merged recent updates (since 2007) from nrao-asap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/src/Scantable.h

    r1400 r1446  
    2222#include <casa/Utilities/CountedPtr.h>
    2323
     24#include <casa/Exceptions/Error.h>
     25
    2426#include <coordinates/Coordinates/SpectralCoordinate.h>
    2527
     
    2931
    3032#include <measures/TableMeasures/ScalarMeasColumn.h>
     33
     34#include <casa/Arrays/Vector.h>
     35#include <casa/Quanta/Quantum.h>
    3136
    3237#include "Logger.h"
     
    167172
    168173        /**
    169          * get the direction type as a string, e.g. "J2000"
     174         * get the direction as a string
    170175         * @param[in] whichrow the row number
    171176         * return the direction string
     
    277282  std::vector<uint> getScanNos() { return getNumbers(scanCol_); }
    278283  int getScan(int whichrow) const { return scanCol_(whichrow); }
     284
     285  //TT addition
     286  std::vector<uint> getMolNos() {return getNumbers(mmolidCol_); }
    279287
    280288  /**
     
    352360  std::vector<double> getRestFrequencies() const
    353361    { return moleculeTable_.getRestFrequencies(); }
    354 
     362  std::vector<double> getRestFrequency(int id) const
     363    { return moleculeTable_.getRestFrequency(id); }
     364
     365  /**
    355366  void setRestFrequencies(double rf, const std::string& name = "",
    356367                          const std::string& = "Hz");
    357   void setRestFrequencies(const std::string& name);
     368  **/
     369  // Modified by Takeshi Nakazato 05/09/2008
     370  /***
     371  void setRestFrequencies(vector<double> rf, const vector<std::string>& name = "",
     372                          const std::string& = "Hz");
     373  ***/
     374  void setRestFrequencies(vector<double> rf,
     375                          const vector<std::string>& name = vector<std::string>(1,""),
     376                          const std::string& = "Hz");
     377
     378  //void setRestFrequencies(const std::string& name);
     379  void setRestFrequencies(const vector<std::string>& name);
    358380
    359381  void shift(int npix);
     
    393415   * against the information found in GBT_GO table for
    394416   * scan number orders to get correct pairs.
    395    * @param[in] scan list
    396    * @return status
     417   * @param[in] scan list 
     418   * @return status 
    397419   */
    398420  int checkScanInfo(const std::vector<int>& scanlist) const;
    399421
    400422  /**
    401    * Get the direction as a vector, for a specific row
     423   * Get the direction as a vector, for a specific row 
    402424   * @param[in] whichrow the row numbyyer
    403    * @return the direction in a vector
     425   * @return the direction in a vector 
    404426   */
    405427  std::vector<double> getDirectionVector(int whichrow) const;
    406428
     429  /**
     430   * Reshape spectrum
     431   * @param[in] nmin, nmax minimum and maximum channel
     432   * @param[in] irow       row number
     433   *
     434   * 30/07/2008 Takeshi Nakazato 
     435   **/
     436  void reshapeSpectrum( int nmin, int nmax ) throw( casa::AipsError );
     437  void reshapeSpectrum( int nmin, int nmax, int irow ) ;
     438
     439  /**
     440   * Change channel number under fixed bandwidth
     441   * @param[in] nchan, dnu new channel number and spectral resolution
     442   * @param[in] irow       row number
     443   *
     444   * 27/08/2008 Takeshi Nakazato
     445   **/
     446  void regridChannel( int nchan, double dnu ) ;
     447  void regridChannel( int nchan, double dnu, int irow ) ;
     448 
    407449private:
    408450
Note: See TracChangeset for help on using the changeset viewer.