The NITF 2.0 symbol header (sarpy.io.general.nitf_elements.symbol)¶
The symbol header element definition - only applies to NITF 2.0
- class sarpy.io.general.nitf_elements.symbol.SymbolSegmentHeader(**kwargs)¶
Bases:
NITFElement
Symbol segment subheader for NITF version 2.0 - see standards document MIL-STD-2500A for more information.
- SY: str¶
Takes values in
{'SY'}
.- Type:
str
- SID: str¶
str:
- SNAME: str¶
str:
- Security: NITFSecurityTags0¶
NITFSecurityTags0:
- ENCRYP: str¶
Takes values in
{'0'}
.- Type:
str
- STYPE: str¶
str:
- NLIPS: int¶
Default value is
0
.- Type:
int
- NPIXPL: int¶
Default value is
0
.- Type:
int
- NWDTH: int¶
Default value is
0
.- Type:
int
- NBPP: int¶
Default value is
0
.- Type:
int
- SDLVL: int¶
Default value is
0
.- Type:
int
- SALVL: int¶
Default value is
0
.- Type:
int
- SLOC: str¶
str:
- SLOC2: str¶
str:
- SCOLOR: str¶
str:
- SNUM: str¶
str:
- SROT: int¶
Default value is
0
.- Type:
int
- UserHeader: UserHeaderType¶
UserHeaderType:
- classmethod minimum_length()¶
The minimum size in bytes that takes to write this header element.
- Return type:
int
- property DLUT¶
The Look-up Table (LUT) data.
- Return type:
None|numpy.ndarray
- property NELUT¶
Number of LUT Entries.
- Return type:
int
- classmethod from_bytes(value, start)¶
- Parameters:
value (bytes|str) – the header string to scrape
start (int) – the beginning location in the string
- get_bytes_length()¶
Get the length of the serialized bytes array
- Return type:
int
- to_bytes()¶
Write the object to a properly packed str.
- Return type:
bytes
- to_json()¶
Serialize element to a json representation. This is intended to allow a simple presentation of the element.
- Return type:
dict