示例#1
0
  private void initBinWriter(ProductData.UTC startTime, ProductData.UTC stopTime) {
    if (binWriter == null) {
      binWriter = new SeaDASLevel3BinWriter(region, startTime, stopTime);
    }

    binWriter.setBinningContext(binningContext);
    binWriter.setTargetFileTemplatePath(formatterConfig.getOutputFile());
    binWriter.setLogger(getLogger());
  }
示例#2
0
 private void writeNetCDFBinFile(
     List<TemporalBin> temporalBins, ProductData.UTC startTime, ProductData.UTC stopTime)
     throws IOException {
   initBinWriter(startTime, stopTime);
   getLogger()
       .info(String.format("Writing binned data to '%s'...", binWriter.getTargetFilePath()));
   binWriter.write(globalMetadata.asSortedMap(), temporalBins);
   getLogger()
       .info(String.format("Writing binned data to '%s' done.", binWriter.getTargetFilePath()));
 }