For reading trimmed big-endian GISTEMP sub-box data files.
- subboxline
A single line in a subbox.
Each line in a trimmed sub-box file is converted into one of these objects. It’s a subclass of tuple; the elements of the tuple are the data items. The per-line metadata (latitude, longitude, etc) becomes attributes of the object.
- subboxfile(file, bos)¶
Prepare to read records from a GISTEMP sub-box data file.
This reads the header from the file, converting into into a dictionary, which is returned along with a iterator for the following subboxline records.
Return Value
A tuple of (header, subbox_generator). The header is the header dictionary and the subbox_generator yields a sequence of subboxline instances.