nenupy.io.tf_utils.ReducedSpectra
- class nenupy.io.tf_utils.ReducedSpectra(file_name)[source]
Bases:
objectMethods
__init__(file_name)close()get([data_key, subarray_pointing_id, beam_id])_summary_
info([condense])Print out informations about the file structure.
plot([data_key, subarray_pointing_id, beam_id])- get(data_key=None, subarray_pointing_id=0, beam_id=0)[source]
_summary_
- Parameters:
- Returns:
_description_
- Return type:
Tuple[Time, u.Quantity, np.ndarray np.ndarray]
- Raises:
KeyError – _description_
- info(condense=True)[source]
Print out informations about the file structure.
- Parameters:
condense (
bool, optional) – If set toTrue, the dataet attributes are not shown, by defaultTrue- Returns:
File informations.
- Return type:
Example
>>> from nenupy.io.tf_utils import ReducedSpectra >>> rs = ReducedSpectra("/path/to/my/file.hdf5") >>> print(rs.info()) Data Structure: --- 'SUB_ARRAY_POINTING_000' --- SUBARRAY_POINTING_ID: 0 --- 'BEAM_000' --- BEAM_ID: 0 DATASETS: 'I': (10, 20) 'Q': (10, 20) 'U': (10, 20)