Trait marlu::io::VisReadable
source · [−]pub trait VisReadable: Sync + Send {
fn read_vis_mwalib(
&self,
jones_array: ArrayViewMut3<'_, Jones<f32>>,
weight_array: ArrayViewMut3<'_, f32>,
context: &CorrelatorContext,
timestep_range: &Range<usize>,
coarse_chan_range: &Range<usize>,
baseline_idxs: &[usize]
) -> Result<(), IOError>;
}
Expand description
The container has visibilities which can be read by passing in a mwalib context and the range of values to read.
Required methods
fn read_vis_mwalib(
&self,
jones_array: ArrayViewMut3<'_, Jones<f32>>,
weight_array: ArrayViewMut3<'_, f32>,
context: &CorrelatorContext,
timestep_range: &Range<usize>,
coarse_chan_range: &Range<usize>,
baseline_idxs: &[usize]
) -> Result<(), IOError>
fn read_vis_mwalib(
&self,
jones_array: ArrayViewMut3<'_, Jones<f32>>,
weight_array: ArrayViewMut3<'_, f32>,
context: &CorrelatorContext,
timestep_range: &Range<usize>,
coarse_chan_range: &Range<usize>,
baseline_idxs: &[usize]
) -> Result<(), IOError>
Read the visibilities and weights for the selected timesteps, coarse channels and baselines into the provided arrays.
Errors
Can throw IOError
if there is an issue reading.
TODO: reduce number of arguments.