Skip to content

Commit c509d7e

Browse files
add support for xcube-levels directory archiving
1 parent c3e82ed commit c509d7e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

calvalus-processing/src/main/java/com/bc/calvalus/processing/l2/ProductFormatter.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ public ProductFormatter(String productName, String outputFormat, String desiredO
7070
} else {
7171
outputCompression = "dir2";
7272
}
73+
} else if (outputFormat.equalsIgnoreCase("xcube-levels")) {
74+
outputExtension = ".levels";
75+
if ("zip".equals(desiredOutputCompression)) {
76+
outputCompression = "zip";
77+
} else {
78+
outputCompression = "dir2";
79+
}
7380
} else if (outputFormat.equals("NetCDF4-LC")) {
7481
outputExtension = ".nc";
7582
outputCompression = ""; // no further compression required

0 commit comments

Comments
 (0)