def extend_cache(self, filenames): cached_files = glob.glob('%s/*.nc' % self.temporal_path) not_cached = filter(lambda f: self.get_cached_file(f) not in cached_files, filenames) if not_cached: loader = Loader(not_cached) new_files = pmap(self.get_cached_file, not_cached) with nc.loader(new_files, dimensions=DIMS) as cache: self.algorithm.update_temporalcache(loader, cache) loader.dump()
def run(**config): loader = Loader(config['data']) algorithm = Heliosat2(config, geo.strategy) algorithm.run_with(loader) loader.dump()