glass-dev / glass

Generator for Large Scale Structure
https://glass.readthedocs.io
MIT License
31 stars 7 forks source link

Add HEALPix pixel index as yield of `positions_from_delta` function #135

Open mwiet opened 10 months ago

mwiet commented 10 months ago

The positions_from_delta function currently only return a given galaxy's longitude and latitude, but not the pertaining HEALPix pixel index. For use cases where one wants to query HEALPix maps based on galaxy positions, it would be useful to have the pixel index calculated internally within the positions_from_delta function returned.