cds-astro / aladin-lite

An astronomical HiPS visualizer in the browser
https://aladin.cds.unistra.fr/AladinLite/
GNU General Public License v3.0
94 stars 40 forks source link

Serialize a MOC #154

Open bmatthieu3 opened 1 month ago

bmatthieu3 commented 1 month ago

add a serialize method to the MOC class to return a serialization in json, ascii or fits, so that user can save it locally.

ManonMarchand commented 1 month ago

Why don't we recommend the use of mocpy instead?

bmatthieu3 commented 1 month ago

That would be nice to save a MOC as a file directly from the aladin lite ui, especially those that we draw from the interface.

ManonMarchand commented 1 month ago

Got it. Something like a method aladin.get_moc(name_of_the_moc) then :slightly_smiling_face:

ManonMarchand commented 1 month ago

Oh sorry. Thought we were in the ipyaladin repo. So no MOCpy