eogrow.utils.eopatch_list

Utilities for working with lists of EOPatch names.

eogrow.utils.eopatch_list.save_names(filesystem, file_path, names)[source]

Saves a list of names (EOPatch, execution, etc.) to a file

Parameters:
  • filesystem (FS) – Filesystem used to save the file.

  • filename – Path of a JSON file where names will be saved.

  • names (list[str]) – A list of names.

  • file_path (str) –

Return type:

None

eogrow.utils.eopatch_list.load_names(filesystem, file_path)[source]

Loads a list of names (EOPatch, execution, etc.) from a file

Parameters:
  • filesystem (FS) – Filesystem used to load the file.

  • filename – Path of a JSON file where names are saved.

  • file_path (str) –

Returns:

A list of names loaded from file.

Return type:

list[str]

eogrow.utils.eopatch_list.group_by_crs(patch_list)[source]
Parameters:

patch_list (List[Tuple[str, BBox]]) –

Return type:

dict[sentinelhub.constants.CRS, list[str]]