eurocropsml.acquisition.copier.merge_safe_filesΒΆ

merge_safe_files(satellite: Literal['S1', 'S2'], bands: list[str], output_dir: Path, workers: int, local_dir: Path | None = None) NoneΒΆ

Copy all relevant .SAFE files to local directory and acquire spectral band paths.

Parameters:
  • satellite – S1 for Sentinel-1 and S2 for Sentinel-2.

  • bands – (Sub-)set of Sentinel-1 (radar) or Sentinel-2 (spectral) bands.

  • output_dir – Directory where lists of required .SAFE files (per parcel id) are stored and where to save the output files to.

  • workers – Maximum number of workers to use for multiprocessing.

  • local_dir – Local directory where the .SAFE files are copied to. If None, .SAFE files will not be stored on local disk.