implement noise correction parameter for rtcApp.

LT1AB
Vincent Schut 2020-10-07 11:38:43 +02:00 committed by piyushrpt
parent b1bbf0f10f
commit c84509e2d1
2 changed files with 13 additions and 4 deletions

View File

@ -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,

View File

@ -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()