urbanlc.model.dataloader.Landsat#

class urbanlc.model.dataloader.Landsat(root, filename_glob, all_bands, *args, **kwargs)#

Landsat dataset for training/inference

Attributes

all_bands

Names of all available bands in the dataset

bounds

Bounds of the index.

cmap

Color map for the dataset, used for plotting

crs

coordinate reference system (CRS) for the dataset.

date_format

Date format string used to parse date from filename.

filename_glob

Glob expression used to search for files.

filename_regex

Regular expression used to extract date from filename.

is_image

True if dataset contains imagery, False if dataset contains mask

rgb_bands

Names of RGB bands in the dataset, used for plotting

separate_files

True if data is stored in a separate file for each band, else False.

Methods

MSS([root, filename_glob])

Initialize Landsat dataset class for MSS sensor

OLITIRS([root, filename_glob])

Initialize Landsat dataset class for OLI/TIRS sensor

TM([root, filename_glob])

Initialize Landsat dataset class for TM sensor