I have no output (no file or product is generated) and no error after running the script. Does someone have an idea about what I’m doing wrong ? Is the parameter setup ok for this operator ?
Is it always necessary to use ProductIO.writeProduct how can I get only the values from the exported csv file ?
Somehow I figure it out how to use the StatisticsOp operator, but … there are some issues I believe or I miss something.
If I use the raw image format like ‘S2B_MSIL2A_20180304_img_name.zip’ (downloaded from sentinel 2 data server) the script can’t process the ‘quality_cloud_confidence’ band (I believe is not a physical band). The band is considered only if I create a subset from the raw image, in this way in the subset there is a physical quality_cloud_confidence.img file (in the subset there are *.img files for all existing bands listed by ). If I use a band name like ‘B4’ the script goes ok in both situations.
The quality_cloud_classifiaction is a physical band.
It is located in the QI_DATA folder, not in the IMG_DATA. It is named L2A___CLD_60m.jp2.
It is not available in 10 meters.
If the band is present after a subset it must exist beforehand.
Yes, the CSV data can only be accessed via the written file.
I don’t know why your loop stops. Are the other products processed after the first chunk is done and you start the processing again?
Regarding the loop stop issue…
The way that I wrote the script is like this: I generated a list of file paths and loop through it by instantiating the class for each *.dim file from the list of file paths.
If you skip over the already processed ones is it failing at the same product.
You could move the already processed data some where else. Maybe one is corrupted?
Or does it stop at different products?
It stops at different product. I don’t have problems with the products, I use them to calculate various indexes.
I reversed the loop etc. … Usually it runs for about 20 products and stops unexpected with no error message.
I have to mention that I have to loop through 47 *.dim files. After splitting images in 4 different folders the script worked as it should. I believe that some used operator or other snappy instantiated object is overloading the memory.