[AstroPy] Sampy and ds9
Mark Taylor
m.b.taylor at bristol.ac.uk
Wed Aug 26 03:56:28 PDT 2009
On Wed, 26 Aug 2009, Wolfgang Kerzendorf wrote:
> Hi Mark,
>
> First of all. Thanks for the help.
>
> It seems I can connect to hub opened by Aladin (even though I can't seem to
yes, the hub embedded in Aladin is the JSAMP one, so that will work.
> see the python client in ds9's sent-to dialogue). It seems SAMP would be
ds9's send-to dialogue will presumably only list clients which
have declared themselves able to receive images (or whatever is
being sent) - in the jargon, clients which are subscribed to the
relevant MType (such as "image.load.fits"). So, if you have not
configured your python client to be so subscribed, it won't be
shown as a send-to option by ds9. I'm not the SAMPy expert, but
I think you use the SAMPClient.bindReceiveCall() and/or
SAMPClient.bindReceiveNotification() method to do this.
> really useful to shift data around between topcat, ds9, aladin AND python.
> Is there a tutorial online that shows simple python scripts to talk to ds9
> (marking points, sending an image with wcs, controlling other features of ds9,
> ...).
As far as I know, the only SAMPy example code is at
http://cosmos.iasf-milano.inaf.it/pandora/docs/samp/
and maybe in the SAMPy sources. The general purpose MTypes which
define message semantics are documented in the link from
http://www.ivoa.net/samp/
If you're developing code, you may find some of the diagnostic
tools in JSAMP (http://software.astrogrid.org/doc/jsamp/) useful.
Mark
--
Mark Taylor Astronomical Programmer Physics, Bristol University, UK
m.b.taylor at bris.ac.uk +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/
More information about the apps-samp
mailing list