ml_pipeline.datasets.datamodule#

Code to load and process Harmonized Landsat Sentinel-2 (HLS) imagery data.

Uses torchdata and Pytorch Lightning.

References:

Functions

cloud_cover_filter(item[, threshold])

Return True if less than or equal to 20% cloud cover, else False.

xr_collate_fn(samples)

Converts xarray.DataArray objects to a torch.Tensor, and stack them into a torch.Tensor.

zero_mask_filter(dataarray)

Return True if input xarray.DataArray contain non-zero values, else False.

Classes

BurnScarsDataModule(image_query, vector_url, ...)