urbanlc.downloader.landsat_downloader.Landsat_Collection2#
- class urbanlc.downloader.landsat_downloader.Landsat_Collection2(dataset_name, *args, **kwargs)#
Landsat_Collection2 abstract class for downloading Landsat data from GEE
Methods
Abstract method for applying scale factors to Landsat image bands.
download_image
(image, bbox[, bands, scale, ...])Parallel download image patches based on specified parameters.
download_images
(bounds[, radius, years, ...])Downloads Landsat images based on specified parameters.
get_spatial_filter
(bounds, radius)Returns a BoundingBox instance based on the provided bounds and radius.
mask_clouds
(image)Masks clouds, cloud shadows, and snow in the Landsat image using outputs from CFMask Algorithm
merge_patches
(base_filename[, compress])Merges downloaded GEOTIFF image patches and saves the merged file with the specified compression algorithm.
Removes the cache directory and recreates it.
retrieve_image
(region, year, months[, use_tier2])Retrieves a Landsat image for a specific region, year, and months.
set_root
(root)Sets the root directory for storing downloaded data.