coastalimagelib/argusIO.py
def readAIIIrawFullFrame(self):

        '''
        This function reads AIII raw files and populates the self.raw object
        by reading the *.raw file frame by frame and adding each to the multi-
        dimensional array without cropping the frames

        Attributes:
            self.raw: (ndarray) contains all raw sensor data from one camera,
                read from self.rawPath
        
        '''

        skipoffset = self.skip*32 + self.skip*self.w*self.h
        self.fh.seek(30, 1)
        if skipoffset > 0:
            for i in range(self.nFrames):

                if i == 0:
                    binary = np.fromfile(file=self.fh, dtype=np.uint8, count=self.w * self.h, offset=skipoffset)
                else:
                    binary = np.fromfile(file=self.fh, dtype=np.uint8, count=self.w * self.h, offset=32)

                data = np.uint8(binary)
                del binary

                if i == 0:
                    I = data.reshape((self.h, self.w))
                else:
                    I = np.dstack((I, data.reshape((self.h, self.w))))

                del data
            self.raw = I

        else:

            for i in range(self.nFrames):
                if i%20 == 0 and self.verbose==True: print(f"Reading rawFile {i/self.nFrames*100:.1f} %")
                if i == 0:
                    binary = np.fromfile(file=self.fh, dtype=np.uint8, count=self.w * self.h)
                else:
                    binary = np.fromfile(file=self.fh, dtype=np.uint8, count=self.w * self.h, offset=32)

                data = np.uint8(binary)
                del binary
                if i == 0:
                    I = data.reshape((self.h, self.w))
                else:
                    I = np.dstack((I, data.reshape((self.h, self.w))))

                del data
            self.raw = I

        This function reads AIII raw files and populates the self.raw object
        by reading the *.raw file frame by frame and adding each to the multi-
        dimensional array without cropping the frames

        Attributes:
            self.raw: (ndarray) contains all raw sensor data from one camera,
                read from self.rawPath
        
        
This function reads AIII raw files and populates the self.raw object
by reading the *.raw file frame by frame and adding each to the multi
dimensional array without cropping the frames
This function reads AIII raw files and populates the self . raw object by reading the * . raw file frame by frame and adding each to the multi dimensional array without cropping the frames
def readAIIIrawFullFrame(self):
        skipoffset = self.skip*32 + self.skip*self.w*self.h
        self.fh.seek(30, 1)
        if skipoffset > 0:
            for i in range(self.nFrames):
                if i == 0:
                    binary = np.fromfile(file=self.fh, dtype=np.uint8, count=self.w * self.h, offset=skipoffset)
                else:
                    binary = np.fromfile(file=self.fh, dtype=np.uint8, count=self.w * self.h, offset=32)
                data = np.uint8(binary)
                del binary
                if i == 0:
                    I = data.reshape((self.h, self.w))
                else:
                    I = np.dstack((I, data.reshape((self.h, self.w))))
                del data
            self.raw = I
        else:
            for i in range(self.nFrames):
                if i%20 == 0 and self.verbose==True: print(f"Reading rawFile {i/self.nFrames*100:.1f} %")
                if i == 0:
                    binary = np.fromfile(file=self.fh, dtype=np.uint8, count=self.w * self.h)
                else:
                    binary = np.fromfile(file=self.fh, dtype=np.uint8, count=self.w * self.h, offset=32)
                data = np.uint8(binary)
                del binary
                if i == 0:
                    I = data.reshape((self.h, self.w))
                else:
                    I = np.dstack((I, data.reshape((self.h, self.w))))
                del data
            self.raw = I
def readAIIIrawFullFrame ( self ) : skipoffset = self . skip * 32 + self . skip * self . w * self . h self . fh . seek ( 30 , 1 ) if skipoffset > 0 : for i in range ( self . nFrames ) : if i == 0 : binary = np . fromfile ( file = self . fh , dtype = np . uint8 , count = self . w * self . h , offset = skipoffset ) else : binary = np . fromfile ( file = self . fh , dtype = np . uint8 , count = self . w * self . h , offset = 32 ) data = np . uint8 ( binary ) del binary if i == 0 : I = data . reshape ( ( self . h , self . w ) ) else : I = np . dstack ( ( I , data . reshape ( ( self . h , self . w ) ) ) ) del data self . raw = I else : for i in range ( self . nFrames ) : if i % 20 == 0 and self . verbose == True : print ( f"Reading rawFile {i/self.nFrames*100:.1f} %" ) if i == 0 : binary = np . fromfile ( file = self . fh , dtype = np . uint8 , count = self . w * self . h ) else : binary = np . fromfile ( file = self . fh , dtype = np . uint8 , count = self . w * self . h , offset = 32 ) data = np . uint8 ( binary ) del binary if i == 0 : I = data . reshape ( ( self . h , self . w ) ) else : I = np . dstack ( ( I , data . reshape ( ( self . h , self . w ) ) ) ) del data self . raw = I
This function reads AIII raw files and populates the self.raw object
by reading the *.raw file frame by frame and adding each to the multi
dimensional array without cropping the frames
This function reads AIII raw files and populates the self . raw object by reading the * . raw file frame by frame and adding each to the multi dimensional array without cropping the frames
'''
        This function reads AIII raw files and populates the self.raw object
        by reading the *.raw file frame by frame and adding each to the multi-
        dimensional array without cropping the frames

        Attributes:
            self.raw: (ndarray) contains all raw sensor data from one camera,
                read from self.rawPath
        
        '''
self
self.raw
(ndarray) contains all raw sensor data from one camera,
read from self.rawPath
( ndarray ) contains all raw sensor data from one camera read from self . rawPath