download_test.py 435 bytes
import argparse
from scenes import download, utils

# Arguments
parser = argparse.ArgumentParser(description="Download test",)
parser.add_argument("--refimage", required=True)
parser.add_argument("--theia_cfg", required=True)
params = parser.parse_args()

# Get all scenes in the root_dir
_, _, bbox = utils.get_epsg_extent_bbox(params.refimage)
download.download(config_file=params.theia_cfg, acq_envelope=bbox, acq_date='01-01-2021')