@Test public void testGlobalBinningViaGPF() throws Exception { final File targetFile = getTestFile("target-1.dim"); float obs1 = 0.2F; float obs2 = 0.4F; float obs3 = 0.6F; float obs4 = 0.8F; float obs5 = 1.0F; final HashMap<String, Object> parameters = new HashMap<>(); parameters.put("startDateTime", "2002-01-01"); parameters.put("periodDuration", "10"); parameters.put("numRows", 180); parameters.put("maskExpr", "true"); parameters.put("aggregatorConfigs", new AggregatorConfig[]{chlAgg(), p70Agg()}); parameters.put("outputFile", targetFile.getPath()); parameters.put("outputType", "Product"); parameters.put("outputFormat", "BEAM-DIMAP"); parameters.put("region", "POLYGON ((-180 -90, -180 90, 180 90, 180 -90, -180 -90))"); final Product targetProduct = GPF.createProduct("Binning", parameters, createSourceProduct(1, obs1), createSourceProduct(2, obs2), createSourceProduct(3, obs3), createSourceProduct(4, obs4), createSourceProduct(5, obs5)); assertNotNull(targetProduct); try { assertGlobalBinningProductIsOk(targetProduct, null, obs1, obs2, obs3, obs4, obs5); } finally { targetProduct.dispose(); } }
@Override public void dispose() { if (writtenProduct != null) { writtenProduct.dispose(); } super.dispose(); }
BinningOp extends Operator { @Override public void dispose() { if (writtenProduct != null) { writtenProduct.dispose(); } super.dispose(); } }
BinningOp extends Operator { @Override public void dispose() { if (writtenProduct != null) { writtenProduct.dispose(); } super.dispose(); } BinningOp(); }
BinningOp extends Operator { @Override public void dispose() { if (writtenProduct != null) { writtenProduct.dispose(); } super.dispose(); } BinningOp(); Geometry getRegion(); void setRegion(Geometry region); String getStartDateTime(); void setStartDateTime(String startDateTime); Double getPeriodDuration(); void setPeriodDuration(Double periodDuration); TimeFilterMethod getTimeFilterMethod(); void setTimeFilterMethod(TimeFilterMethod timeFilterMethod); Double getMinDataHour(); void setMinDataHour(Double minDataHour); int getNumRows(); void setNumRows(int numRows); Integer getSuperSampling(); void setSuperSampling(Integer superSampling); String getMaskExpr(); void setMaskExpr(String maskExpr); void setOutputFile(String outputFile); void setOutputType(String outputType); void setOutputFormat(String outputFormat); VariableConfig[] getVariableConfigs(); void setVariableConfigs(VariableConfig... variableConfigs); AggregatorConfig[] getAggregatorConfigs(); void setAggregatorConfigs(AggregatorConfig... aggregatorConfigs); CellProcessorConfig getPostProcessorConfig(); void setPostProcessorConfig(CellProcessorConfig postProcessorConfig); void setBinWriter(BinWriter binWriter); void setOutputTargetProduct(boolean outputTargetProduct); void setMetadataAggregatorName(String metadataAggregatorName); String getOutputFile(); void setPlanetaryGridClass(String planetaryGridClass); void setCompositingType(CompositingType compositingType); @Override void initialize(); @Override void dispose(); BinningConfig createConfig(); }
BinningOp extends Operator { @Override public void dispose() { if (writtenProduct != null) { writtenProduct.dispose(); } super.dispose(); } BinningOp(); Geometry getRegion(); void setRegion(Geometry region); String getStartDateTime(); void setStartDateTime(String startDateTime); Double getPeriodDuration(); void setPeriodDuration(Double periodDuration); TimeFilterMethod getTimeFilterMethod(); void setTimeFilterMethod(TimeFilterMethod timeFilterMethod); Double getMinDataHour(); void setMinDataHour(Double minDataHour); int getNumRows(); void setNumRows(int numRows); Integer getSuperSampling(); void setSuperSampling(Integer superSampling); String getMaskExpr(); void setMaskExpr(String maskExpr); void setOutputFile(String outputFile); void setOutputType(String outputType); void setOutputFormat(String outputFormat); VariableConfig[] getVariableConfigs(); void setVariableConfigs(VariableConfig... variableConfigs); AggregatorConfig[] getAggregatorConfigs(); void setAggregatorConfigs(AggregatorConfig... aggregatorConfigs); CellProcessorConfig getPostProcessorConfig(); void setPostProcessorConfig(CellProcessorConfig postProcessorConfig); void setBinWriter(BinWriter binWriter); void setOutputTargetProduct(boolean outputTargetProduct); void setMetadataAggregatorName(String metadataAggregatorName); String getOutputFile(); void setPlanetaryGridClass(String planetaryGridClass); void setCompositingType(CompositingType compositingType); @Override void initialize(); @Override void dispose(); BinningConfig createConfig(); static final String DATE_INPUT_PATTERN; static final String DATETIME_INPUT_PATTERN; static final String DATETIME_OUTPUT_PATTERN; }