urbanlc.analyze.visualizer.plot_landsat#
- urbanlc.analyze.visualizer.plot_landsat(img: ndarray, dataset: str, save_path: Optional[str] = None, title: Optional[str] = None, ax: Optional[Axes] = None) None #
Plot RGB band of the given Landsat image on a given matplotlib axis.
This function takes Landsat imagery data, a dataset name for RGB mapping, an axis, and optional parameters to plot RGB band of the data using a specified RGB mapping. The plot can be saved to a file if an output file path is provided. The function does not return any values.
- Parameters:
img (numpy.ndarray) – Landsat image data to be plotted.
dataset (str) – Name of the Landsat dataset (e.g., ‘landsat8’) for RGB mapping.
save_path (str, optional) – File path to save the plot. If None, the plot is not saved. Defaults to None.
title (str, optional) – Title for the plot. Defaults to None.
ax (matplotlib.axes.Axes, optional) – Matplotlib axis where the Landsat plot will be displayed. Defaults to None.
- Returns:
None
- Return type:
None