Differences in S2 L2A Reflection band data from API and Copernicus

Hi @chung.horng ,

The productid is: S2A_MSIL2A_20221211T082341_N0509_R121_T36RVN_20221211T115856

The json for the post I made for the SentinelHub API is:

data = {
    "input": {
        "bounds": {
        "bbox": [
            32.61475,
            24.54875,
            32.61525,
            24.54925
        ]
        },
        "data": [
        {
            "dataFilter": {
                "timeRange": {
                    "from": "2022-12-11T08:23:00Z", 
                    "to": "2022-12-11T11:58:59Z"
                }
            },
            "type": "sentinel-2-l2a",
            "processing": {
                "harmonizeValues": "true"
            }
        }
        ]
    },
    "output": {
        "width": 50,
        "height": 50,
        "responses": [
        {
            "identifier": "default",
            "format": {
            "type": "image/tiff"
            }
        }
        ]
    },
    "evalscript": """
    //VERSION=3
        function setup() {
            return {
                input: [{
                    bands:["B01","B02","B03","B04","B05","B06","B07","B08","B8A","B09","B11","B12","SCL"],
                    units:[\"REFLECTANCE\",\"REFLECTANCE\",\"REFLECTANCE\",\"REFLECTANCE\",\"REFLECTANCE\",\"REFLECTANCE\",\"REFLECTANCE\",\"REFLECTANCE\",\"REFLECTANCE\",\"REFLECTANCE\",\"REFLECTANCE\",\"REFLECTANCE\",\"DN\"]
                }],
                output:[{
                    id: "default",
                    bands: 3,
                    sampleType: SampleType.UINT8
                }]
            };
        }
        function evaluatePixel(sample) {
            if ([2,4,5].includes(sample.SCL) ) { 
                return [sample.B03*255.0,sample.B04*255.0,sample.B05*255.0]
            }
        }
"""
    }

I then write the result of the post to a tiff file, and use the Python Image library and numpy to read the values from the pixels in the tiff file to get the averages which I printed above.