Launch and interact with SAOImageDS9 using Astropy SAMP
Project description
astropy-samp-ds9
Launch and interact with SAOImageDS9, using the SAMP protocol and client libraries provided by Astropy SAMP.
Example
from astropy_samp_ds9.launcher import DS9
ds9 = DS9(title='hello world')
res = ds9.get('version')
ds9.set('cmap cool', 'scale zscale', 'zoom to fit')
ds9.set('mosaicimage wcs {my.fits}')
res = ds9.get('iexam key coordinate')
Environment
- DS9_EXE
This package requires SAOImageDS9 >= 8.7 (as of 2024-12-26, yet to be released on official channels, but available from github).
By default, it uses ds9 that satisfies this release and is in your PATH.
If you have several ds9 installations on your machine, or ds9 is not in your path, use
the DS9_EXE environment to specify the ds9 executable location.
For example: export DS9_EXE=/usr/local/ds9/8.7/bin/ds9
- SAMP_HUB_PATH
The directoty being used for SAMP_HUB files.
By default, it will use $HOME/.samp-ds9/, and create this directory as needed.
Miscellaneous
More advanced features include: exit handler, use pre-existing SAMP hub, etc. As of now, this project has no documention. Read the code!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file astropy-samp-ds9-0.1.6.tar.gz.
File metadata
- Download URL: astropy-samp-ds9-0.1.6.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5ea7558bfb2942889938c8b3994040f4c264a729bb672c1f977458141549662
|
|
| MD5 |
d5c9b5427e5140a51b6b03193d1f3fc0
|
|
| BLAKE2b-256 |
cf9dc96028cc9f9d16b15bf4324526808a8943e543a3ebff5b1ec994c68c284a
|