I recently came across a dataset for physical ocean parameters such as temperature and salinity that provided data in the form of a 3-Dimensional array of depths and a 3-Dimensional array of the parameters where each point on the first two dimensions corresponds to a latitude and longitude, respectively, and the points in the third dimension corresponds to depths.
Given a target depth, return the linearly interpolated values of the data at that depth without using the keywords for or while in your code.
For example, if Z and V are arrays with size [ M, N, D ], the output matrix V2 would be of size [ M N ].
Test Case Details:
1 player likes this problem
1 Comment