implement noise correction parameter for rtcApp.
parent
b1bbf0f10f
commit
c84509e2d1
|
@ -192,6 +192,14 @@ GEOCODE_LIST = Application.Parameter(
|
||||||
doc = "List of products to geocode."
|
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
|
#Facility declarations
|
||||||
REFERENCE = Application.Facility(
|
REFERENCE = Application.Facility(
|
||||||
|
@ -244,7 +252,8 @@ class GRDSAR(Application):
|
||||||
PICKLE_LOAD_DIR,
|
PICKLE_LOAD_DIR,
|
||||||
RENDERER,
|
RENDERER,
|
||||||
POLARIZATIONS,
|
POLARIZATIONS,
|
||||||
GEOCODE_LIST)
|
GEOCODE_LIST,
|
||||||
|
APPLY_THERMAL_NOISE_CORRECTION)
|
||||||
|
|
||||||
facility_list = (REFERENCE,
|
facility_list = (REFERENCE,
|
||||||
DEM_STITCHER,
|
DEM_STITCHER,
|
||||||
|
|
|
@ -42,7 +42,7 @@ def runPreprocessor(self):
|
||||||
frame.product.endingSlantRange = r0max
|
frame.product.endingSlantRange = r0max
|
||||||
|
|
||||||
try:
|
try:
|
||||||
reference = extract_slc(frame, slantRange=(not slantRangeExtracted))
|
reference = extract_slc(frame, slantRange=(not slantRangeExtracted), removeNoise=self.apply_thermal_noise_correction)
|
||||||
success=True
|
success=True
|
||||||
if not slantRangeExtracted:
|
if not slantRangeExtracted:
|
||||||
r0min = frame.product.startingSlantRange
|
r0min = frame.product.startingSlantRange
|
||||||
|
@ -72,10 +72,10 @@ def runPreprocessor(self):
|
||||||
catalog.printToLog(logger, "runPreprocessor")
|
catalog.printToLog(logger, "runPreprocessor")
|
||||||
self._grd.procDoc.addAllFromCatalog(catalog)
|
self._grd.procDoc.addAllFromCatalog(catalog)
|
||||||
|
|
||||||
def extract_slc(sensor, slantRange=False):
|
def extract_slc(sensor, slantRange=False, removeNoise=False):
|
||||||
# sensor.configure()
|
# sensor.configure()
|
||||||
sensor.parse()
|
sensor.parse()
|
||||||
sensor.extractImage()
|
sensor.extractImage(removeNoise=removeNoise)
|
||||||
|
|
||||||
if slantRange:
|
if slantRange:
|
||||||
sensor.extractSlantRange()
|
sensor.extractSlantRange()
|
||||||
|
|
Loading…
Reference in New Issue