Changeset 2163 for trunk/src/STPolLinear.cpp
- Timestamp:
- 05/10/11 15:02:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STPolLinear.cpp
r1189 r2163 30 30 Vector<Float> asap::STPolLinear::getStokes( uint index ) 31 31 { 32 if ( index < 0 || index >4 ) throw(AipsError("Stokes index out of range"));32 if ( index > 4 ) throw(AipsError("Stokes index out of range")); 33 33 Vector<Float> out; 34 34 Float phase = getTotalPhase(); … … 61 61 throw(AipsError("You must have 4 linear polarizations to run this function")); 62 62 } 63 if ( index < 0 || index>4 ) throw(AipsError("LinPol index out of range"));63 if ( index >4 ) throw(AipsError("LinPol index out of range")); 64 64 Vector<Float> out,q,u; 65 65 if ( nspec() == 4) { … … 129 129 { 130 130 // phase isnt used, just ro keep interface the same for all pol operations 131 (void) phase; 131 132 if (nspec() != 4) { 132 133 throw(AipsError("You must have 4 linear polarizations to run this function"));
Note: See TracChangeset
for help on using the changeset viewer.