@Test public void testAttachIndexCodingToBand() throws Exception { final Product product = new Product("test_product", "test", 20, 20); final Band fuBand = new Band("test_Band", ProductData.TYPE_INT8, 10, 10); product.addBand(fuBand); assertNull(fuBand.getSampleCoding()); assertNull(fuBand.getIndexCoding()); FuOp.attachIndexCoding(fuBand); assertNotNull(fuBand.getSampleCoding()); assertNotNull(fuBand.getIndexCoding()); }
static void attachIndexCoding(Band fuBand) { IndexCoding indexCoding = new IndexCoding("Forel-Ule Scale"); ImageInfo imageInfo = createImageInfo(indexCoding); fuBand.setImageInfo(imageInfo); fuBand.getProduct().getIndexCodingGroup().add(indexCoding); fuBand.setSampleCoding(indexCoding); }
FuOp extends PixelOperator { static void attachIndexCoding(Band fuBand) { IndexCoding indexCoding = new IndexCoding("Forel-Ule Scale"); ImageInfo imageInfo = createImageInfo(indexCoding); fuBand.setImageInfo(imageInfo); fuBand.getProduct().getIndexCodingGroup().add(indexCoding); fuBand.setSampleCoding(indexCoding); } }
FuOp extends PixelOperator { static void attachIndexCoding(Band fuBand) { IndexCoding indexCoding = new IndexCoding("Forel-Ule Scale"); ImageInfo imageInfo = createImageInfo(indexCoding); fuBand.setImageInfo(imageInfo); fuBand.getProduct().getIndexCodingGroup().add(indexCoding); fuBand.setSampleCoding(indexCoding); }  }
FuOp extends PixelOperator { static void attachIndexCoding(Band fuBand) { IndexCoding indexCoding = new IndexCoding("Forel-Ule Scale"); ImageInfo imageInfo = createImageInfo(indexCoding); fuBand.setImageInfo(imageInfo); fuBand.getProduct().getIndexCodingGroup().add(indexCoding); fuBand.setSampleCoding(indexCoding); }   }
FuOp extends PixelOperator { static void attachIndexCoding(Band fuBand) { IndexCoding indexCoding = new IndexCoding("Forel-Ule Scale"); ImageInfo imageInfo = createImageInfo(indexCoding); fuBand.setImageInfo(imageInfo); fuBand.getProduct().getIndexCodingGroup().add(indexCoding); fuBand.setSampleCoding(indexCoding); }    }