edges_cal.tools.FrequencyRange¶
- class edges_cal.tools.FrequencyRange(f: ~astropy.units.quantity.Annotated[~astropy.units.quantity.Quantity, PhysicalType('frequency')], *, f_low: ~astropy.units.quantity.Annotated[~astropy.units.quantity.Quantity, PhysicalType('frequency')] = <Quantity 0. MHz>, 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).
Methods
__init__(f, *[, f_low, f_high])Method generated by attrs for class FrequencyRange.
clone(**kwargs)Make a new frequency range object with updated parameters.
decimate(bin_size[, decimate_at, embed_mask])Decimate the frequency array.
denormalize(f)De-normalise a set of frequencies.
from_edges([n_channels, max_freq, …])Construct a
FrequencyRangeobject with underlying EDGES freqs.normalize(f)Normalise a set of frequencies.
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.
The number of frequencies in the full array.
Full range of the frequencies.