An error occurred while loading the file. Please try again.
-
Guillaume Perréal authored5db631cb
#!/usr/bin/env python3
import argparse
from scenes import save_scenes
from scenes.spot import get_spot67_scenes
# Arguments
parser = argparse.ArgumentParser(description="Import Spot-6/7 images from DRS into a list of scenes (pickle)",)
parser.add_argument("--root_dirs", nargs='+', help="Root directories containing MS and PAN folders", required=True)
parser.add_argument("--tile_name", help="Filter only images from this tile (optional)")
parser.add_argument("--out_pickle", help="Output pickle file", required=True)
params = parser.parse_args()
# Get all scenes in the root_dir
scenes = []
for root_dir in params.root_dirs:
scenes += get_spot67_scenes(root_dir)
# Save scenes in a pickle file
save_scenes(scenes, params.out_pickle)