Changeset 428 for trunk/src


Ignore:
Timestamp:
02/14/05 15:51:45 (20 years ago)
Author:
kil064
Message:

getStokesSpectrum can now handle 1,2 or 4 input polarzations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTable.cc

    r426 r428  
    353353//
    354354{
    355   if (nPol()!=4) {
    356      throw (AipsError("You must have 4 polarizations to get the Stokes parameters"));
     355  if (nPol()!=1 && nPol()!=2 && nPol()!=4) {
     356     throw (AipsError("You must have 1,2 or 4 polarizations to get the Stokes parameters"));
    357357  }
    358358  Array<Float> arr;
Note: See TracChangeset for help on using the changeset viewer.