cnpante
(Cyrus Nikko Pante)
April 2, 2021, 9:38am
#1
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 @cnpante ,
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
Best, Max
1 Like
cnpante
(Cyrus Nikko Pante)
April 2, 2021, 1:03pm
#3
Ohhh. I see. Thank you @max.kampen !