anowacki / Seis.jl

An open, fast and flexible framework for analysing seismic data in Julia
22 stars 4 forks source link

Frequency-domain integration #44

Open marianoarnaiz opened 3 months ago

marianoarnaiz commented 3 months ago

Hi everyone. I use the spectral integration quite a bit and it would be nice to have SAC's divomega in the toolkit. It is possible to add?

https://ds.iris.edu/files/sac-manual/commands/divomega.html

Kind regards.

anowacki commented 3 months ago

Hi @marianoarnaiz. I'm guessing that you want this for FourierTraces? In this case, the integrate function could just have a new method integrate!(::AbstractFourierTrace) which does the standard frequency-domain integration. At the same time, adding a differentiate!(::AbstractFourierTrace) method would also be worthwhile.

I'd be happy to receive a PR for the above, or I can get round to it when time allows.

marianoarnaiz commented 3 months ago

Hi @anowacki I'd be glad to help. I am actually not using a ::AbstractFourierTrace) right now, but I might be tempted to change my code to add this to Seis.jl. Let me give it a try and report back here!