Open JeroenVerstraelen opened 8 months ago
The issue occurs in NetCDFRDDWriter.scala:509
def writeToDisk(rasters: Seq[Raster[MultibandTile]], ...)
val maxExtent: Extent = rasters.map(_._2).reduce((a, b) => if (a.area > b.area) a else b)
val equalRasters = rasters.map(raster =>
if (raster.extent != maxExtent) raster.crop(maxExtent, CropOptions(clamp = false, force = true)) else raster
)
equalRasters.head.rasterExtent
So either some of the initial rasters have size 0, or some issue occurred when cropping to maxExent.
I will add a try catch, and add some extra logging.
The following code:
Results in this error:
OpenEO batch job failed: Exception during Spark execution: geotrellis.raster.GeoAttrsError: invalid cols: 0
Stack trace:
Job id: j-240320965131422cb2699a7fbe31bcd1