<BUG>ProductUtils.copyFlagBands(sourceProduct, targetProduct);copyFlagSourceImages();BandMathsOp bandArithmeticOp = BandMathsOp.createBooleanExpressionBand("l1_flags.INVALID", sourceProduct);</BUG><CONTEXT>ProductUtils.copySpectralBandProperties(radianceBand, toaReflBand);toaReflBand.setNoDataValueUsed(true);toaReflBand.setNoDataValue(NO_DATA_VALUE);bandMap.put(toaReflBand, radianceBand);}<extra_id_0>invalidBand = bandArithmeticOp.getTargetProduct().getBandAt(0);</CONTEXT>
ProductUtils.copyFlagBands(sourceProduct, targetProduct, true);BandMathsOp bandArithmeticOp = BandMathsHelper.createBooleanExpressionBand("l1_flags.INVALID", sourceProduct);