funmain() { val srcPath = Paths.get("/Users/Demo/Desktop/S1A_IW_GRDH_1SDV_20200301T104455_20200301T104520_031481_03A00B_0A9F.zip") val srcProduct = ProductIO.readProduct(srcPath.toFile())
val outDir = "/Users/Demo/Desktop" val baseName = FilenameUtils.getBaseName(srcPath.toString()) GPF.getDefaultInstance().operatorSpiRegistry.loadOperatorSpis() for (polar in arrayOf("VV", "VH")) { // 首先进行辐射校正(CALIBRATION) // 对应是的org.esa.s1tbx.calibration.gpf.CalibrationOp类 var parameters = HashMap<String, Any>() parameters["outputSigmaBand"] = true parameters["selectedPolarisations"] = polar val caliProduct = GPF.createProduct("Calibration", parameters, srcProduct)