pyrt.regrid#

pyrt.regrid(array, particle_size_grid, wavelength_grid, particle_sizes, wavelengths)[source]#

Regrid the input array onto a new particle size and wavelength grid using nearest-neighbor interpolation.

Parameters:
  • array (np.ndarray) – The array to regrid.

  • particle_size_grid (np.ndarray) – The particle size grid.

  • wavelength_grid (np.ndarray) – The wavelength grid.

  • particle_sizes (np.ndarray) – The particle sizes to regrid the array on to.

  • wavelengths (np.ndarray) – The wavelengths to regrid the array on to.

Returns:

Regridded array of shape (…, particle_sizes, wavelengths)

Return type:

np.ndarray