Changeset 47


Ignore:
Timestamp:
07/15/04 14:30:27 (20 years ago)
Author:
mmarquar
Message:

Added resize function.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDContainer.cc

    r34 r47  
    4141void SDHeader::print() const {
    4242  MVTime mvt(this->utc);
    43 
     43  mvt.setFormat(MVTime::YMD);
    4444  cout << "Observer: " << this->observer << endl
    4545       << "Project: " << this->project << endl
     
    5252       << "Bandwidth: "  << this->bandwidth << endl
    5353       << "Time (utc): "
    54        << mvt.string()
     54       << mvt
    5555       << endl;
    5656  //setprecision(10) << this->utc << endl;
     
    8585
    8686SDContainer::~SDContainer() {
     87}
     88
     89Bool SDContainer::resize(IPosition shp) {
     90  nBeam_ = shp(0);
     91  nIF_ = shp(1);
     92  nPol_ = shp(2);
     93  nChan_ = shp(3);
     94  spectrum_.resize(shp);
     95  flags_.resize(shp);
     96  tsys_.resize(shp);
     97  freqidx_.resize(shp(1));
    8798}
    8899
  • trunk/src/SDContainer.h

    r34 r47  
    101101  virtual ~SDContainer();
    102102
     103  Bool resize(IPosition shp);
     104
    103105  Bool setSpectrum(const Matrix<Float>& spec,
    104106                   uInt whichBeam, uInt whichIF);
Note: See TracChangeset for help on using the changeset viewer.