Changeset 286 for trunk/src/SDMemTable.h


Ignore:
Timestamp:
01/24/05 17:53:53 (19 years ago)
Author:
kil064
Message:

consolidate some SpectralCoordinate? creation activities in getSpectralCoordinate
functions. Add some other small convenience functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTable.h

    r281 r286  
    9797  std::string getTime(casa::Int whichRow=0,
    9898                      casa::Bool showDate=casa::False) const ;
     99  casa::MEpoch getEpoch(casa::Int whichRow=0) const;
     100  casa::MDirection getDirection(casa::Int whichRow=0,
     101                                casa::Bool refBeam=casa::False) const;
     102//
    99103  std::string getSourceName(casa::Int whichRow=0) const;
    100104  double getInterval(casa::Int whichRow=0) const;
     
    164168                                                  casa::False) const;
    165169
    166   casa::SpectralCoordinate getCoordinate(casa::uInt whichIdx) const;
     170  // Return SC, setting only the basic construction state (i.e.
     171  // no conversion or velocity or rest frequency state)
     172  casa::SpectralCoordinate getSpectralCoordinate(casa::uInt whichIdx) const;
     173
     174  // Return SC. Set velocity conversion state (unit,doppler),
     175  // set rest frequencies.  If row number given (>-0), also set
     176  // frame conversion layer (needs direction & time which require row)
     177  casa::SpectralCoordinate getSpectralCoordinate(casa::uInt whichIdx, casa::uInt row) const;
     178
     179  // Set just the reference value, pixel and increment into the table
     180  // No other state is extracted.
    167181  casa::Bool setCoordinate(const casa::SpectralCoordinate& speccord,
    168182                           casa::uInt whichIdx);
     
    170184  casa::Int nCoordinates() const;
    171185
    172 
    173186  std::vector<double> getAbcissa(int whichRow=0) const;
    174187  std::string getAbcissaString(casa::Int whichRow=0) const;
    175188
    176 // Get MDirection for this row
    177   casa::MDirection getDirection(casa::Int whichRow=0,
    178                                 casa::Bool refBeam=casa::False) const;
    179 
    180 // Get gloabl Direction reference
     189// Get global reference  types
    181190  casa::MDirection::Types getDirectionReference() const;
    182 
    183 // Get global Time reference
    184191  casa::MEpoch::Types getTimeReference() const;
     192
     193// Get global antenna position
     194  casa::MPosition getAntennaPosition() const;
    185195
    186196// Helper function to check instrument (antenna) name and give enum
Note: See TracChangeset for help on using the changeset viewer.