nenupy.instru.instrument_tools
NenuFAR Tools
- nenupy.instru.instrument_tools.freq2sb(frequency)[source]
Conversion between the frequency \(\nu\) and the NenuFAR sub-band index \(n_{\rm SB}\). Each NenuFAR sub-band has a bandwidth of \(\Delta \nu = 195.3125\, \rm{kHz}\):
\[n_{\rm SB} = \lfloor*{ \frac{\nu}{\Delta \nu} + \frac{1}{2} \rfloor\]
- nenupy.instru.instrument_tools.generate_nenufar_subarrays(n_subarrays=2, include_remote_mas=False)[source]
Generates NenuFAR sub-arrays of Mini-Arrays. The sub-arraying is done completely randomly.
- Parameters:
- Returns:
A list of Mini-Array names for each sub-array.
- Return type:
- Example:
from nenupy.instru import generate_nenufar_subarrays from nenupy.instru import NenuFAR sub_arrays = generate_nenufar_subarrays(n_subarrays=2) sub_array_1 = NenuFAR()[sub_arrays[0]] sub_array_2 = NenuFAR()[sub_arrays[1]]
- nenupy.instru.instrument_tools.instrument_temperature(frequency=<Quantity 50. MHz>, lna_filter=0)[source]
Instrument temperature at a given
frequency
. This depends on the Low Noise Amplifier characteristics.- Parameters:
frequency (
Quantity
) – Frequency at which computing the instrument temperature. Default is50 MHz
.lna_filter (
int
) – Local Noise Amplifier high-pass filter selection. Available values are0, 1, 2, 3
. They correspond to minimal frequencies10, 15, 20, 25 MHz
respectively. Default is0
, i.e., 10 MHz filter.
- Returns:
Instrument temperature in Kelvins
- Return type:
Warning
For the time being, only
lna_filter
values0
and3
are available.- Example:
from nenupy.instru import instrument_temperature import astropy.units as u instrument_temperature(frequency=70*u.MHz)
See also
- nenupy.instru.instrument_tools.miniarrays_rotated_like(rotations=[0])[source]
Returns the Mini-Array indices whose rotations match the
rotations
argument. A \(60^{\circ}\) modulo is automatically applied to all rotation parameters.- Parameters:
rotations (
list`[`int
]) – Mini-Array rotation(s) to select. AValueError
is raised if the values are not integers and/or if they are not multiples of 10.- Returns:
Mini-Array indices.
- Return type:
- Example:
from nenupy.instru import miniarrays_rotated_like miniarrays_rotated_like([10])
- nenupy.instru.instrument_tools.read_cal_table(calibration_file=None)[source]
Reads NenuFAR antenna delays calibration file.
- nenupy.instru.instrument_tools.sb2freq(subband)[source]
Conversion between NenuFAR sub-band index \(n_{\rm SB}\) to sub-band starting frequency \(\nu_{\rm start}\).
\[\nu_{\rm start} = n_{\rm SB} \times \Delta \nu\]Each NenuFAR sub-band has a bandwidth of \(\Delta \nu = 195.3125\, \rm{kHz}\), therefore, the sub-band \(n_{\rm SB}\) goes from \(\nu_{\rm start}\) to \(\nu_{\rm stop} = \nu_{\rm start} + \Delta \nu\).