main
- main.sencast(params_file, env_file=None, max_parallel_downloads=1, max_parallel_processors=1, max_parallel_adapters=1)
File-based interface for Sencast.
Parameters
- params_file
File to read the parameters for this run from
- env_file
- Default: NoneEnvironment settings read from the environment .ini file, if None provided Sencast will search for file in environments folder.
- max_parallel_downloads
- Default: 1Maximum number of parallel downloads of satellite images
- max_parallel_processors
- Default: 1Maximum number of processors to run in parallel
- max_parallel_adapters
- Default: 1Maximum number of adapters to run in parallel
- main.sencast_core(env, params, l2_path, l2product_files, max_parallel_downloads=1, max_parallel_processors=1, max_parallel_adapters=1)
Threading function for running Sencast. 1. Calls API to find available data for given query 2. Splits the processing into threads based on date and satellite 3. Runs the Sencast for each thread
Parameters
- env
Dictionary of environment parameters, loaded from input file
- params
Dictionary of parameters, loaded from input file
- l2_path
The output folder in which to save the output files
- l2product_files
A dictionary to return the outputs (produced l2 product files)
- max_parallel_downloads
- Default: 1Maximum number of parallel downloads of satellite images
- max_parallel_processors
- Default: 1Maximum number of processors to run in parallel
- max_parallel_adapters
- Default: 1Maximum number of adapters to run in parallel
- main.sencast_product_group(env, params, do_download, auth, products, l2_path, l2product_files_outer, semaphores, group)
Run Sencast for given thread. 1. Downloads required products 2. Runs processors 3. Runs mosaic 4. Runs adapters
Parameters
- params
Dictionary of parameters, loaded from input file
- env
Dictionary of environment parameters, loaded from input file
- do_download
Download function from the selected API The output folder in which to save the output files
- auth
Auth details for the selected API
- products
Array of dictionary’s that contain product information
- l2_path
The output folder in which to save the output files
- semaphores
Dictionary of semaphore objects
- group
Thread group name
- main.test_installation(env, delete)