Skip to content

Commit becea8a

Browse files
committed
corrected fill value iteration for time variable
1 parent 32c268e commit becea8a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
### Updates from version 1.5.4 to 1.5.5
22
* added shutdown hook for resource cleanup on hard shutdowns
3+
* corrected fill value handling for time-variable
34

45
### Updates from version 1.5.3 to 1.5.4
56
* updated to use SNAP version 8.0.5 / S3TBX version 8.0.3

post-processing-tool/src/main/java/com/bc/fiduceo/post/plugin/era5/VariableUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static Array readTimeArray(String timeVariableName, NetcdfFile reader) throws IO
6161
while (indexIterator.hasNext()) {
6262
final double time = indexIterator.getDoubleNext();
6363
if (Math.abs(time - fillValue.doubleValue()) < 1e-8) {
64-
indexIterator.setIntNext(TIME_FILL);
64+
indexIterator.setIntCurrent(TIME_FILL);
6565
}
6666
}
6767

0 commit comments

Comments
 (0)