edges_cal.tools.FrequencyRange
- class edges_cal.tools.FrequencyRange(f: tp.FreqType, *, f_low: tp.FreqType = <Quantity 0. MHz>, f_high: float = <Quantity inf MHz>, bin_size=1, alan_mode=False, post_bin_f_low: tp.Freqtype = <Quantity 0. MHz>, post_bin_f_high: float = <Quantity inf MHz>)[source]
Class defining a set of frequencies.
A given frequency range can be cut on either end, and be made more sparse.
- Parameters:
f – An array of frequencies defining a given spectrum.
f_low – A minimum frequency to keep in the array. Default is min(f).
f_high – A minimum frequency to keep in the array. Default is min(f).
bin_size (int) – Bin input frequencies into bins of this size.
alan_mode (bool) – Only applicable if bin_size > 1. If True, then take every bin_size frequency, starting from the 0th channel. Otherwise take the mean of each bin as the resulting frequency.
Methods
__init__
(f, *[, f_low, f_high, bin_size, ...])Method generated by attrs for class FrequencyRange.
clone
(**kwargs)Make a new frequency range object with updated parameters.
denormalize
(f)De-normalise a set of frequencies.
from_edges
([n_channels, max_freq, ...])Construct a
FrequencyRange
object with underlying EDGES freqs.normalize
(f)Normalise a set of frequencies.
with_new_mask
(**kwargs)Make a new read-only frequency range object with the same freqs.
Attributes
The center of the frequency array.
Resolution of the frequencies.
The frequency array.
Alias for f.
The frequency array re-centred so that it extends from -1 to 1.
Mask used to take input frequencies to output frequencies.
Maximum frequency in the array.
Minimum frequency in the array.
The number of frequencies in the (masked) array.
Full range of the frequencies.