coastalimagelib/argusIO.py
def readHeaderLines(self):
        '''
        Reads the header lines of a .raw file to obtain metadata to
        feed into deBayering function

        '''

        separated = dict()
        lines = dict()
        for i in range(25):
            lines[i] = self.fh.readline().decode("utf-8").rstrip()

            temp = lines[i].split(':')
            if len(temp) != 1:
                temp1 = temp[0]
                temp2 = float(temp[1])
                separated[temp1] = temp2
            else:
                temp = lines[i].split(';')
                if len(temp) != 1:
                    temp1 = temp[0]
                    temp2 = temp[1]
                    separated[temp1] = temp2

        self.header = separated
        self.w = int(separated['cameraWidth'])
        self.h = int(separated['cameraHeight'])

        Reads the header lines of a .raw file to obtain metadata to
        feed into deBayering function

        
Reads the header lines of a .raw file to obtain metadata to
feed into deBayering function
Reads the header lines of a . raw file to obtain metadata to feed into deBayering function
def readHeaderLines(self):
        separated = dict()
        lines = dict()
        for i in range(25):
            lines[i] = self.fh.readline().decode("utf-8").rstrip()
            temp = lines[i].split(':')
            if len(temp) != 1:
                temp1 = temp[0]
                temp2 = float(temp[1])
                separated[temp1] = temp2
            else:
                temp = lines[i].split(';')
                if len(temp) != 1:
                    temp1 = temp[0]
                    temp2 = temp[1]
                    separated[temp1] = temp2
        self.header = separated
        self.w = int(separated['cameraWidth'])
        self.h = int(separated['cameraHeight'])
def readHeaderLines ( self ) : separated = dict ( ) lines = dict ( ) for i in range ( 25 ) : lines [ i ] = self . fh . readline ( ) . decode ( "utf-8" ) . rstrip ( ) temp = lines [ i ] . split ( ':' ) if len ( temp ) != 1 : temp1 = temp [ 0 ] temp2 = float ( temp [ 1 ] ) separated [ temp1 ] = temp2 else : temp = lines [ i ] . split ( ';' ) if len ( temp ) != 1 : temp1 = temp [ 0 ] temp2 = temp [ 1 ] separated [ temp1 ] = temp2 self . header = separated self . w = int ( separated [ 'cameraWidth' ] ) self . h = int ( separated [ 'cameraHeight' ] )
Reads the header lines of a .raw file to obtain metadata to
feed into deBayering function
Reads the header lines of a . raw file to obtain metadata to feed into deBayering function
'''
        Reads the header lines of a .raw file to obtain metadata to
        feed into deBayering function

        '''
self