implement noise correction parameter for rtcApp.
parent
b1bbf0f10f
commit
c84509e2d1
|
@ -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,
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue