/** * Initializes this operator and sets the one and only target product. * <p>The target product can be either defined by a field of type {@link org.esa.snap.core.datamodel.Product} annotated with the * {@link org.esa.snap.core.gpf.annotations.TargetProduct TargetProduct} annotation or * by calling {@link #setTargetProduct} method.</p> * <p>The framework calls this method after it has created this operator. * Any client code that must be performed before computation of tile data * should be placed here.</p> * * @throws org.esa.snap.core.gpf.OperatorException If an error occurs during operator initialisation. * @see #getTargetProduct() */ @Override public void initialize() throws OperatorException { try { final InputProductValidator validator = new InputProductValidator(sourceProduct); validator.checkIfSARProduct(); validator.checkIfSLC(); sourceProductType = PolBandUtils.getSourceProductType(sourceProduct); srcBandList = PolBandUtils.getSourceBands(sourceProduct, sourceProductType); useRCMConvention = Boolean.getBoolean(SystemUtils.getApplicationContextId() + ".hybridmode.useRCMConvention"); if (simulateNoiseFloor) { sigma = Math.sqrt(FastMath.pow(10.0, noisePower / 10.0) / 2.0); } createTargetProduct(); updateTargetProductMetadata(); } catch (Throwable e) { OperatorUtils.catchOperatorException(getId(), e); } }
srcBandList = PolBandUtils.getSourceBands(sourceProduct, sourceProductType);
srcBandList = PolBandUtils.getSourceBands(sourceProduct, sourceProductType);
srcBandList = PolBandUtils.getSourceBands(sourceProduct, sourceProductType);
/** * Initializes this operator and sets the one and only target product. * <p>The target product can be either defined by a field of type {@link Product} annotated with the * {@link TargetProduct TargetProduct} annotation or * by calling {@link #setTargetProduct} method.</p> * <p>The framework calls this method after it has created this operator. * Any client code that must be performed before computation of tile data * should be placed here.</p> * * @throws OperatorException If an error occurs during operator initialisation. * @see #getTargetProduct() */ @Override public void initialize() throws OperatorException { try { final InputProductValidator validator = new InputProductValidator(sourceProduct); validator.checkIfSARProduct(); validator.checkIfSLC(); validator.checkIfTOPSARBurstProduct(false); sourceProductType = PolBandUtils.getSourceProductType(sourceProduct); checkSourceProductType(); srcBandList = PolBandUtils.getSourceBands(sourceProduct, sourceProductType); createTargetProduct(); } catch (Throwable e) { OperatorUtils.catchOperatorException(getId(), e); } }
@Override public void initialize() throws OperatorException { try { final InputProductValidator validator = new InputProductValidator(sourceProduct); validator.checkIfSARProduct(); sourceProductType = PolBandUtils.getSourceProductType(sourceProduct); if (sourceProductType != PolBandUtils.MATRIX.FULL) { throw new OperatorException("Quad-pol source product is expected."); } srcBandList = PolBandUtils.getSourceBands(sourceProduct, sourceProductType); halfWindowSize = windowSize / 2; sourceImageWidth = sourceProduct.getSceneRasterWidth(); sourceImageHeight = sourceProduct.getSceneRasterHeight(); createTargetProduct(); updateTargetProductMetadata(); } catch (Throwable e) { OperatorUtils.catchOperatorException(getId(), e); } }
/** * Initializes this operator and sets the one and only target product. * <p>The target product can be either defined by a field of type {@link Product} annotated with the * {@link TargetProduct TargetProduct} annotation or * by calling {@link #setTargetProduct} method.</p> * <p>The framework calls this method after it has created this operator. * Any client code that must be performed before computation of tile data * should be placed here.</p> * * @throws OperatorException If an error occurs during operator initialisation. * @see #getTargetProduct() */ @Override public void initialize() throws OperatorException { try { final InputProductValidator validator = new InputProductValidator(sourceProduct); validator.checkIfSARProduct(); validator.checkIfTOPSARBurstProduct(false); validator.checkIfSLC(); sourceProductType = PolBandUtils.getSourceProductType(sourceProduct); checkSourceProductType(); srcBandList = PolBandUtils.getSourceBands(sourceProduct, sourceProductType); createTargetProduct(); updateTargetProductMetadata(); } catch (Throwable e) { OperatorUtils.catchOperatorException(getId(), e); } }
/** * Initializes this operator and sets the one and only target product. * <p>The target product can be either defined by a field of type {@link Product} annotated with the * {@link TargetProduct TargetProduct} annotation or * by calling {@link #setTargetProduct} method.</p> * <p>The framework calls this method after it has created this operator. * Any client code that must be performed before computation of tile data * should be placed here.</p> * * @throws OperatorException If an error occurs during operator initialisation. * @see #getTargetProduct() */ @Override public void initialize() throws OperatorException { try { final InputProductValidator validator = new InputProductValidator(sourceProduct); validator.checkIfSARProduct(); //validator.checkIfSLC(); validator.checkIfTOPSARBurstProduct(false); sourceProductType = PolBandUtils.getSourceProductType(sourceProduct); srcBandList = PolBandUtils.getSourceBands(sourceProduct, sourceProductType); polDecomp = createDecomposition(); checkSourceProductType(sourceProductType); createTargetProduct(); updateTargetProductMetadata(); } catch (Throwable e) { OperatorUtils.catchOperatorException(getId(), e); } }
/** * Initializes this operator and sets the one and only target product. * <p>The target product can be either defined by a field of type {@link Product} annotated with the * {@link TargetProduct TargetProduct} annotation or * by calling {@link #setTargetProduct} method.</p> * <p>The framework calls this method after it has created this operator. * Any client code that must be performed before computation of tile data * should be placed here.</p> * * @throws OperatorException If an error occurs during operator initialisation. * @see #getTargetProduct() */ @Override public void initialize() throws OperatorException { try { final InputProductValidator validator = new InputProductValidator(sourceProduct); validator.checkIfSARProduct(); //validator.checkIfSLC(); validator.checkIfTOPSARBurstProduct(false); sourceImageWidth = sourceProduct.getSceneRasterWidth(); sourceImageHeight = sourceProduct.getSceneRasterHeight(); sourceProductType = PolBandUtils.getSourceProductType(sourceProduct); checkSourceProductType(sourceProductType); srcBandList = PolBandUtils.getSourceBands(sourceProduct, sourceProductType); createTargetProduct(); speckleFilter = createFilter(); } catch (Throwable e) { OperatorUtils.catchOperatorException(getId(), e); } }