urbanlc.model.dataloader.CustomRasterDataset#

class urbanlc.model.dataloader.CustomRasterDataset(root=None, crs=None, res=None, bands=None, transforms=None, cache=False, exclude=None, all_paths=None)#

Custom raster dataset class for training DL model

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