Hello,
I’m processing fine quad-pol RADARSAT-2 images through java with the following steps :
- Subset
- Radiometric Calibration
- Convert to C3
- Polarimetric Speckle Filter
- Extract polarimetric parameters (17 of them, including 3 virtual bands)
- Orthorectification
When I launch the Range-Doppler Terrain-Correction algorithm on the 17-band product, it takes 10 hours to write the resulting orthorectified product. This seems unreasonable. Do you have any advice on how to make this faster ?
SDB
Note : I’m using an external DEM, subset-ed to the scene I’m working with.
Here is my code :
package com.batchprocessing.java.snap;
import java.io.File;
import java.util.HashMap;
import org.esa.snap.core.datamodel.Product;
import org.esa.snap.core.gpf.GPF;
public class Orthorectify {
public static Product RDTC(Product product, File imageFile, String processingDone){
File DEMFile = GetDEM(imageFile);
GPF.getDefaultInstance().getOperatorSpiRegistry().loadOperatorSpis();
/* Operator parameters*/
HashMap parameters = new HashMap();
parameters.put("demName","External DEM");
parameters.put("externalDEMFile",DEMFile);
parameters.put("nodataValueAtSea","false");
parameters.put("outputComplex","false");
parameters.put("pixelSpacingInMeter","8");
parameters.put("saveLatLon","true");
parameters.put("sourceBands","SigmaHH,SigmaHV,SigmaVH,SigmaVV,Span,PhiHHVV,PhiHHHV,HHVVcorrelation,Entropy,Anisotropy,Alpha,Alpha1,Alpha2,Alpha3,Lambda1,Lambda2,Lambda3");
System.out.println("Orthorectifying product...");
Product outProduct = GPF.createProduct("Terrain-Correction", parameters, product);
System.out.println("Done.");
return outProduct;
}