info¶
- baseband.dada.base.info(name, **kwargs) [edit on github]¶
Collect DADA file information.
First try opening as a binary file and check whether the file is of the correct format. If so, and no required information is missing, re-open as a stream, and get information like the start time, sample rate, etc.
- Parameters:
- namestr or filehandle, or sequence of str
File name, filehandle, or sequence of file names.
- **kwargs
Any other arguments the opener needs to open as a stream.
- Returns:
- info
FileReaderInfo
orStreamReaderInfo
. In addition to the normalinfo
attributes, also stored are attributes about what happened to the keyword arguments:used_kwargs
,consistent_kwargs
,inconsistent_kwargs
andirrelevant_kwargs
.