urbanlc.utils.open_at_scale#
- urbanlc.utils.open_at_scale(path: str, downsample_scale: float) ndarray #
Open a .tif file and downsample it by a constant factor.
This function opens a .tif file specified by the path and downsamples it by a constant factor. The downsampling factor is applied to both the height and width dimensions of the input data.
- Parameters:
path (str) – Path to the input .tif file.
downsample_scale (float) – Constant factor for downsampling.
- Returns:
Downsampled data.
- Return type:
np.ndarray