Export scatter plot data


I currently export the data from a scatter plot (Sentinel 2 image) and save it to a file for further evaluation with python. Since I have to do this for multiple band combinations and multiple subsets, I currently do the same thing by hand hundreds of times.
Is there a way to automate this?

Best regards

This is possible if you install snappy. See this guide.
In this example it is shown how to read a product, how to select a band and create an image of it.
In your case, you would use the method ProductUtils.createDensityPlotImage(…) to create the scatter plot image.

In this introduction to snappy there is also an example included which shows how to read the data and create a plot using matplotlib.

Thank you very much! I’ll try that right away!