get_binary_stats_header¶
-
Data_Reduction.DSN.STATS.
get_binary_stats_header
(fd)¶ Get the header from a binary stats file.
There is an old format in which the first datum is a short with the station ID of 13. Otherwise the first long has a header size. This handles either case.
Notes
Function parse_STATS_header() is one-liner that translates the tuple members to variables with meaningful names.
:param fd : file descriptor.
- Returns
tuple. A string with binary data followed by the size of the header (int).