Position-velocity diagram extractor.
Project description
Position-Velocity Diagram Extractor
Full docs are available here
Tool to slice through data cubes and extract position-velocity (or other) slices.
There are a few utilities related to header trimming & parsing. Otherwise, there’s one main function, pvextractor, that takes a data cube and a series of points and returns a PV array. It is based on scipy’s map_coordinates but also has .
For an example use case, see [this notebook] (http://nbviewer.ipython.org/urls/raw.github.com/radio-astro-tools/pvextractor/master/examples/IRAS05358Slicing.ipynb) (for a permanent, compiled version, look here)
Minimal Install Instructions
pip install https://github.com/ericmandel/pyds9/archive/master.zip pip install https://github.com/radio-astro-tools/spectral-cube/archive/master.zip pip install https://github.com/radio-astro-tools/pvextractor/archive/master.zip
The pvextractor GUI
Run it like this:
from pvextractor.gui import PVSlicer pv = PVSlicer('L1448_13CO.fits') pv.show()
Click to select “control points” along the path, then press “enter” to expand the width of the slice, then click. Optionally, “y” will show the exact regions extracted.
Using pvextractor in ds9
There is a python script that will be installed along with pvextractor. You can invoke it from the command line, but the preferred approach is to load the tool into ds9. First, determine the path to ds9_pvextract.ans; it is in scripts/ds9_pvextract.ans. Then start up ds9 with the analysis tool loaded
ds9 -analysis load /path/to/pvextractor/scripts/ds9_pvextract.ans &
Then load any cube in ds9, draw a line, and press ‘x’ or press “PV Extractor” in the menu.
Build and coverage status
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
Built Distribution
File details
Details for the file pvextractor-0.4.tar.gz
.
File metadata
- Download URL: pvextractor-0.4.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed6a115935e83e6faa7727107e961bc49d7914fec85e3326e5adf65cde1e83ce |
|
MD5 | 005cce9ff817ac777f7e3e751797130d |
|
BLAKE2b-256 | d17834454e2921a06518c9888f5e286a17f56d09293b8dcd179885807f12cb42 |
File details
Details for the file pvextractor-0.4-py3-none-any.whl
.
File metadata
- Download URL: pvextractor-0.4-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 071e8d961837d9ab2bd619896ad647614c712070069e284f433bf51e8ea0d2d3 |
|
MD5 | d57a43a73447a5812ea246e4c066d213 |
|
BLAKE2b-256 | a98a6b3bb9dd033ce0b25e8e56126316809734835fbed2556d81bfbe4512382b |