urbanlc.downloader.landsat_downloader.LandsatTM#

class urbanlc.downloader.landsat_downloader.LandsatTM(dataset_name, *args, **kwargs)#

LandsatTM class for downloading surface reflectance data of Landsat 4 - 7 (using TM 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 LandsatTM 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.

remove_cache()

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.