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 FrequencyRange object with underlying EDGES freqs.

normalize(f)

Normalise a set of frequencies.

Attributes

center

The center of the frequency array.

df

Resolution of the frequencies.

freq

The frequency array.

freq_full

Alias for f.

freq_recentred

The frequency array re-centred so that it extends from -1 to 1.

mask

Mask used to take input frequencies to output frequencies.

max

Maximum frequency in the array.

min

Minimum frequency in the array.

n

The number of frequencies in the (masked) array.

nfull

The number of frequencies in the full array.

range

Full range of the frequencies.