I resampled one S2 product, but I don’t see resampled images in my …\AppData\Local\Temp\… directory.
I know that data is cached by the S2 reader in the directory <USER_HOME>.snap\var\cache\s2tbx\l1c-reader. This could fill up your disk and the handling of this cache needs to be improved. There are already issues for this in our bug tracker (SIITBX-277, SIITBX-288).
In SNAP Desktop it is possible to change the interval how often the cache is deleted (Tools / Options / S2TBX). But this will probably not help you.
This cached data can be cleaned by a function call. I guess the following will work.
from snappy import jpy S2CacheUtils = jpy.get_type('org.esa.s2tbx.dataio.cache.S2CacheUtils') S2CacheUtils.deleteCache()
If you call deleteCache() after every processed product you should get rid of this problem. If the reader-cache is the problem and not something else. Probably it would be good if you first call on the source product