grass.semantic_label package

Submodules

grass.semantic_label.reader module

class grass.semantic_label.reader.SemanticLabelReader[source]

Bases: object

Semantic label reader

find_file(semantic_label)[source]

Find file by semantic label.

Match is case-insensitive.

Parameters:semantic_label (str) – semantic label identifier to search for (eg. S2_1)
Return str:file basename if found or None
get_bands()[source]

Get list of band identifiers.

Return list:list of valid band identifiers
print_info(shortcut=None, band=None, semantic_label=None, extended=False)[source]

Prints semantic label information to stdout.

Can be filtered by semantic label identifier.

Parameters:
  • shortcut (str) – shortcut to filter (eg. S2) or None
  • band (str) – band (eg. 1) or None
  • semantic_label (str) – semantic_label filter (eg. S2_8A) or None
  • extended (bool) – print also extended metadata
exception grass.semantic_label.reader.SemanticLabelReaderError[source]

Bases: Exception