Commits
Pam Ford authored cb7eda2030d Merge
3431 3431 | |
3432 3432 | // Get the PARAMERR cell from the new format calibration table |
3433 3433 | Array<Float> oParamErrCube( oParamErrCol(uiRow).shape(), 0.0 ); |
3434 3434 | oParamErrCube = oParamErrCol( uiRow ); |
3435 3435 | |
3436 3436 | // Get the FLAG cell from the new format calibration table |
3437 3437 | Array<Bool> oFlagCube( oFlagCol(uiRow).shape(), false ); |
3438 3438 | oFlagCube = oFlagCol( uiRow ); |
3439 3439 | |
3440 3440 | // Map the spectral window |
3441 - | uInt s; |
3441 + | uInt s = 0; |
3442 3442 | if ( !where( oSPWGroup[g][r], oSPWUniqueGroup[g], s ) ) { |
3443 3443 | *poSuccess = false; |
3444 3444 | return( *poSuccess ); |
3445 3445 | } |
3446 3446 | |
3447 3447 | // Get the number of input channels and the channels for the mapped |
3448 3448 | // spectral window |
3449 3449 | uInt uiNumChannelC = oInput.oChannel[oSPWMap[s]].nelements(); |
3450 3450 | Vector<uInt> oChannelC( oInput.oChannel[oSPWMap[s]] ); |
3451 3451 | |
3452 3452 | // Map the time |
3453 - | uInt t; |
3453 + | uInt t = 0; |
3454 3454 | if ( !where( oTimeGroup[g][r], oTimeUniqueGroup[g], t ) ) { |
3455 3455 | *poSuccess = false; |
3456 3456 | return( *poSuccess ); |
3457 3457 | } |
3458 3458 | |
3459 3459 | // Map the cubes from the new format calibration tables to the output |
3460 3460 | // instances for each group |
3461 3461 | for ( uInt f=0; f<uiNumFeed; f++ ) { // Loop over feeds |
3462 3462 | for ( uInt c=0; c<uiNumChannelC; c++ ) { // Loop over channnels |
3463 3463 | IPosition oPosG( 3, f, oChanStart[s]+c, t ); |