Changeset 836 for trunk/src


Ignore:
Timestamp:
02/20/06 13:47:07 (19 years ago)
Author:
mar637
Message:

documentation update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STFrequencies.h

    r830 r836  
    2727
    2828@author Malte Marquarding
     29@brief The frequency subtable of the Scantable
    2930*/
    3031class STFrequencies : public STSubTable {
     
    4344                       casa::Double inc );
    4445
     46  /**
     47   * Retrieve the frequency values for a specific id via references
     48   * @param refpix the reference pixel
     49   * @param refval the reference value
     50   * @param inc the increment
     51   * @param id the identifier
     52   */
    4553  void getEntry( casa::Double& refpix, casa::Double& refval,
    4654                 casa::Double& inc, casa::uInt id );
    4755
     56
     57  /**
     58   * Retrieve  the frequency values as a casa::SpectralCoordinate
     59   * @param freqID
     60   * @return casa::SpectralCoordinate
     61   */
    4862  casa::SpectralCoordinate getSpectralCoordinate( casa::uInt freqID );
    4963
     64  /**
     65   * Return the unit of the frequency values
     66   * @return casa::Unit
     67   */
    5068  const casa::Unit& getUnit() const;
     69  /**
     70   * Return the doppler type of the values
     71   * @return casa::MDoppler
     72   */
    5173  casa::MDoppler getDoppler() const;
    5274
    5375
     76  /**
     77   * Return the frame type, e.g MFrequency::TOPO
     78   * @return casa::MFrequency::Types
     79   */
    5480  casa::MFrequency::Types getFrame() const;
     81
     82  /**
     83   * Return a string representation of the frame type, e.g TOPO
     84   * @return
     85   */
    5586  std::string getFrameString() const;
     87
     88  /**
     89   * set the frequency frame from a string value
     90   * @param frame a string identifier
     91   */
    5692  void setFrame(const std::string& frame);
     93  /**
     94   * set the frequency frame from a casa::MFrequency::Types
     95   * @param frame casa::MFrequency::Types
     96   */
    5797  void setFrame(casa::MFrequency::Types frame);
    5898
     99  /**
     100   * rescale the whole table by a given factor
     101   * @param factor the factor to bin or resample by
     102   * @param mode the rescaling mode
     103   * @li "BIN"
     104   * @li "RESAMPLE"
     105   */
    59106  void rescale(casa::Float factor, const std::string& mode);
    60107
     108  /**
     109   * get the reference frequency at a given channel for a specidif identifier
     110   * @param id the identifier
     111   * @param channel the channel number
     112   * @return teh reference frequency
     113   */
    61114  float getRefFreq(casa::uInt id, casa::uInt channel);
    62115
     116
     117  /**
     118   * Rteun this table or s specific row as a string representation
     119   * @param id the identifier. If id<0 all rows are returned
     120   * @return a string
     121   */
    63122  std::string print(int id=-1);
    64123
    65124private:
     125
     126  /**
     127   * setup the the column structure of the casa::table
     128   */
    66129  void setup();
     130  /**
     131   * the actual binning of the SpectralCoordinate as called by rescale
     132   * @param sc
     133   * @param factor the bin factor
     134   * @return casa::SpectralCoordinate
     135   */
    67136  casa::SpectralCoordinate binCsys(const casa::SpectralCoordinate& sc, casa::Int factor);
     137  /**
     138   * the actual resampling of the SpectralCoordinate as called by rescale
     139   * @param sc
     140   * @param width the resacle width. Can be decimal.
     141   * @return
     142   */
    68143  casa::SpectralCoordinate resampleCsys(const casa::SpectralCoordinate& sc, casa::Float width);
    69144
    70145  static const casa::String name_;
    71   //casa::Table table_;
    72   //casa::ScalarColumn<casa::uInt> freqidCol_;
    73146  casa::ScalarColumn<casa::Double> refvalCol_, refpixCol_, incrCol_;
    74147};
Note: See TracChangeset for help on using the changeset viewer.