H5Parm data pack interface
Project description
h5parm
Provides H5Parm data interface
Example
from h5parm.utils import make_example_datapack
from h5parm import DataPack
datapack = make_example_datapack(4,5,6)
#select your slices
datapack.select(ant="RS*", time=slice(0,None,2), freq=2)
This will select all antennas with names starting with 'RS', every other time, and the 3rd frequency.
#get your soltab
phase, axes = datapack.phase
#get the coordinates of axes
patch_names, directions = datapack.get_directions(axes['dir'])
antenna_labels, antennas = datapack.get_antennas(axes['ant'])
timestamp, times = datapack.get_antennas(axes['time'])
freq_labels, freqs = datapack.get_freqs(axes['freq'])
pol_labels, pols = datapack.get_pols(axes['pol'])
In general the first element returned by all get_* methods are string labels, and the second is a dimensionful astropy object, e.g. ICRS object, Time object etc.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file h5parm-1.0.7.tar.gz.
File metadata
- Download URL: h5parm-1.0.7.tar.gz
- Upload date:
- Size: 82.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4b0271a3785882d83a98123c161a4f215340245968ab6b6a340889bfe160d47
|
|
| MD5 |
243b1ac751121247ce8e77aa06450c05
|
|
| BLAKE2b-256 |
07997ec2e83d97e48117f97932e66753612bd2975f4045940bdcd9147aed4766
|
File details
Details for the file h5parm-1.0.7-py3-none-any.whl.
File metadata
- Download URL: h5parm-1.0.7-py3-none-any.whl
- Upload date:
- Size: 82.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6b7f4adc2dac746e12f8feeeb9df863f36d96c19a584fb6ea746b8ff4be089a
|
|
| MD5 |
d1069d9a143598ff37d1ca070c758054
|
|
| BLAKE2b-256 |
decf69f8dc65affe25b2bcd8623b4f8ca5268c51d463e35dbb22cec36b352a06
|