skyportal / healpix-alchemy

SQLAlchemy extensions for HEALPix spatially indexed astronomy data
BSD 3-Clause "New" or "Revised" License
28 stars 12 forks source link

Healpix Range to MOC #31

Open mcoughlin opened 2 years ago

mcoughlin commented 2 years ago

I am wondering if some convenience code or doc example of how to go from the healpix range sets to a MOC might be useful.

lpsinger commented 2 years ago

In the current design, this could be a classmethod like healpix_alchemy.Point.to_moc.

@bparazin would you like to take this one?

bparazin commented 2 years ago

Sounds good

bparazin commented 2 years ago

Looking at this in more detail, I think MOC.from_healpix_cells is mostly what you want, just maybe wrapping it in a function that converts the given range sets, resolution and index scheme into the input correct format for the method?

lpsinger commented 2 years ago

Yes.

guynir42 commented 2 years ago

@mcoughlin what's the status of this?

mcoughlin commented 2 years ago

Waiting on @lpsinger https://github.com/skyportal/healpix-alchemy/pull/45 I think.