Example #1
0
File: SGS.py Project: pytroll/mipp
def _read_sgs_product_header(fp):
    hdr = dict()
    hdr['ImageProductHeaderVersion'] = rbin.read_uint1(fp.read(1))
    fp.read(3)
    hdr['ImageProductHeaderLength'] = rbin.read_uint4(fp.read(4))
    hdr['ImageProductVersion'] = rbin.read_uint1(fp.read(1))
    #hdr['ImageProductHeaderData'] = fp.read()
    return hdr
Example #2
0
def _read_sgs_product_header(fp):
    hdr = dict()
    hdr['ImageProductHeaderVersion'] = rbin.read_uint1(fp.read(1))
    fp.read(3)
    hdr['ImageProductHeaderLength'] = rbin.read_uint4(fp.read(4))
    hdr['ImageProductVersion'] = rbin.read_uint1(fp.read(1))
    #hdr['ImageProductHeaderData'] = fp.read()
    return hdr
Example #3
0
File: _xrit.py Project: metno/mipp
 def __init__(self, fp):
     self.rec_len = rbin.read_uint2(fp.read(2))
     self.file_type = rbin.read_uint1(fp.read(1))
     self.total_hdr_len = rbin.read_uint4(fp.read(4))
     self.data_field_len = rbin.read_uint8(fp.read(8))
Example #4
0
 def __init__(self, fp):
     self.rec_len = rbin.read_uint2(fp.read(2))
     self.file_type = rbin.read_uint1(fp.read(1))
     self.total_hdr_len = rbin.read_uint4(fp.read(4))
     self.data_field_len = rbin.read_uint8(fp.read(8))