NullPointerException occurs when when using PixelGeoCoding with OLCI data

Description

When using PixelGeoCoding with OLCI data and setting the property snap.useAlternatePixelGeoCoding to true a NullPointerException can occur.
This happens because the DataBuffer is of type TYPE_FLOAT but excpected is TYPE_DOUBLE

{{java.lang.NullPointerException
at org.esa.snap.core.datamodel.PixelGeoCoding$LatLonImage.processDoubleLoop(PixelGeoCoding.java:1280)
at org.esa.snap.core.datamodel.PixelGeoCoding$LatLonImage.computeRect(PixelGeoCoding.java:1237)
at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:969)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
at javax.media.jai.OpImage.getTile(OpImage.java:1129)
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2207)
at org.esa.snap.core.datamodel.PixelGeoCoding.findBestPixel(PixelGeoCoding.java:530)
at org.esa.snap.core.datamodel.PixelGeoCoding.getPixelPosUsingEstimator(PixelGeoCoding.java:499)
at org.esa.snap.core.datamodel.PixelGeoCoding.getPixelPos(PixelGeoCoding.java:461)
at com.bc.calvalus.processing.ma.PixelPosProvider.getSpatiallyValidPixelPos(PixelPosProvider.java:126)
at com.bc.calvalus.processing.ma.PixelPosProvider.getPixelPosRecord(PixelPosProvider.java:104)
at com.bc.calvalus.processing.ma.PixelPosProvider.getInputRecordsSortedByPixelYX(PixelPosProvider.java:161)
at com.bc.calvalus.processing.ma.PixelPosProvider.computePixelPosRecords(PixelPosProvider.java:172)
at com.bc.calvalus.processing.ma.MAMapper.run(MAMapper.java:104)}}

Environment

None

GitHub Work

None

Activity

Show:

Marco Peters 17 October 2019 at 05:05

The best option to get support is the user forum.

Please explain which data you are using and the processing steps you are performing. Also to mention the operating system can be helpful.

Anonymous 16 October 2019 at 23:26

I am using the SNAP software, I am having this error when I run maximum likelihood classifier. How can I fix this? thanks

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Components

Priority

Created 23 June 2016 at 12:21
Updated 17 October 2019 at 05:05
Resolved 23 June 2016 at 12:50