arlmet.record.Header.tobytes#

Header.tobytes()[source]#

Serialize the header to its fixed-width ASCII representation.

A forecast hour above 99 is written as 99, the most the two-character label holds (HYSPLIT’s pakrec writes MIN(hour, 99)). The grid characters are 99 below 1000 points on both axes, else one per axis, @ for no thousands (HYSPLIT’s pakset).

Return type:

bytes