Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Filterbank file downsampling capability #267

Closed
texadactyl opened this issue Jul 8, 2022 · 0 comments
Closed

Introduce Filterbank file downsampling capability #267

texadactyl opened this issue Jul 8, 2022 · 0 comments
Assignees

Comments

@texadactyl
Copy link
Contributor

texadactyl commented Jul 8, 2022

The operator will supply an input path, output path, and a group_size for the purpose of summing. For every every group_size time samples of the input data, the utility will sum the data element values into one total based on the polarisation index and fine-requency channel index. This summing is performed for each polarisation index and each channel index within a given polarisation.

E.g. if the group size = 3, then for polarisation index 1 (relative to 0) and channel index 42 (relative to 0), the sum for time samples 21 through 23 (relative to 0) for single element outdata[7, 1, 42] is given by:
indata[21, 1, 42] + indata[22, 1, 42] + indata[23, 1, 42]

The number of output samples = input array time dimension integer-divided by group_size. If the remainder of that division > 0, then the excess samples from the input array are dropped.

E.g. if the group size = 3 and the input data has 62 time samples, then the last 2 input samples are discarded.

The summing group size must be >= 2 and < input data time dimension.

Note that the tsamp header field in the output is set = the group size multiplied by the input tsamp value.

cc: @wfarah @david-macmahon

@texadactyl texadactyl self-assigned this Jul 8, 2022
@texadactyl texadactyl changed the title Introduce Filterbank file downsizing capability Introduce Filterbank file downsampling capability Jul 8, 2022
texadactyl added a commit that referenced this issue Jul 12, 2022
Address enhancement #267 (Down-sampling)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant