astro-informatics / s2let

Fast wavelet transforms on the sphere.
http://astro-informatics.github.io/s2let
GNU General Public License v3.0
11 stars 2 forks source link

Needlets in python #45

Closed JohnPodczerwinski closed 2 years ago

JohnPodczerwinski commented 2 years ago

Hello, I'm interested in using py2slet to perform a needlet transform. Is that possible to do?

Thanks

jasonmcewen commented 2 years ago

Yes, that's possible. If you just set directionality to 1, you will get an axisymmetric wavelet transform on the sphere, where the wavelets used are very similar to needlets.

There is a very slight difference in the kernels used for needlets since they were developed independently but the wavelets have the same properties. See Fig 1.a of this paper for a comparison of the kernels, which I've reproduced below. You'll see the black curve (our definition) and the blue dashed curve (needlets) are very similar.

Screenshot 2022-02-16 at 15 57 38

In fact, we did even implement the needlet kernels as well in s2let at some point, although I don't think that is exposed in python.

Apologies, the python documentation is lacking at present but that is something we hope to improve in future.

Hopefully that anwers your question so I'll close this issue but please just get in touch if you have any further questions.

JohnPodczerwinski commented 2 years ago

That makes sense. Thanks for the quick response jason!