IlwisCore icon indicating copy to clipboard operation
IlwisCore copied to clipboard

RasterCoverage unloadBinary

Open pokulo opened this issue 12 years ago • 2 comments

Is it wise to keep the standard behaviour of unloading raster binary data after each execution of a script line together with the Python API, which calls ILWIS to execute exactly this on script line using the do(..) for example for raster calculations. So a Python script like this would lack performance:

rc1 = RasterCoverage("url1") rc2 = RasterCoverage("url2")

ndvi = (rc1 - rc2) / (rc1 + rc2)

simply because of load unload the binary data 3 times as often as nessecary.

Maybe a flag for each RasterCoverage could be accessible to indicate, wether to automatically unload the binary data.

pokulo avatar Dec 13 '13 11:12 pokulo

user dont know or care about memory usage. The only 'reasonable' solution is to start unloading after a certain threshold has been passed. I suppose this would be possible.

MartinSchouwenburg avatar Jan 28 '14 07:01 MartinSchouwenburg

or after special uses of the coverage like "store" or a threshold of 5 calculations.....

pokulo avatar Jan 28 '14 10:01 pokulo