After applying scale factors to images in the LANDSAT/LC08/C02/T1_L2
collection, as prescribed in the EE data-set catalog, I expected the SR_B.
bands to have values between 0
and 1
. However, some pixels are negative. Is this to be expected?
var image = ee.Image('LANDSAT/LC08/C02/T1_L2/LC08_142040_20210507')
var scaled = applyScaleFactors(image)
Map.addLayer(scaled.select('SR_B4').lt(0), null, 'Negative red')
Map.centerObject(ee.Geometry.Point([84.4496, 28.9224]), 13)
function applyScaleFactors(image) {
var opticalBands = image.select('SR_B.').multiply(0.0000275).add(-0.2)
var thermalBands = image.select('ST_B.*').multiply(0.00341802).add(149.0)
return image.addBands(opticalBands, null, true)
.addBands(thermalBands, null, true)
}
Here is a script with some additional layers added for debugging. Use the inspector in the EE Code Editor and inspect a white Negative red
pixel.