nenupy.io.bst.BST
- class nenupy.io.bst.BST(file_name, beam=0)[source]
Bases:
StatisticsDataBeamlet STatistics reading class.
Attributes Summary
Lists the analog beam indices used for the recording of BST data.
Lists the digital beam indices used for the recording of BST data.
Prints the analog beam index currently corresponding to the digital
beamindex.Digital beam index.
Retrieves the analog pointing associated to the current
analog_beamselected.Retrieves the digital pointing associated to the current
beamselected.Retrieves the sub-band middle frequency of all the sub-bands recorded for the selected
beam.Retrieves the list of Mini-Arrays used to record BST data for the selected
analog_beam.Methods Summary
get([frequency_selection, time_selection, ...])Sub-selects BST data.
Attributes and Methods Documentation
Methods
__init__(file_name[, beam])get([frequency_selection, time_selection, ...])Sub-selects BST data.
info()Print the basic file information.
Attributes
Prints the analog beam index currently corresponding to the digital
beamindex.Lists the analog beam indices used for the recording of BST data.
Retrieves the analog pointing associated to the current
analog_beamselected.Digital beam index.
Lists the digital beam indices used for the recording of BST data.
Retrieves the digital pointing associated to the current
beamselected.Retrieves the sub-band middle frequency of all the sub-bands recorded for the selected
beam.Retrieves the list of Mini-Arrays used to record BST data for the selected
analog_beam.- property analog_beam
Prints the analog beam index currently corresponding to the digital
beamindex.- Getter:
Analog beam index.
- Type:
- property analog_beams
Lists the analog beam indices used for the recording of BST data.
- Getter:
List of analog beam indices.
- Type:
- property analog_pointing
Retrieves the analog pointing associated to the current
analog_beamselected.
- property digital_beams
Lists the digital beam indices used for the recording of BST data.
- Getter:
List of digital beam indices.
- Type:
- property frequencies
Retrieves the sub-band middle frequency of all the sub-bands recorded for the selected
beam.- Getter:
Sub-band mid frequencies.
- Type:
- get(frequency_selection=None, time_selection=None, polarization='NW', beam=0)[source]
Sub-selects BST data.
frequency_selectionandtime_selectionarguments acceptstrvalues formatted as, e.g.,'>={value}'or'>={value_1} & <{value_2}'or'=={value}'.- Parameters:
frequency_selection (
str) – Frequency selection. The expected'{value}'format is frequency units, e.g.'>=50MHz'or'< 1 GHz'. Default isNone(i.e., no selection upon frequency).time_selection (
str) – Time selection. The expected'{value}'format is ISOT, e.g.'>=2022-01-01T12:00:00'. Default isNone(i.e., no selection upon time).polarization (
str) – Polarization selection, must be either'NW'or'NE'. Default is'NW'.beam (
int) – Digital beam index selection. Default is0.
- Returns:
BST data subset.
- Return type:
- Example:
from nenupy.io.bst import BST bst = BST("/path/to/BST.fits") data = bst.get( frequency_selection="<=52MHz", time_selection='>=2022-01-24T11:08:10 & <2022-01-24T11:14:08', polarization="NW", beam=8 )
- info()
Print the basic file information.
Example
>>> from nenupy.io.bst import BST >>> bst = BST("/path/to/20231201_021200_BST.fits") >>> bst.info() file: '/path/to/20231201_021200_BST.fits' frequency (384,): 11.9140625 MHz -- 86.71875 MHz time (13600,): 2023-12-01T02:13:10.000 -- 2023-12-01T05:59:49.000 data: (13600, 2, 768)
- property mini_arrays
Retrieves the list of Mini-Arrays used to record BST data for the selected
analog_beam.- Getter:
Mini-Arrays list.
- Type: