Hello everyone,
I was wondering if it is possible to retrieve the intersecting/overlapping area between Sentinel-5p CO data and a shared byoc layer using data fusion from the statistical API request?
My goal is to calculate the area of a shared byoc population density layer that is affected by CO emissions in the chosen AOI.
Maybe you are aware of a similar use case or example that can help me?
This is the evalscript for the byoc layer where I already filtered out areas that are not populated:
//VERSION=3
function setup() {
  return {
    input: [{
      bands: ["BUILT", "dataMask"], // this sets which bands to use
    }],
    output: [
      { id:"default", bands: 1, sampleType: "FLOAT32" },
      { id: "dataMask", bands: 1 }
    ]
  };
}
 
function evaluatePixel(sample) {
    let pixelMask = 1
    
    if (sample.BUILT == 0){
        pixelMask = 0
    }
  return {
    default: [sample.BUILT],
    dataMask: [sample.dataMask * pixelMask]
  };
}
        