Skip to main content
pysao
=====

This project is aimed to provide a python interface for some programs
developed by Smithsonian Astrophysical Observatory(SAO). One of the
main goal is to communicate with ds9 from python shell via the XPA
protocol. It provides a python wrapper for subset of XPA library and
python module for ds9 based on the XPA module.

Homepage : http://leejjoon.github.com/pyregion/

pyregion is "easy_install"able.

http://pypi.python.org/pypi/pysao

```
pip install pysao
```

USAGE
=====


```python
>>> import pysao

# run new instance of ds9
>>> ds9 = pysao.ds9()

>>> import numpy
>>> im = numpy.reshape(numpy.arange(100), (10, 10))
# display 2-d array
>>> ds9.view(im)



>>> import pyfits
>>> f = pyfits.open('test.fits')
# display first extension of fits file
>>> ds9.view(f[0])

# access with XPA method.
>>> ds9.set('file test.fits')
>>> ds9.get('file')

# list available xpa commands
>>> ds9.xpa_help()

# help on the specific xpa command
>>> ds9.xpa_help("tile")
```

Metadata

Release files for pysao 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysao 1.0
File Size Uploaded Provenance Actions
pysao-1.0.tar.gz 136.2 kB Without provenance Details for pysao-1.0.tar.gz

Release files / pysao-1.0.tar.gz

Download URL pysao-1.0.tar.gz
Size 136.2 kB
Tags Source
SHA-256 checksum
How to use checksums
725206a59eb3bfac84d56db7626a6ed9bfb02ef73803528b7133a902ca0f4774
BLAKE2b-256 checksum
How to use checksums
a2efe498022c04250f11d0c2e32fca2c899cba011224266278b5c7412c63f772
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pysao 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page