Changeset 3080 for trunk/src/STPolLinear.cpp
- Timestamp:
- 11/25/15 15:49:41 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STPolLinear.cpp
r2163 r3080 30 30 Vector<Float> asap::STPolLinear::getStokes( uint index ) 31 31 { 32 if ( 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 > 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) {
Note: See TracChangeset
for help on using the changeset viewer.