Skip to main content

QA band name for NO2 S5L2 Process API?

  • 26 April 2024
  • 2 replies
  • 1 view

I am trying to request data using request builder. How do I get the QA band in S5L2_NO2 product? I have to put it on my Evalscript.


function setup() {
return {
input: ["NO2", "QA", "dataMask"],
output: { bands: 1 , sampleType: "FLOAT32"}
}
}
function evaluatePixel(sample) {
if (sample.dataMask == 1 && sample.QA >= 0.75) {
return [sample.NO2]
} else {
return [-9999]
}
}

I get an error that QA band is not part of it. What is the correct name? And if there’s a document for that, please direct me.

Hi 

I see from your Evalscript that you want to filter your NO2 pixels with the help of the quality parameter.

You can always check available bands and dataset-specific parameters in the Data section of our official documentation. For Sentinel-5P there is no QA band available (see Sentinel-5P documentation).

The quality filtering of Sentinel-5P pixels is performed through the minQa filter parameter that is listed in the advanced options for Sentinel-5P in the Requests Builder.

 

You can adjust the slider to the desired quality threshold and enjoy the returned data 🙂

 


Ohhh. I see. Thank you!


Reply