easyclimate.core.stats.detrend_spatial#
Unified spatial detrending function with multiple computation methods.
Available methods: 1. ‘scipy_reduce’ - Simplified version using scipy.signal.detrend 2. ‘scipy’ - Optimized version using scipy.signal.detrend 3. ‘numpy’ - Manual numpy vectorized version 4. ‘rust’ - High-performance Rust backend version 5. ‘rust_chunked’ - Rust backend with chunked processing 6. ‘rust_flexible’ - Rust backend with flexible dimensions 7. ‘auto’ - Automatically selects the best available method
Functions
|
Benchmark different detrending methods. |
|
Remove linear trend along time dimension from spatio-temporal data. |
|
High-performance version using manual linear regression. |
|
High-performance version using Rust backend. |
|
Rust backend with chunked processing for large datasets. |
|
Rust backend with flexible dimension handling. |
|
Optimized version using scipy.signal.detrend with special value handling. |
|
Simplified version using scipy.signal.detrend. |
|
Compare numerical results from different methods. |
|
Create a test dataset for detrending. |