Changeset 1189 for trunk/src/Scantable.cpp
- Timestamp:
- 08/28/06 12:28:27 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r1170 r1189 56 56 #include "Scantable.h" 57 57 #include "STPolLinear.h" 58 #include "STPolCircular.h" 58 59 #include "STPolStokes.h" 59 60 #include "STAttr.h" … … 69 70 if ( factories_.empty() ) { 70 71 Scantable::factories_["linear"] = &STPolLinear::myFactory; 72 Scantable::factories_["circular"] = &STPolStokes::myFactory; 71 73 Scantable::factories_["stokes"] = &STPolStokes::myFactory; 72 74 } … … 398 400 nameU.upcase(); 399 401 table_.rwKeywordSet().define(String("AntennaName"), nameU); 402 } 403 404 void Scantable::setFeedType(const std::string& feedtype) 405 { 406 if ( Scantable::factories_.find(feedtype) == Scantable::factories_.end() ) { 407 std::string msg = "Illegal feed type "+ feedtype; 408 throw(casa::AipsError(msg)); 409 } 410 table_.rwKeywordSet().define(String("POLTYPE"), feedtype); 400 411 } 401 412
Note: See TracChangeset
for help on using the changeset viewer.