testN2kGen

class testN2kGen : public kotekan::Stage

Generate test N2k data as a standin for N2k.

Buffers

  • out_buf Buffer to fill with unnormalized visibilities

    • Format: complex int32+32

    • Shape: [samples_per_data_set/sub_integration_ntime, num_local_freq, num_corr_blocks, 16, 16]

    • Metadata: chordMetadata time_downsample_fpga[] = sub_integration_ntime

  • out_counts_buf Buffer to fill with counts

    • Format: int32

    • Shape: [samples_per_data_set/sub_integration_ntime, num_local_freq, num_count_blocks, 8, 8]

    • Metadata: chordMetadata time_downsample_fpga[] = sub_integration_ntime

Author

Geoffrey Ryan

Param correlation_name:

String. quantity name for correlation in chordMetadata

Param counts_name:

String. quantity name for counts in chordMetadata

Param correlation_type:

String. “const”, “random”.

Param counts_type:

String. “const”, “random”.

Param correlation_value:

Pair of ints. Used when correlation_type is “const”.

Param correlation_values:

Vector of int pairs. Optional cycle for “const” correlation frames.

Param counts_value:

Int. Used when counts_type is “const” or “const_scalar”.

Param counts_values:

Vector of ints. Optional cycle for “const” count frames.

Param seed:

Int. Default 0. Seeds the deterministic RNG for “random” correlation and counts variants.

Param dataset_id:

Hash string. Optional dataset id to set for CHIME * pipelines.

Param first_frame_index:

Int. Default 0. Starting FPGA frame number, fro frames of size samples_per_data_set.

Param samples_per_data_set:

Int. How often to produce data.

Param num_frames:

Int. How many frames to produce. Default inf.

Param num_freq_in_frame:

Int. Number of frequencies in each GPU frame.

Public Functions

testN2kGen(kotekan::Config &config, const std::string &unique_name, kotekan::bufferContainer &buffer_container)
inline ~testN2kGen()
virtual void main_thread() override