Implemented the Fourier Normalizing Radial Gradient Filter#17
Implemented the Fourier Normalizing Radial Gradient Filter#17nabobalis merged 55 commits intosunpy:masterfrom
Conversation
This comment has been minimized.
This comment has been minimized.
|
Hello @vatch123! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2019-06-10 14:50:17 UTC |
|
Thanks for the pull request @vatch123! Everything looks great! |
|
Could you run black, isort and docformater on your PR? |
Yes, it will be my final commit after everything is done. |
Co-Authored-By: Nabil Freij <nabil.freij@gmail.com>
sunkit_image/radial.py
Outdated
| This is a helper function to Fourier Normalizing Radial Gradient Filter | ||
| (`sunkit_image.radial.fnrgf`). | ||
|
|
||
| This function sets the attenuation coefficients in the one of the following two manners- |
There was a problem hiding this comment.
| This function sets the attenuation coefficients in the one of the following two manners- | |
| This function sets the attenuation coefficients in the one of the following two manners: |
|
|
||
| # The NRGF filtered map is plotted. | ||
| # The image seems a little washed out so you may need to change some plotting settings | ||
| # for a clearer output. |
There was a problem hiding this comment.
Can you try to change the plotting values to prevent the image from being so washed out?
I do wonder if something is wrong with this version of the algorithm.
There was a problem hiding this comment.
Okay, which values?
But I don't think the algorithm does anything other than what was intended
There was a problem hiding this comment.
Not sure, some of the plotting values?
|
Codecov seems to suggest that these two lines are not triggered by the tests: and Could you write a test to trigger those warnings and check the messages are correct? |
|
This is very close now. |
|
I hope its done now!! |
|
Yes I think that addresses everything! |
|
Thanks @vatch123 |
Implemented the Fourier Normalizing Radial Gradient Filter (sunpy#17)
Description
It implements Fourier normalizing-radial-graded filter (FNRGF) as stated here.
The changes made are -
sunpy.coordinates.framesnormalizing_radial_gradient_functionintensity_summarymethod fromnumpy.meantonumpy.nanmeanNoneto empty dictionary because it raised an error at runtime stating the types did not matchfourier_normalizing_radial_gradientfunction.orderandratio_mix. Though I am unable to guess what values of parameters are best suited.ratio_mixis set by taking inspiration from the doctoral thesis.TODO:
Fixes #7