EEToNetCDFExporterOp extends AbstractNetCDFExporterOp { static ProductSubsetDef createSubsetDef(Rectangle rectangle) { final ProductSubsetDef subsetDef = new ProductSubsetDef(); subsetDef.setRegion(rectangle); return subsetDef; }  @Override void initialize(); static File getOutputFile(File dblFile, File targetDirectory); static final String ALIAS; }
@Test public void testCreateSubsetDef() { final Rectangle rectangle = new Rectangle(0, 1, 3, 4); final ProductSubsetDef subsetDef = EEToNetCDFExporterOp.createSubsetDef(rectangle); assertNotNull(subsetDef); final Rectangle subsetDefRegion = subsetDef.getRegion(); assertEquals(rectangle.toString(), subsetDefRegion.toString()); assertNull(subsetDef.getNodeNames()); assertEquals(1, subsetDef.getSubSamplingX()); assertEquals(1, subsetDef.getSubSamplingY()); }