-
eadf.sphericalharm.interpolateDataSphere(arrCoEleSample: numpy.ndarray, arrAziSample: numpy.ndarray, arrValues: numpy.ndarray, arrCoEleInter: numpy.ndarray, arrAziInter: numpy.ndarray, **options) → numpy.ndarray¶ Interpolate Data located on a Sphere
This method can be used for interpolating a function of the form f : S^2 -> C which is sampled on N arbitrary positions on the sphere. The input data is assumed to be in the format N x M1 x … and the interpolation is broadcasted along M1 x … The interpolation is always done using least squares, so for noisy data or overdetermined data with respect to the basis you should not encounter any problems.
- Methods
- SH (Spherical Harmonics), see dissertation delGaldo, For these you have to supply numN as a kwarg, which determines the order of the SH basis. The number of total basis functions is then calculated via numN x (numN + 1) + 1. default=6
Parameters: - arrCoEleSample (np.ndarray) – Sampled Co-Elevation positions in radians
- arrAziSample (np.ndarray) – Sampled Azimuth positions in radians
- arrValues (np.ndarray) – Sampled values
- arrCoEleInter (np.ndarray) – CoElevation positions we want the function to be evaluated in radians
- arrAziInter (np.ndarray) – Azimuth Positions we want the function to be evaluated in radians
- method (type, optional, default='SH') – ‘SH’(default) for spherical harmonics
- **options (type) – Depends on method, see above
Returns: Description of returned object.
Return type: np.ndarray