S3 reproject - Angle is too high


#1

My workflow: Subset S3 OLCI product and then reproject to local UTM zone. Works for many products, but some, like S3A_OL_2_WFR____20181102T140758_20181102T141058_20181103T210802_0179_037_281_3240_MAR_O_NT_002, fail with an error like:

.INFO: org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterIO: Initializing external tool adapters
SEVERE: org.esa.s2tbx.dataio.gdal.activator.GDALDistributionInstaller: The environment variable LD_LIBRARY_PATH is not set. It must contain the current folder '.'.
INFO: org.hsqldb.persist.Logger: dataFileCache open start
.org.esa.snap.core.gpf.OperatorException: Angle 105,955,778,958,880.16 is too high.
        at org.esa.snap.core.gpf.common.reproject.ReprojectionOp.initialize(ReprojectionOp.java:275)
        at org.esa.snap.core.gpf.internal.OperatorContext.initializeOperator(OperatorContext.java:486)
        at org.esa.snap.core.gpf.internal.OperatorContext.getTargetProduct(OperatorContext.java:273)
        at org.esa.snap.core.gpf.Operator.getTargetProduct(Operator.java:387)
        at org.esa.snap.core.gpf.main.CommandLineTool.runOperator(CommandLineTool.java:306)
        at org.esa.snap.core.gpf.main.CommandLineTool.runGraphOrOperator(CommandLineTool.java:284)
        at org.esa.snap.core.gpf.main.CommandLineTool.run(CommandLineTool.java:188)
        at org.esa.snap.core.gpf.main.CommandLineTool.run(CommandLineTool.java:121)
        at org.esa.snap.core.gpf.main.GPT.run(GPT.java:54)
        at org.esa.snap.core.gpf.main.GPT.main(GPT.java:34)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.esa.snap.runtime.Launcher.lambda$run$0(Launcher.java:55)
        at org.esa.snap.runtime.Engine.runClientCode(Engine.java:189)
        at org.esa.snap.runtime.Launcher.run(Launcher.java:51)
        at org.esa.snap.runtime.Launcher.main(Launcher.java:31)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:62)
        at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)
Caused by: java.lang.IllegalArgumentException: Angle 105,955,778,958,880.16 is too high.
        at org.geotools.measure.AngleFormat.format(AngleFormat.java:703)
        at org.geotools.measure.AngleFormat.format(AngleFormat.java:940)
        at org.geotools.measure.AngleFormat.format(AngleFormat.java:862)
        at org.geotools.measure.Angle.toString(Angle.java:165)
        at java.text.MessageFormat.subformat(MessageFormat.java:1280)
        at java.text.MessageFormat.format(MessageFormat.java:865)
        at java.text.Format.format(Format.java:157)
        at org.geotools.resources.IndexedResourceBundle.getString(IndexedResourceBundle.java:491)
        at org.geotools.resources.i18n.Errors.format(Errors.java:77)
        at org.geotools.referencing.operation.projection.MapProjection.verifyGeographicRanges(MapProjection.java:508)
        at org.geotools.referencing.operation.projection.MapProjection.access$000(MapProjection.java:86)
        at org.geotools.referencing.operation.projection.MapProjection$Inverse.transform(MapProjection.java:1066)
        at org.geotools.referencing.operation.projection.MapProjection$Inverse.transform(MapProjection.java:1105)
        at org.geotools.referencing.operation.transform.AbstractMathTransform.transform(AbstractMathTransform.java:237)
        at org.geotools.referencing.operation.transform.ConcatenatedTransformDirect.transform(ConcatenatedTransformDirect.java:68)
        at org.geotools.referencing.CRS.transform(CRS.java:1345)
        at org.geotools.referencing.CRS.transform(CRS.java:1413)
        at org.geotools.geometry.jts.ReferencedEnvelope.transform(ReferencedEnvelope.java:689)
        at org.geotools.geometry.jts.ReferencedEnvelope.transform(ReferencedEnvelope.java:635)
        at org.esa.snap.core.datamodel.CrsGeoCoding.detect180MeridianCrossing(CrsGeoCoding.java:367)
        at org.esa.snap.core.datamodel.CrsGeoCoding.<init>(CrsGeoCoding.java:162)
        at org.esa.snap.core.gpf.common.reproject.ReprojectionOp.initialize(ReprojectionOp.java:273)
        ... 23 more

Error: Angle 105,955,778,958,880.16 is too high.

Running newest SNAP and plugins with https://github.com/DHI-GRAS/docker-esa-snap

I can see that a similar issue was raised before but is considered fixed with some SNAP Engine update?