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