Update CFSimpleIndexer authored by Martin Pokorny's avatar Martin Pokorny
......@@ -138,13 +138,14 @@ class MyCFArray : public hpg::CFArray {
Finally, the values of `hpg::VisData<N>::m_cf_index` may be computed as in the following
```c++
hpg::VisData<N> vis;
hpg::CellIndex cell_index;
// initialize fields of cell_index using visibility metadata
cell_index.m_baseline_type = 0;
cell_index.m_time = /*... from visibility time */;
cell_index.m_w_plane = W_0;
cell_index.m_frequency = /*... from visibility frequency */;
cell_index.m_mueller = 0; // not significant, 0 is always valid
hpg::CellIndex cell_index(
0, // baseline type
/*...*/, // time
W_0, // w plane
/*...*/, // frequency
0 // mueller, not significant here, 0 is always valid
);
auto [mueller, cube, group] = subset_indexer.cf_index(cell_index);
vis.m_cf_index = {cube, group};
```
\ No newline at end of file