Scatter plot fails if bands use different tiling

Description

When using two bands in the scatter plot which have a different tiling it fails.

java.lang.IllegalArgumentException: The specified Rectangle is not completely contained within the Raster`s bounds. at javax.media.jai.PixelAccessor.getPixels(Unknown Source) at org.esa.snap.core.datamodel.DensityPlot$DensityPlotOp.accumulateDataDouble(DensityPlot.java:620) at org.esa.snap.core.datamodel.DensityPlot$DensityPlotOp.accumulate(DensityPlot.java:232) at org.esa.snap.core.datamodel.DensityPlot.accumulate(DensityPlot.java:82) at org.esa.snap.core.util.ProductUtils.createDensityPlotImage(ProductUtils.java:1218) at org.esa.snap.rcp.statistics.DensityPlotPanel$2.doInBackground(DensityPlotPanel.java:456) at org.esa.snap.rcp.statistics.DensityPlotPanel$2.doInBackground(DensityPlotPanel.java:447) at com.bc.ceres.swing.progress.ProgressMonitorSwingWorker.doInBackground(ProgressMonitorSwingWorker.java:56)

This can be reproduced with S3 OLCI data and selecting a radiance band and the quality_flags band.

Environment

None

GitHub Work

None

Activity

Show:

Marco Peters11 March 2021 at 10:09

now harmonizing tiling before computing the density

Fixed

Details

Assignee

Reporter

Sprint

Fix versions

Affects versions

Priority

Created 11 March 2021 at 08:36
Updated 19 August 2022 at 13:37
Resolved 11 March 2021 at 10:09