astropy / halotools

Python package for studying large scale structure, cosmology, and galaxy evolution using N-body simulations and halo models
http://halotools.rtfd.org
102 stars 65 forks source link

weighted angular tpcf? #946

Open gjsun opened 5 years ago

gjsun commented 5 years ago

Dear @aphearin,

I'm recently trying to use halotools for some cross-correlation calculations large-scale line intensity maps and galaxy positions. I'm wondering if halotools supports calculating a weighted angular tpcf from the given signal and random angular coordinates, just like angular_tpcf, which seems to take no weights. If not, would it be possible to include such a feature in next release? It would be very helpful.

Many thanks!

aphearin commented 5 years ago

Hi @gjsun, sounds like an interesting project! It's true that Halotools does not currently support weights on the angular tpcf. I can leave this feature-request open while preparing the v0.7 release, but the remaining tasks for that release are really just package maintenance and not new functionality, so in practice it might take several months before getting to this. In the meantime, I am pretty sure that the blazingly fast Corrfunc package written by @manodeep already supports weighted angular correlation functions, and the treecorr code also supports this feature, which is part of the reason that folding this into Halotools hasn't been prioritized.

manodeep commented 5 years ago

@aphearin Thanks!

@gjsun Corrfunc should be able to calculate weighted angular correlation functions. Please open an issue on the Corrfunc repo if you run into any issues.