xgcm / xrft

Fourier transforms on xarray data structures
https://xrft.readthedocs.io/en/latest/
MIT License
154 stars 45 forks source link

One dimension spectrum #205

Open hb-9797 opened 5 months ago

hb-9797 commented 5 months ago

hello: I used isotropic_power_spectrum method to calculate the 1D wave number domain energy spectrum of 2D SST data, now I want to calculate the columns and rows of 2D SST data separately, how can I achieve this, attached is the method I used with 2D data.

with ProgressBar(): datas_TTf = xrft.isotropic_power_spectrum(datas_xr,dim=['x','y'], nfactor=nf,truncate='True',scaling=scl,detrend='linear', window=wdws,window_correction=wdw_cor)