Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Implement upward continuation and reduction to the pole in the frequency domain - #156

Merged
leouieda merged 21 commits into
masterfrom
fourier-processing
Jul 11, 2015
Merged

Implement upward continuation and reduction to the pole in the frequency domain#156
leouieda merged 21 commits into
masterfrom
fourier-processing

Conversation

@leouieda

@leouieda leouieda commented Jan 6, 2015

Copy link
Copy Markdown
Member

This PR adds two things to fatiando.gravmag.transform:

  • Option to upcontinue for upward continuation using the FFT
  • Function reduce_to_pole for pole reduction of magnetic data using FFT

Checklist:

  • Make tests for new code
  • Create/update docstrings
  • Include relevant equations and citations in docstrings
  • Code follows PEP8 style conventions
  • Code and docs have been spellchecked
  • Include new dependencies in docs, requirements.txt, README
  • Documentation builds properly
  • All tests pass
  • Can be merged
  • Changelog entry

Started cleaning up the code in fourier.py as well. Just a few more
comments and moved  the 2pi factor to frequencies (so they are wave
numbers).
Need more complete docstring
Needs docstring
Only the x and y derivatives are tested because the z derivative appears
to have a systematic error. I checked the formula and they seem correct.
Might be a numerical error. Created #167 for this.
Conflicts:
	cookbook/gravmag_transform_tga.py
	fatiando/gravmag/fourier.py
@leouieda

Copy link
Copy Markdown
Member Author

Waiting for #196 to get the extra tests and fix to gridder.

leouieda added 5 commits May 29, 2015 12:05
Conflicts:
	fatiando/gravmag/transform.py
	test/test_gravmag_transform.py
They were using the old the functions to calculate the frequencies and
needed to be updated.

Added equations and references to the docstrings.

RTP now requires passing the source magnetization. This is to increase
awareness that the magnetization is required. So better explicit than
quietly using geomagnetic field direction.
Can't figure out accuracy.
Avoids edge effects in FFT
Works for reasonable accuracy constraints
@leouieda

Copy link
Copy Markdown
Member Author

The space domain approach doesn't work very well (doesn't pass the tests) and is quite slow to run. I'm thinking of getting rid of it in favour of FFT. Padding did great for edge effects.

@leouieda

Copy link
Copy Markdown
Member Author

Testing upcontinue almost done:

  • Make test for upcontinue using magnetic data.

leouieda added 5 commits June 23, 2015 12:14
Testing against analytical solution. Works pretty well.
This is deprecated. I moved it to another function as a reference for
how to do it. Also spell check the docs
leouieda added a commit that referenced this pull request Jul 11, 2015
Implement upward continuation and reduction to the pole in the frequency domain
@leouieda
leouieda merged commit a7d73b4 into master Jul 11, 2015
@leouieda
leouieda deleted the fourier-processing branch July 11, 2015 16:41
@eusoubrasileiro

Copy link
Copy Markdown
Contributor

nice!! really nice!!

@leouieda

Copy link
Copy Markdown
Member Author

👍

leouieda added a commit that referenced this pull request Jul 16, 2015
It was using the old syntax that allow for the space domain method
(deprecated in #156).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants