interpolating with scipy
the input : old_coordinates(list of coordinates len 60), old_temp (2d array of temperature shape 6060), new coordinates(list of new coordinates len 60)
output : new temp ?? (2d array of temp shape 6060)
and how can i plot it ?
what i tried “`combined_rotated_coordinates = list(zip(rotated_coordinates_x, rotated_coordinates_y))
combined_not_rotated_coordinates = list(zip(translated_coordinates_x, translated_coordinates_y))
combined_circle_coordinates = list(zip(x_coordinates_inside_circle,x_coordinates_inside_circle))
old_coords = np.array(combined_not_rotated_coordinates)
new_coords = np.array(combined_rotated_coordinates)
old_temps = ishape_temp_grid[1][:, :, 0].ravel() # Flatten the temperature array
Perform interpolation
new_temps = griddata(old_coords, old_temps, new_coords, method=’linear’)“`
i got “ValueError: different number of values and points”