- geocat.comp.spherical.recomposition(data, theta, phi, max_harm=23, chunk_size='auto')¶
Calculate a dataset from spherical harmonics.
xarray.DataArray) – 2-dimensional array containing the theta (latitude in radians) values for each datapoint in data. Phi is zero at the top of the sphere and pi at the bottom, phi = (lat_degrees-90)*(-1)*pi/180
max_harm – The maximum harmonic value for both m and n. The total of harmonics calculated is (max_harm+1)*(max_harm+2)/2 The number of total harmonics must equal the number of harmoncs in the input data. Defaults to 23, for 300 total harmonics.
chunk_size – The size of the each edge of the dask chunks if using xarray.DataArray inputs. Some arrays will be 2d, and others 1d, and the final calculation operates on a 3d array. thus the chunks used in the largest calculation scale at chunk_size^3 A chunk size of 256 is recommended. Defaults to ‘auto’
recomposition – the spherical harmonic recomposition of the input data
- Return type