nenupy.io.sst.SST
- class nenupy.io.sst.SST(file_name)[source]
Bases:
StatisticsDataSpectral STatistics reading class.
Attributes Summary
Retrieves the sub-band middle frequency of all the sub-bands recorded.
Retrieves the list of Mini-Arrays whose data have been recorded.
Methods Summary
get([mini_array, frequency_selection, ...])Sub-selects SST data.
Attributes and Methods Documentation
Methods
__init__(file_name)get([mini_array, frequency_selection, ...])Sub-selects SST data.
info()Print the basic file information.
Attributes
Retrieves the sub-band middle frequency of all the sub-bands recorded.
Retrieves the list of Mini-Arrays whose data have been recorded.
- property frequencies
Retrieves the sub-band middle frequency of all the sub-bands recorded.
- Getter:
Sub-band mid frequencies.
- Type:
- get(mini_array=0, frequency_selection=None, time_selection=None, polarization='NW')[source]
Sub-selects SST data.
frequency_selectionandtime_selectionarguments acceptstrvalues formatted as, e.g.,'>={value}'or'>={value_1} & <{value_2}'or'=={value}'.- Parameters:
mini_array (
int) – Mini-Array index. Default is0.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'.
- Returns:
SST data subset.
- Return type:
- Example:
from nenupy.io.sst import SST sst = SST("/path/to/SST.fits") data = sst.get( mini_array=10, frequency_selection="<=52MHz", time_selection='>=2022-01-24T11:08:10 & <2022-01-24T11:14:08', polarization="NW" )
- 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)