grass.semantic_label package — GRASS Python Library documentation

# grass.semantic_label package

## Submodules

## grass.semantic_label.reader module

class grass.semantic_label.reader.SemanticLabelReader

  Bases: `object`

  Semantic label reader

  find_file(semantic_label)

    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()

    Get list of band identifiers.

    Return list:

      list of valid band identifiers

  print_info(shortcut=None, band=None, semantic_label=None, extended=False)

    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

  Bases: `Exception`

Help Index | Topics Index | Keywords Index | Full Index

© 2003-2026 GRASS Development Team, GRASS GIS 8.4.3dev Reference Manual