Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

h5parm-0.0.7.tar.gz (76.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page