Skip to content
Snippets Groups Projects
Commit f112647a authored by Cain, Payton David's avatar Cain, Payton David
Browse files

Add comment to day calculation in GOES header

parent db76fc31
No related branches found
No related tags found
2 merge requests!146Release CMO metadata to production,!34Update bitwise calculation for GOES header
......@@ -232,7 +232,8 @@ class IMFV283Parser(object):
"""
header = {}
# day of year and minute of day are combined into 3 bytes
# day of year and minute of day are each 12 bits:
# input bytes AB CD EF => day = DAB, minute = EFC
header["day"] = ((data[1] & 0xF) << 8) + data[0]
header["minute"] = ((data[2] & 0xFF) << 4) + ((data[1] & 0xF0) >> 4)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment