def _parse_sot_segment(self, fptr):
offset = fptr.tell() - <NUM_LIT:2><EOL>read_buffer = fptr.read(<NUM_LIT:10>)<EOL>data = struct.unpack('<STR_LIT>', read_buffer)<EOL>length = data[<NUM_LIT:0>]<EOL>isot = data[<NUM_LIT:1>]<EOL>psot = data[<NUM_LIT:2>]<EOL>tpsot = data[<NUM_LIT:3>]<EOL>tnsot = data[<NUM_LIT:4>]<EOL>segment = SOTsegment(isot, psot, tpsot, tnsot, length, offset)<EOL>self._tile_offset.append(segment.offset)<EOL>if segment.psot == <NUM_LIT:0>:<EOL><INDENT>tile_part_length = (self.offset + self.length -<EOL>segment.offset - <NUM_LIT:2>)<EOL><DEDENT>else:<EOL><INDENT>tile_part_length = segment.psot<EOL><DEDENT>self._tile_length.append(tile_part_length)<EOL>return segment<EOL>
Parse the SOT segment.

        Parameters
        ----------
        fptr : file
            Open file object.

        Returns
        -------
        SOTSegment
            The current SOT segment.