I have the following python code that works well on some RADARSAT-2 SLC images,
source = ProductIO.readProduct(in_file)
parameters = HashMap()
parameters.put('imgResamplingMethod', 'NEAREST_NEIGHBOUR')
parameters.put('applyRadiometricNormalization', True)
parameters.put('sourceBands', in_band)
parameters.put('pixelSpacingInMeter', pixel_res)
parameters.put('mapProjection', prj_wkt_main)
parameters.put('saveDEM', False)
parameters.put('saveSelectedSourceBand', False)
parameters.put('saveSigmaNought', True)
parameters.put('incidenceAngleForSigma0', 'Use projected local incidence angle from DEM')
target = GPF.createProduct('Terrain-Correction', parameters, source)
ProductIO.writeProduct(target, out_file, 'GeoTIFF'
But gives the following error on many RADARSAT-2 SLC images:
RuntimeError: org.esa.snap.core.gpf.OperatorException: Terrain-Correction: Terrain-Correction: GC overhead limit exceeded
As mentioned on this form I tried specifying the following settings within \snap\etc\snap.properties and running again:
snap.gpf.disableTileCache = true
snap.gpf.useFileTileCache = false
and
snap.gpf.disableTileCache = false
snap.gpf.useFileTileCache = true
As well in order to adjust the maximum memory usage I added -Xmx512m to \snap\bin\pconvert.vmoptions
I’m running windows 7 , 8GB i7-3520M
I still get the error. Any help would be much appreciated.
Thanks
John