Changeset 18 for trunk/src/SDContainer.h


Ignore:
Timestamp:
06/30/04 16:34:24 (20 years ago)
Author:
mmarquar
Message:

Moved SDHeader from SDReader to SDConatiner. Added header to SDMemTable. Added access funtions to nif,nbema,npol,nchan

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDContainer.h

    r16 r18  
    3232#define _SDCONTAINER_H_
    3333
     34#include <vector>
     35
    3436#include <aips/aips.h>
    3537#include <aips/Utilities/String.h>
     
    4143namespace atnf_sd {
    4244
     45
     46struct SDHeader {
     47  Int nchan;
     48  Int npol;
     49  Int nif;
     50  Int nbeam;
     51  String observer;
     52  String project;
     53  String obstype;
     54  String antennaname;
     55  Vector<Double> antennaposition;
     56  Float equinox;
     57  String freqref;
     58  Double reffreq;
     59  Double bandwidth;
     60  Double utc;
     61  void print() const ;
     62};
     63
    4364class SDFrequencyTable {
    4465
    4566public:
    4667
    47   SDFrequencyTable(Double refPix, Double refVal, Double inc) {;}
     68  SDFrequencyTable() {;}
    4869  // returns the index into the table
    4970  // this creates a new one or returns an existing one
     
    5273  Int length() const { return nFreq_;};// # of stored Frequencies
    5374  // returns a Table with nRows == nFreq, and three cols
    54 
     75 
    5576private:
    5677  Int nFreq_;
    57   Vector<Double> refPix_;
    58   Vector<Double> revVal_;
    59   Vector<Double> increment_;
     78  std::vector<double> refPix_;
     79  std::vector<double> revVal_;
     80  std::vector<double> increment_;
    6081};
    6182
Note: See TracChangeset for help on using the changeset viewer.