Changeset 1111 for trunk/src/Scantable.h


Ignore:
Timestamp:
08/04/06 12:06:38 (18 years ago)
Author:
mar637
Message:

add getNumbers utility function, which is now called by all function which retrieve numbers from the Scantable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.h

    r1104 r1111  
    250250  std::string getPolType() const;
    251251
     252
     253  /**
     254   * Get the number of integartion cycles
     255   * @param scanno the scan number to get the number of rows for.
     256   * If scanno<0 the number is retrieved from the header.
     257   * @return the number of rows (for the specified scanno)
     258   */
     259  int nrow(int scanno=-1) const;
     260
     261  int getBeam(int whichrow) const;
     262  std::vector<uint> getBeamNos() { return getNumbers(beamCol_); }
     263
     264  int getIF(int whichrow) const;
     265  std::vector<uint> getIFNos() { return getNumbers(ifCol_); }
     266
     267  int getPol(int whichrow) const;
     268  std::vector<uint> getPolNos() { return getNumbers(polCol_); }
     269
     270  std::vector<uint> getScanNos() { return getNumbers(scanCol_); }
     271  int getScan(int whichrow) const { return scanCol_(whichrow); }
     272
    252273  /**
    253274   * Get the number of channels in the data or a specific IF. This currently
     
    258279   */
    259280  int nchan(int ifno=-1) const;
    260 
    261   /**
    262    * Get the number of integartion cycles
    263    * @param scanno the scan number to get the number of rows for.
    264    * If scanno<0 the number is retrieved from the header.
    265    * @return the number of rows (for the specified scanno)
    266    */
    267   int nrow(int scanno=-1) const;
     281  int getChannels(int whichrow) const;
    268282
    269283  int ncycle(int scanno=-1) const;
    270 
    271   int getBeam(int whichrow) const;
    272   int getIF(int whichrow) const;
    273   int getPol(int whichrow) const;
    274284  int getCycle(int whichrow) const { return cycleCol_(whichrow); }
    275   int getScan(int whichrow) const { return scanCol_(whichrow); }
    276   int getChannels(int whichrow) const;
    277285
    278286  double getInterval(int whichrow) const
     
    402410   */
    403411  int rowToScanIndex(int therow);
     412
     413  std::vector<uint> getNumbers(casa::ScalarColumn<casa::uInt>& col);
    404414
    405415  static const casa::uInt version_ = 2;
Note: See TracChangeset for help on using the changeset viewer.