-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-order coverage MOC HEALPIX #62
Comments
Hi @cdeil I just discovered this thread. |
I've talked with @tboch a bit about this on email today, and we both think (and are willing to put some work into) a BSD-licensed healpix Python package and then use it here in As discussed before, the best starting point seems to write a wrapper on the C healpix package by @dstndstn in astrometry.net (see e.g. https://github.com/dstndstn/astrometry.net/blob/master/include/astrometry/healpix.h) that's BSD license, so appropriate for use in Astropy. @dstndstn @astrofrog and all -- do you have thoughts preferences on how to best do this?
|
I would say keep it in a separate repo. If anyone does have the time to maintain a C package/library, that would be ideal, but if not then having a Python package is fine (and maybe later the C can be split out if it seems it would be popular enough). Cython is fine. |
I have pythonic swig wrappers on some of my healpix routines. It should be fairly clean to pull out the healpix routines -- the functions cheers, On Thu, Sep 1, 2016 at 2:05 PM, Thomas Robitaille [email protected]
|
I took a quick stab at extracting it into a C lib: After I added @dstndstn - Yes, if you could remove the dependency on os-features, that would be very helpful. Also - do your SWIG Python wrappers provide a Python API that can take Numpy arrays as input / output like healpy does? Even if yes, do you think they should be kept or would replacing them with Cython be OK? I'm asking because Astropy and the affiliated packages use Cython a lot, but no-where SWIG (as far as I know). So for maintenance / distribution for us Cython would be easier. |
Hi, Yes, os-features-config.h is auto-generated (by the Makefile). I can take The swig wrappers I have are pretty simple and do not support numpy arrays; Would you like me to send a PR to that healpix-temp repo, if you've already cheers, On Thu, Sep 1, 2016 at 11:50 PM, Christoph Deil [email protected]
|
@dstndstn - Sounds great, thanks! Actually, if you could put the files in a sub-folder in this repo that would be best: I'll give you and @tboch write access to that repo now, and tomorrow update the README there to reflect the new plan (Cython wrapper around your code). |
I've now put together the initial version of the package: There's a few setup issues with Cython and Sphinx that need to be sorted out: @dstndstn @tboch - Let's continue the discussions on HEALPix there for a while until the basic functionality is in place, and then continue in this issue to discuss MOC. |
Status update: @dstndstn added the At the moment it's here, can be compiled with Next steps are to build from |
This is now pretty far along: http://astropy-healpix.readthedocs.io/ @tboch - If you're up for it, we could make the switch soon? I had a look, the only functionality that's missing is that you're calling Before we do though: it would be really helpful to add a few tests for the main functionality in Also: @tboch - Are there any performance concerns? This is what we have at the moment: http://astropy-healpix.readthedocs.io/en/latest/performance.html |
I haven't used |
@cdeil : healpy.mollview and healpy.graticule would be nice to have, but it's not at the core of MOCPy features. I'll make some performance tests with astropy-healpix and will let you know the results. And yes, I'll add tests. |
Related to #554 |
It would be nice to have Multi-order coverage (MOC) in this
astropy.regions
package (which is supposed to go in the Astropy core package in a few month).http://ivoa.net/documents/MOC/ describes it like this:
There's two Python package for MOC:
pymoc
by @grahambell - Github, Readthedocs, PyPImocpy
by @tboch - Github, example notebooks, PyPI@grahambell @tboch - Are there big differences in design or philosophy between the two Python packages? Or does collaboration / merging of efforts seem possible? Are you interested to collaborate in that direction?
If there is interest in making this happen, one issue to watch out for is license. Both
pymoc
andmocpy
are currently implemented using healpy, which uses HEALPIX and is GPL licensed, not compatible with the BSD license Astropy core and most other packages use.There is talk of having a subset of HEALPIX re-implemented in BSD and use that, starting with the BSD-licensed HEALPIX code e.g. here or here and here.
I think having such basic HEALPIX functionality in Astropy core and using it for MOC and other applications would be nice.
astropy.regions
The text was updated successfully, but these errors were encountered: