- Timestamp:
- 01/21/05 15:09:39 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMath.cc
r244 r247 374 374 const uInt nRowOff = off->nRow(); 375 375 Bool ok = (nRowOff==1&&nRowOn>0) || 376 (nRowO n>0&&nRowOn==nRowOff);376 (nRowOff>=1&&nRowOn==nRowOff); 377 377 if (!ok) { 378 378 throw (AipsError("The reference Scan Table can have one row or the same number of rows as the source Scan Table")); … … 402 402 MaskedArray<Float> mOn(on->rowAsMaskedArray(i)); 403 403 IPosition shpOn = mOn.shape(); 404 tSysOn.get(i, tSysOnArr); 404 405 // 405 406 if (nRowOff>1) { … … 407 408 pMOff = new MaskedArray<Float>(off->rowAsMaskedArray(i)); 408 409 shpOff = pMOff->shape(); 409 if (!shpOn.isEqual(shpOff)) {410 throw(AipsError("on/off data are not conformant"));411 }412 //413 410 tSysOff.get(i, tSysOffArr); 414 tSysOn.get(i, tSysOnArr); 415 if (!tSysOnArr.shape().isEqual(tSysOffArr.shape())) { 416 throw(AipsError("on/off Tsys data are not conformant")); 417 } 418 // 419 if (!shpOn.isEqual(tSysOnArr.shape())) { 420 throw(AipsError("Correlation and Tsys data are not conformant")); 421 } 411 } 412 413 // Conformance 414 415 if (!shpOn.isEqual(shpOff)) { 416 throw(AipsError("on/off data are not conformant")); 417 } 418 if (!tSysOnArr.shape().isEqual(tSysOffArr.shape())) { 419 throw(AipsError("on/off Tsys data are not conformant")); 420 } 421 if (!shpOn.isEqual(tSysOnArr.shape())) { 422 throw(AipsError("Correlation and Tsys data are not conformant")); 422 423 } 423 424
Note:
See TracChangeset
for help on using the changeset viewer.