cxcsds / ciao-contrib

Extra scripts and code to enhance the capabilities of CIAO.
GNU General Public License v3.0
8 stars 6 forks source link

ds9 to matplotlib script #858

Open DougBurke opened 7 months ago

DougBurke commented 7 months ago

I have long wanted to be able to run a script and convert a DS9 display (e.g. with multiple frames and annotations) and create an "equivalent" matplotlib script. It would obviously not be a 1-1 mapping, but how close could we get?

kglotfelty commented 7 months ago

not something I'm interested in doing, but one might want to start with "just" parsing the backup file since it contains all the complete state of ds9 and a local copy of all the data .

DougBurke commented 7 months ago

It was something I've been meaning to look at (for years) but always forget. The backup file is the obvious choice but it's "intellectually interesting" to wonder if you can get all you need from XPA/SAMP...