RasterCoverage unloadBinary
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.
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.
or after special uses of the coverage like "store" or a threshold of 5 calculations.....