Skip to content

Commit 613f8a3

Browse files
committed
Vectorization of plm legendre estimation to gain a factor ten in time computation of compute_plm()
1 parent 38f1546 commit 613f8a3

3 files changed

Lines changed: 155 additions & 174 deletions

File tree

doc/tutorials/Advanced_lnharmo_validation.ipynb

Lines changed: 34 additions & 34 deletions
Large diffs are not rendered by default.

lenapy/utils/gravity.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,9 @@ def sh_to_gravity_disturbance(
549549
use_dask : bool, optional
550550
If True, use dask to chunk plm for memory optimization. Default is False.
551551
chunks_lfactor : dict, optional
552-
Define the chunking of lfactor when use_dask is True. Default is None, which set the chunking to {'l': 20}.
552+
Define the chunking of lfactor when use_dask is True. Default is None, which set the chunking to {'l': 200}.
553553
chunks_plm : dict, optional
554-
Define the chunking of plm when use_dask is True. Default is None, which set the chunking to {'latitude': 10}.
554+
Define the chunking of plm when use_dask is True. Default is None, which set the chunking to {'latitude': 4}.
555555
556556
**kwargs :
557557
Supplementary parameters used by the function l_factor_conv to modify defaults constants used in the computation
@@ -1058,9 +1058,9 @@ def sh_to_potential_partial_derivative_longitude(
10581058
use_dask : bool, optional
10591059
If True, use dask to chunk plm for memory optimization. Default is False.
10601060
chunks_lfactor : dict, optional
1061-
Define the chunking of lfactor when use_dask is True. Default is None, which set the chunking to {'l': 20}.
1061+
Define the chunking of lfactor when use_dask is True. Default is None, which set the chunking to {'l': 200}.
10621062
chunks_plm : dict, optional
1063-
Define the chunking of plm when use_dask is True. Default is None, which set the chunking to {'latitude': 10}.
1063+
Define the chunking of plm when use_dask is True. Default is None, which set the chunking to {'latitude': 4}.
10641064
10651065
**kwargs :
10661066
Supplementary parameters used by the function l_factor_conv to modify defaults constants used in the computation

0 commit comments

Comments
 (0)