From ab0e4cb83b41926d8f9efd61690b75b410ec84b4 Mon Sep 17 00:00:00 2001 From: Gao Date: Fri, 19 May 2023 17:36:17 +0200 Subject: [PATCH] optimaze import --- Analyser/FFTAnalyser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Analyser/FFTAnalyser.py b/Analyser/FFTAnalyser.py index f70243f..79e1565 100644 --- a/Analyser/FFTAnalyser.py +++ b/Analyser/FFTAnalyser.py @@ -1,5 +1,4 @@ import xarray as xr -import pandas as pd import numpy as np from datetime import datetime @@ -11,9 +10,11 @@ import finufft def fft(dataArray, **kwargs): return xrft.fft(dataArray, **kwargs) + def ifft(dataArray, **kwargs): return xrft.ifft(dataArray, **kwargs) + def fft_nutou(dataArray, modeNum, **kwargs): data = dataArray.to_numpy() @@ -45,6 +46,7 @@ def fft_nutou(dataArray, modeNum, **kwargs): return res + def ifft_nutou(dataArray, modeNum): pass \ No newline at end of file