diff --git a/applications/rtcApp.py b/applications/rtcApp.py index df52d41..fc2d3c4 100755 --- a/applications/rtcApp.py +++ b/applications/rtcApp.py @@ -192,6 +192,14 @@ GEOCODE_LIST = Application.Parameter( doc = "List of products to geocode." ) +APPLY_THERMAL_NOISE_CORRECTION = Application.Parameter( + 'apply_thermal_noise_correction', + public_name='apply thermal noise correction', + default=False, + type=bool, + mandatory=False, + doc = 'Flag to apply thermal noise correction. Currently only available for Sentinel-1.') + #Facility declarations REFERENCE = Application.Facility( @@ -244,7 +252,8 @@ class GRDSAR(Application): PICKLE_LOAD_DIR, RENDERER, POLARIZATIONS, - GEOCODE_LIST) + GEOCODE_LIST, + APPLY_THERMAL_NOISE_CORRECTION) facility_list = (REFERENCE, DEM_STITCHER, diff --git a/components/isceobj/RtcProc/runPreprocessor.py b/components/isceobj/RtcProc/runPreprocessor.py index b010db6..ba47a10 100644 --- a/components/isceobj/RtcProc/runPreprocessor.py +++ b/components/isceobj/RtcProc/runPreprocessor.py @@ -42,7 +42,7 @@ def runPreprocessor(self): frame.product.endingSlantRange = r0max try: - reference = extract_slc(frame, slantRange=(not slantRangeExtracted)) + reference = extract_slc(frame, slantRange=(not slantRangeExtracted), removeNoise=self.apply_thermal_noise_correction) success=True if not slantRangeExtracted: r0min = frame.product.startingSlantRange @@ -72,10 +72,10 @@ def runPreprocessor(self): catalog.printToLog(logger, "runPreprocessor") self._grd.procDoc.addAllFromCatalog(catalog) -def extract_slc(sensor, slantRange=False): +def extract_slc(sensor, slantRange=False, removeNoise=False): # sensor.configure() sensor.parse() - sensor.extractImage() + sensor.extractImage(removeNoise=removeNoise) if slantRange: sensor.extractSlantRange()