umr-lops / xsarsea

scientific functions to compute radar or geophysical parameters from satellite images over ocean
https://cerweb.ifremer.fr/datarmor/doc_sphinx/xsarsea/
MIT License
10 stars 6 forks source link

problem in cross-spectra calculation #52

Open HelloKaito opened 1 year ago

HelloKaito commented 1 year ago

Hi! I'm a new learner in wave related subjects. I'm confused about 'sar_slc/processing.py' line 776, cross-spectra is caculated by intensity(L2)*np.conj(intensity) , the question is why 'df' is multiplied? looking to your reply.

agrouaze commented 1 year ago

Hello @HelloKaito , We plan to remove the cross spectra computation fro xsarsea to have the code available in this repo : https://github.com/umr-lops/xsar_slc . Regarding your question, it is not easy to answer if you don't quote the code itself. The cross spectrum are computed from complex image modulation (i.e. after a Gaussian low pass filtering).

HelloKaito commented 1 year ago

Hello, @agrouaze , here's the code which is related with the computation of cross-spectra: https://github.com/umr-lops/xsarsea/blob/719d82b5b67908e1cecd8070558015b002fb259c/src/xsarsea/sar_slc/processing.py#L773-L776

In sentinel-1 OSW algorithm (page 25),cross-spectra is computed by multiplying intensity image of two sub-looks, as illustrated in the equation below,

compute_cros_spectra

1.My 1st question is why a additional'df' is multiplied in the code above?

2.The 2nd question is does complex image modulation equivalent to image detrending mentioned in the OSW algorithm (showed in the image below)? They are alike in computation.

detrending

Thanks a lot for your reply!

HelloKaito commented 1 year ago

@agrouaze Please help me when you'are available. TUT

agrouaze commented 1 year ago

I can't answer your question but @lanougue (author of this part of the code) should be able to answer.

HelloKaito commented 1 year ago

Hello @lanougue, Please give me a hand about the above question.