meom-group / widetrax

Toolbox for manipulating wide-swath altimetry ocean data.
https://widetrax.readthedocs.io/en/latest/
Apache License 2.0
2 stars 1 forks source link

Flexibility and performances #3

Closed vadmbertr closed 3 weeks ago

vadmbertr commented 3 weeks ago

Hi,

I think the some functions (fill_nan, retrieve_segments, plot_psd) could be more flexible:

I also believe that some performance improvements could be achieved by using a ProcessPoolExecutor to parallelize the retrieval of segments (retrieve_segments) and the computation of the PSD (calculate_psd).

I also have a PR ready, let me know what you think!

Vadim

Amine-ouhechou commented 3 weeks ago

Hi,

Thanks for the suggestion! Go ahead and open the PR.

Appreciate your help !