urbanlc.utils.open_at_size#
- urbanlc.utils.open_at_size(path: str, ref: ndarray) ndarray #
Open a .tif file and downsample it to match the size of another .tif file.
This function opens a .tif file specified by the path and downsamples it to match the size of a reference array provided. The downsampling is performed using Resampling.mode.
- Parameters:
path (str) – Path to the input .tif file.
ref (np.ndarray) – Reference array to determine the desired size for downsampling.
- Returns:
Downsampled data.
- Return type:
np.ndarray