sup3r.models.utilities.st_interp#
- st_interp(low, s_enhance, t_enhance, t_centered=False)[source]#
Spatiotemporal bilinear interpolation for low resolution field on a regular grid. Used to provide baseline for comparison with gan output
- Parameters:
low (ndarray) – Low resolution field to interpolate. (spatial_1, spatial_2, temporal)
s_enhance (int) – Factor by which to enhance the spatial domain
t_enhance (int) – Factor by which to enhance the temporal domain
t_centered (bool) – Flag to switch time axis from time-beginning (Default, e.g. interpolate 00:00 01:00 to 00:00 00:30 01:00 01:30) to time-centered (e.g. interp 01:00 02:00 to 00:45 01:15 01:45 02:15)
- Returns:
ndarray – Spatiotemporally interpolated low resolution output