urbanlc.downloader.landsat_downloader.LandsatMSS#
- class urbanlc.downloader.landsat_downloader.LandsatMSS(dataset_name, *args, **kwargs)#
LandsatMSS class for downloading DN (digital numbers) data of Landsat 1 - 5 (using MSS sensor)
Methods
apply_scale_factors
(image)Applies 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.
initialize
(n_landsat, *args, **kwargs)Initializes a LandsatMSS instance.
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.