cds-astro / mocpy

Python library to easily create and manipulate MOCs (Multi-Order Coverage maps)
https://cds-astro.github.io/mocpy/
BSD 3-Clause "New" or "Revised" License
56 stars 32 forks source link

MOC to STC-S #122

Open fxpineau opened 6 months ago

fxpineau commented 6 months ago

Several users have asked for a S-MOC into a STC-S (or Region, ...) feature.

For another subject, Daniel Durand point me to Felix Stoehr's footprintfinder.py script.

I think we have all we need to implement the feature (at least for "small" MOCs):

Since Felix's script is ful Python, it will be a Python only feature. What do you think @bmatthieu3, @tboch and @ManonMarchand ?

ManonMarchand commented 6 months ago

todo list :

tboch commented 6 months ago

@fxpineau : the overall strategy looks good to me, but Felix's script licence makes it incompatible with our code.

fxpineau commented 6 months ago

@tboch yes: with @ManonMarchand we looked at the license yesterday. So far the idea would be to provide a to_fits_image method in MOCPy and then make an example/tutorial using Felix's script. Thus it will not be a feature implemented in MOCPy but MOCPy users will know how to do it.