[AstroPy] Python method to get the coordinates of the centers of trixels in HTMID

Christoph Deil Christoph.Deil at mpi-hd.mpg.de
Thu Aug 24 07:03:17 EDT 2017


> On 23. Aug 2017, at 06:16, Arvind B <arvind.b at students.iiserpune.ac.in> wrote:
> 
> Hello,
> 
> I am working on a problem to pixelate a sphere. So, I was wondering if there is any python method to get the coordinates of the centers of the trixels (spherical triangle pixel) in HTMID? I have tried the htm packages in esutil and HMpTy, but I am not able to find the right method that I require. A major advantage of using HTMID is that a coarser grid will be a subset of a finer grid and so we will already have 1/4th of the points.
> Please reply as soon as possible. Thanks!
> 
> Regards
> 
> Arvind Balasubramanian
> 5th Year BS-MS Student 
> IISER Pune
> India
> _______________________________________________
> AstroPy mailing list
> AstroPy at python.org
> https://mail.python.org/mailman/listinfo/astropy

Hi Arvind,

I don’t know anything about HTMID.

But since you didn’t get an answer here yet, and just in case you’re not aware: it sounds like https://en.wikipedia.org/wiki/HEALPix <https://en.wikipedia.org/wiki/HEALPix> could also be a solution to your task, and if so, the Python function you’re looking for it this one: http://healpy.readthedocs.io/en/latest/generated/healpy.pixelfunc.pix2ang.html <http://healpy.readthedocs.io/en/latest/generated/healpy.pixelfunc.pix2ang.html>

Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20170824/465ac967/attachment.html>


More information about the AstroPy mailing list