hdf5_tools module

Utility functions for handling hdf5 files.

aiv_utils.hdf5_tools.get_hdf5_beamformed_data(obs_file, start_channel=64)

Grabs relevant and useful data out of hdf5 files

Parameters:
  • obs_file (str) – Path to the hdf5 file

  • start_channel (int) – The channel ID of the first channel for the file. Default: 64.

Return type:

tuple

Returns:

a tuple of numpy arrays including: combined_data: all non nan data frequency_samples: the MHz values of the spectra mean_spectra: mean spectra (time scrunched) time_samples: astropy Time objects for each timestamp mean_time_series: mean time series (frequency scrunched)