I want to develop beam java api with idea and maven.
When I "install" module Beam-Envisat-Reader, there were 3 tests in error:
EnvisatOrbitReaderTest.testPOROrbitFiles:60->getOrbitData:130 » NullPointer
EnvisatOrbitReaderTest.testInterpolation:105 » NullPointer
EnvisatOrbitReaderTest.testVOROrbitFiles:83->getOrbitData:130 » NullPointer
the errors are all at org.esa.beam.dataio.envisat.ProductFile.getDSD(ProductFile.java:559),
and the primary cause is at org.esa.beam.dataio.envisat.ProductFile.readSPH(ProductFile.java:1187),
1
2if (sphSizeActual + numDSDs * dsdSize > sphSize) {
3 return;
4 }
the left is large than the right, so program return at line 1187.
So that all the members in dsdArray is null, and getDSD throw a NullPointerException.
I'm new in remote sensing, I don't know wheter the code in ProductFile or the file (org/esa/beam/resources/testdata/DOR_POR_AXVF-P20080404_014700_20080401_215527_20080403_002327) JUnit test used is wrong. I need some help.
The version of Beam I used is the Master Branch in
Github-Beam, and the version of ProductFile is 1fe864f464046166e46ca3731bbc4c8157b40917, the version of EnvisatOrbitReaderTest is b996b118a88397686486b4cbc3e56872060d17ab.