The NITF 2.0 label header (sarpy.io.general.nitf_elements.label)

The label extension subheader definitions - applies only to NITF version 2.0

class sarpy.io.general.nitf_elements.label.LabelSegmentHeader(**kwargs)

Bases: NITFElement

Symbol segment subheader for NITF version 2.0 - see standards document MIL-STD-2500A for more information.

LA: str

Takes values in {'LA'}. Default value is LA.

Type:

str

LID: str

str:

Security: NITFSecurityTags0

NITFSecurityTags0:

ENCRYP: str

Encryption. Takes values in {'0'}. Default value is 0.

Type:

str

LFS: str

str:

LCW: str

Default value is 00.

Type:

str

LCH: str

Default value is 00.

Type:

str

LDLVL: int

Default value is 1.

Type:

int

LALVL: int

Default value is 1.

Type:

int

LLOC: str

str:

LTC: bytes

bytes:

LBC: bytes

bytes:

UserHeader: UserHeaderType

User defined header.

Type:

UserHeaderType

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

classmethod minimum_length()

The minimum size in bytes that takes to write this header element.

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