Skip to content

Commit e1c2972

Browse files
committed
intermediate
1 parent 2df77fc commit e1c2972

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,19 @@ void compute(Configuration config, NetcdfFile reader, NetcdfFileWriter writer) t
5252
final Array targetTimeArray = createTimeArray(reader, matchupConfig, numTimeSteps, nwpTimeVariable);
5353
writer.write(nwpTimeVariable, targetTimeArray);
5454

55-
targetTimeArray.getIndex();
55+
// for all nwp variables
56+
// - get variable
57+
// - get data array
58+
final int numMatches = NetCDFUtils.getDimensionLength(FiduceoConstants.MATCHUP_COUNT, reader);
59+
for (final TemplateVariable templateVariable : variables.values()) {
60+
// iterate over matchups
61+
for(int m = 0; m < numMatches; m++) {
62+
// iterate over time stamps
63+
}
64+
65+
}
66+
67+
5668

5769
} finally {
5870
variableCache.close();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void compute(Configuration config, NetcdfFile reader, NetcdfFileWriter writer) t
7979

8080
// prepare data
8181
// + calculate dimensions
82-
// - allocate target data arrays
82+
// + allocate target data arrays
8383
final int numMatches = NetCDFUtils.getDimensionLength(FiduceoConstants.MATCHUP_COUNT, reader);
8484
final int[] nwpShape = getNwpShape(satFieldsConfig, lonArray.getShape());
8585
final int[] nwpOffset = getNwpOffset(lonArray.getShape(), nwpShape);

0 commit comments

Comments
 (0)